Skip to content

Commit 613720e

Browse files
committed
chore: rename server-api.d.ts -> server-api.ts so that it is included in built
1 parent d397113 commit 613720e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/workflows/publish-npm.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
env:
5656
CI: true
5757

58+
- name: Generate server types
59+
run: npm run generate-server-types
60+
env:
61+
CI: true
62+
5863
- name: Build
5964
run: npm run build
6065
env:

v1/typescript-definitions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build": "tsc --build",
2222
"watch": "tsc --watch",
2323
"generate-types": "node scripts/generate-types.js",
24-
"generate-server-types": "openapi-typescript ../specification/open-api/server-api.yaml -o ./src/generated/server-api.d.ts --additional-properties=true && node scripts/post-generate-server-types.js",
24+
"generate-server-types": "openapi-typescript ../specification/open-api/server-api.yaml -o ./src/generated/server-api.ts --additional-properties=true && node scripts/post-generate-server-types.js",
2525
"build-all": "npm run generate-types && npm run generate-server-types && npm run build"
2626
},
2727
"devDependencies": {

v1/typescript-definitions/scripts/post-generate-server-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ async function main() {
66

77

88
const folderPath = path.resolve("./src/generated");
9-
const filePath = path.join(folderPath, 'server-api.d.ts')
9+
const filePath = path.join(folderPath, 'server-api.ts')
1010
console.log(`Fixing ${filePath}...`)
1111

1212
const orgContent = await fs.promises.readFile(filePath, "utf-8");

0 commit comments

Comments
 (0)