gangtise-openapi-cli 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +1 -1
- package/dist/src/version.js +2 -0
- package/package.json +2 -2
package/dist/src/cli.js
CHANGED
|
@@ -187,8 +187,8 @@ function addTimeFilters(command) {
|
|
|
187
187
|
.option("--end-time <datetime>", "End time")
|
|
188
188
|
.option("--keyword <keyword>", "Keyword");
|
|
189
189
|
}
|
|
190
|
+
import { CLI_VERSION } from "./version.js";
|
|
190
191
|
const program = new Command();
|
|
191
|
-
const CLI_VERSION = "0.7.1";
|
|
192
192
|
program.name("gangtise").description("Gangtise OpenAPI CLI").version(CLI_VERSION);
|
|
193
193
|
program
|
|
194
194
|
.command("auth")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gangtise-openapi-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "CLI for Gangtise OpenAPI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "tsc -p tsconfig.json",
|
|
24
24
|
"dev": "tsx src/cli.ts",
|
|
25
25
|
"test": "vitest run",
|
|
26
|
-
"prepare": "npm run build"
|
|
26
|
+
"prepare": "node -e \"const p=JSON.parse(require('fs').readFileSync('package.json','utf8'));require('fs').writeFileSync('src/version.ts','// Auto-generated — DO NOT EDIT\\nexport const CLI_VERSION = \\\"'+p.version+'\\\"\\n')\" && npm run build"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=20"
|