Skip to content

Commit

Permalink
dbos -> dbos-sdk (#93)
Browse files Browse the repository at this point in the history
Fix places in ecommerce demo that were using `npx dbos start`
  • Loading branch information
devhawk authored Dec 6, 2023
1 parent d2cf12e commit b37711c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion e-commerce/payment-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion e-commerce/payment-frontend/create-openapi-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion e-commerce/shop-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion e-commerce/shop-frontend/create-openapi-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion yky-social/create-openapi-client.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit b37711c

Please sign in to comment.