Skip to content

Commit 8bdd646

Browse files
Trying the npm publish.
1 parent 9fd7d6c commit 8bdd646

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"generate-dependencies": "npm run generate-dependencies --workspaces --if-present",
5151
"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",
5252
"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",
53-
"generate:ts": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g typescript --additional-properties=npmRepository=https://github.com/NHSDigital/nhs-notify-supplier-api.git,npmName=nhsnotifysupplier,npmVersion=0.1 -o /local/sdk/typescript --skip-validate-spec",
53+
"generate:ts": "./sdk/generate-ts.sh",
5454
"lint": "npm run lint --workspaces",
5555
"lint:fix": "npm run lint:fix --workspaces",
5656
"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.0.1-20250703.134554+2cdc813
1+
version: 0.0.1-20250703.140414+9fd7d6c

sdk/generate-ts.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
# run this from directory above, or with npm run generate:ts from parent directory.
3+
4+
docker run \
5+
--rm \
6+
--user $(id -u) \
7+
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
8+
-i /local/specification/api/notify-supplier.yml \
9+
-g typescript \
10+
--additional-properties=npmRepository=https://github.com/NHSDigital/nhs-notify-supplier-api.git,npmName=nhsnotifysupplier,npmVersion=0.1,licenseName=MIT \
11+
-o /local/sdk/typescript \
12+
--skip-validate-spec
13+
14+
15+
sed -i -e 's|https://github.com/GIT_USER_ID/GIT_REPO_ID.git|https://github.com/NHSDigital/nhs-notify-supplier-api.git|g' ./sdk/typescript/package.json
16+
17+
sed -i -e 's|OpenAPI client for nhsnotifysupplier|NHS Notify Supplier SDK|g' ./sdk/typescript/package.json
18+
sed -i -e 's|OpenAPI-Generator Contributors|NHS Notify|g' ./sdk/typescript/package.json

0 commit comments

Comments
 (0)