Skip to content

Commit 28c5de4

Browse files
committed
fix build
1 parent 8df76ce commit 28c5de4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"prompt-testing"
2121
],
2222
"scripts": {
23-
"build": "run-p build:*",
24-
"build:main": "tsc -p tsconfig.json && npx openapicmd typegen https://api.promptfoundry.ai/sdk/openapi > ./build/main/types/openapi.d.ts",
25-
"build:module": "tsc -p tsconfig.module.json && npx openapicmd typegen https://api.promptfoundry.ai/sdk/openapi > ./build/module/types/openapi.d.ts",
23+
"build": "run-p build:* && npm run openapi",
24+
"build:main": "tsc -p tsconfig.json",
25+
"build:module": "tsc -p tsconfig.module.json",
2626
"fix": "run-s fix:*",
2727
"lint": "eslint .",
2828
"prettier": "npm run lint -- --fix",
@@ -39,7 +39,9 @@
3939
"reset-hard": "git clean -dfx && git reset --hard && npm i",
4040
"prepare-release": "run-s reset-hard test doc:html version doc:publish",
4141
"openapi": "run-s openapi:*",
42-
"openapi:typegen": "npx openapicmd typegen https://api.promptfoundry.ai/sdk/openapi > src/types/openapi.d.ts"
42+
"openapi:typegen": "npx openapicmd typegen https://api.promptfoundry.ai/sdk/openapi > src/types/openapi.d.ts",
43+
"openapi:typegen:main": "npx openapicmd typegen https://api.promptfoundry.ai/sdk/openapi > ./build/main/types/openapi.d.ts",
44+
"openapi:typegen:module": "npx openapicmd typegen https://api.promptfoundry.ai/sdk/openapi > ./build/module/types/openapi.d.ts"
4345
},
4446
"engines": {
4547
"node": ">=10"

0 commit comments

Comments
 (0)