Skip to content

Commit 8d9182e

Browse files
committed
minor tweaks
- SQL: add gtfs-via-postgres version to comment - package.json#homepage: use Git tag - package.json#repository: use format preferred by `npm pkg fix` - build-binaries script: also gzip binaries
1 parent 342be4f commit 8d9182e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ ALTER USER web_anon SET plan_filter.statement_cost_limit = ${opt.postgrestQueryC
347347
348348
COMMENT ON SCHEMA "${opt.schema}" IS
349349
$$GTFS REST API
350-
This REST API is created by running [PostgREST](https://postgrest.org/) on top of a [PostgreSQL](https://www.postgresql.org) DB generated using [gtfs-via-postgres](https://github.com/public-transport/gtfs-via-postgres).
350+
This REST API is created by running [PostgREST](https://postgrest.org/) on top of a [PostgreSQL](https://www.postgresql.org) DB generated using [${pkg.name} v${pkg.version}](${pkg.homepage || pkg.repository}).
351351
$$;
352352
` : ''}
353353
` : ''}

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232
"contributors": [
3333
"Daniel Langbein <[email protected]>"
3434
],
35-
"homepage": "https://github.com/public-transport/gtfs-via-postgres",
36-
"repository": "public-transport/gtfs-via-postgres",
35+
"homepage": "https://github.com/public-transport/gtfs-via-postgres/tree/4.9.0",
36+
"repository": {
37+
"type": "git",
38+
"url": "git+https://github.com/public-transport/gtfs-via-postgres.git"
39+
},
3740
"bugs": "https://github.com/public-transport/gtfs-via-postgres/issues",
3841
"license": "(Apache-2.0 AND Prosperity-3.0.0)",
3942
"funding": [
@@ -73,7 +76,7 @@
7376
"test": "./test/index.sh",
7477
"lint": "eslint .",
7578
"benchmark": "./benchmark/run.sh",
76-
"build-binaries": "pkg --public -t node18-macos-x64,node18-macos-arm64,node18-linux-x64,node18-linux-arm64 -o dist/gtfs-via-postgres cli.js",
79+
"build-binaries": "pkg --public -t node18-macos-x64,node18-macos-arm64,node18-linux-x64,node18-linux-arm64 -o dist/gtfs-via-postgres cli.js && gzip -k --best dist/gtfs-via-postgres-*",
7780
"prepublishOnly": "npm run lint && npm test"
7881
}
7982
}

0 commit comments

Comments
 (0)