Skip to content

Commit 0800329

Browse files
pass version to npm pub.
1 parent 0367438 commit 0800329

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@
4646
},
4747
"scripts": {
4848
"build": "npm run generate --buildver=$npm_config_buildver",
49-
"generate": "npm run generate:cs --buildver=$npm_config_buildver && npm run generate:html && npm run generate:ts && npm run generate:python",
49+
"generate": "npm run generate:cs --buildver=$npm_config_buildver && npm run generate:html && npm run generate:ts --buildver=$npm_config_buildver && npm run generate:python",
5050
"generate-dependencies": "npm run generate-dependencies --workspaces --if-present",
5151
"generate:cs": "./sdk/generate-cs.sh $npm_config_buildver",
5252
"generate:html": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g html -o /local/sdk/html --skip-validate-spec",
5353
"generate:python": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g python -o /local/sdk/python --skip-validate-spec",
54-
"generate:ts": "./sdk/generate-ts.sh",
55-
"hello": "echo Hello $npm_config_buildver!",
54+
"generate:ts": "./sdk/generate-ts.sh $npm_config_buildver",
5655
"lint": "npm run lint --workspaces",
5756
"lint:fix": "npm run lint:fix --workspaces",
5857
"serve": "npm run serve-html-docs",

sdk/_config.version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 0.2.0-20250704.103020+dde51ad
1+
version: 0.2.0-20250704.104213+0367438

sdk/generate-ts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# run this from directory above, or with npm run generate:ts from parent directory.
33

4-
VERSION="$(cat .version)"
4+
VERSION=${1:-"$(cat .version)"}
55
echo $VERSION
66

77
set -x

0 commit comments

Comments
 (0)