diff --git a/.vscode/launch.json b/.vscode/launch.json index c5b07275..7d1bf373 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,7 +12,7 @@ "cwd": "${workspaceFolder}/e-commerce/shop-frontend", }, { - "command": "npx dbos start", + "command": "npx dbos-sdk start", "name": "Shop Backend", "preLaunchTask": "npm: build shop backend", "request": "launch", @@ -27,7 +27,7 @@ "cwd": "${workspaceFolder}/e-commerce/payment-frontend" }, { - "command": "npx dbos start", + "command": "npx dbos-sdk start", "name": "Payment Backend", "preLaunchTask": "npm: build payment backend", "request": "launch", diff --git a/e-commerce/payment-backend/package.json b/e-commerce/payment-backend/package.json index dcb20d92..ef810bcf 100644 --- a/e-commerce/payment-backend/package.json +++ b/e-commerce/payment-backend/package.json @@ -5,7 +5,7 @@ "build": "tsc", "lint": "eslint --fix --ext .ts .", "migrate": "knex migrate:latest", - "start": "npm run build && dbos start", + "start": "dbos-sdk start", "test": "jest --detectOpenHandles" }, "dependencies": { diff --git a/e-commerce/payment-frontend/create-openapi-client.sh b/e-commerce/payment-frontend/create-openapi-client.sh index 71cf8bc3..68331aae 100755 --- a/e-commerce/payment-frontend/create-openapi-client.sh +++ b/e-commerce/payment-frontend/create-openapi-client.sh @@ -3,7 +3,7 @@ cur_dir=$(pwd) # generate the openapi definition document cd $fe_dir/../payment-backend -npx dbos openapi src/operations.ts +npx dbos-sdk openapi src/operations.ts cd $fe_dir rm -rf client diff --git a/e-commerce/shop-backend/package.json b/e-commerce/shop-backend/package.json index 73dd3906..d2c06d73 100644 --- a/e-commerce/shop-backend/package.json +++ b/e-commerce/shop-backend/package.json @@ -6,7 +6,7 @@ "lint": "eslint --fix --ext .ts .", "migrate": "knex migrate:latest", "seed": "knex seed:run", - "start": "npm run build && dbos start" + "start": "dbos-sdk start" }, "dependencies": { "@dbos-inc/dbos-sdk": "^0.7.25-preview", diff --git a/e-commerce/shop-frontend/create-openapi-client.sh b/e-commerce/shop-frontend/create-openapi-client.sh index b9750ef6..1c9556d2 100755 --- a/e-commerce/shop-frontend/create-openapi-client.sh +++ b/e-commerce/shop-frontend/create-openapi-client.sh @@ -3,7 +3,7 @@ cur_dir=$(pwd) # generate the openapi definition document cd $fe_dir/../shop-backend -npx dbos openapi src/operations.ts +npx dbos-sdk openapi src/operations.ts cd $fe_dir npx oazapfts ../shop-backend/src/openapi.yaml ./lib/client.ts diff --git a/yky-social/create-openapi-client.sh b/yky-social/create-openapi-client.sh index 7d519d18..bd7be70d 100755 --- a/yky-social/create-openapi-client.sh +++ b/yky-social/create-openapi-client.sh @@ -1,7 +1,7 @@ : # generate the openapi definition document -npx dbos openapi src/operations.ts +npx dbos-sdk openapi src/operations.ts # generate the typescript-fetch client docker run --rm \