Skip to content

Commit 26a45c1

Browse files
npm run start and npm run dev renaming (#302)
* Fix dependencies in deno * Fix deno
1 parent e038998 commit 26a45c1

File tree

12 files changed

+21
-14
lines changed

12 files changed

+21
-14
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- name: Setup Deno
9797
uses: denoland/setup-deno@v1
9898
with:
99-
deno-version: v1.x
99+
deno-version: v2.4.x
100100

101101
- name: Run tests
102102
run: ./.tools/run_altjs_tests.sh

typescript/end-to-end-applications/ai-image-workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ You can clone the example repository (`git clone https://github.com/restatedev/e
7676

7777
2. Start Restate Server in a separate shell: `npx restate-server`
7878

79-
3. Start the workflow and image transformation services: `npm run app-dev`
79+
3. Start the workflow and image transformation services: `npm run dev`
8080

8181
4. Register the example at Restate server by calling
8282
`npx restate -y deployment register "localhost:9080"`.

typescript/end-to-end-applications/ai-image-workflows/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "commonjs",
99
"scripts": {
1010
"build": "tsc --noEmitOnError",
11-
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only src/app.ts",
11+
"dev": "ts-node-dev --watch ./src --respawn --transpile-only src/app.ts",
1212
"stable-diffusion-service": "ts-node-dev --watch ./src --respawn --transpile-only src/stable_diffusion.ts"
1313
},
1414
"dependencies": {

typescript/end-to-end-applications/food-ordering/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"postbundle": "cd dist/order-app && zip -r app.zip app.js* && cd ../restaurant && zip -r server.zip server.js*",
1414
"order-app": "node ./dist/order-app/app.js",
1515
"restaurant-app": "node ./dist/restaurant/server.js",
16-
"app-dev": "RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --watch src --respawn --transpile-only src/order-app/app.ts"
16+
"dev": "RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --watch src --respawn --transpile-only src/order-app/app.ts"
1717
},
1818
"dependencies": {
1919
"@restatedev/restate-sdk": "^1.7.2",
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
deno.lock
2-
31
# Restate
42
.restate
53
restate-data

typescript/templates/deno/deno.jsonc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
"dev": "deno run --allow-net --allow-env --watch main.ts",
55
"start": "deno run --allow-net --allow-env main.ts",
66
},
7+
"imports": {
8+
"@restatedev/restate-sdk": "npm:@restatedev/restate-sdk@^1.7.3",
9+
"@restatedev/restate-sdk-zod": "npm:@restatedev/restate-sdk-zod@^1.7.3",
10+
"zod": "npm:zod@3.24.1"
11+
},
712
}

typescript/templates/node/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"command": "npm run app-dev",
5+
"command": "npm run dev",
66
"name": "Start Restate Service",
77
"request": "launch",
88
"type": "node-terminal"

typescript/templates/node/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
"type": "commonjs",
77
"scripts": {
88
"build": "tsc --noEmitOnError",
9+
"start": "node ./dist/app.js",
10+
"dev": "tsx watch ./src/app.ts",
911
"prebundle": "rm -rf dist",
1012
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/app.js",
1113
"postbundle": "cd dist && zip -r index.zip app.js*",
12-
"app": "node ./dist/app.js",
13-
"app-dev": "tsx watch ./src/app.ts"
14+
"app": "npm run start",
15+
"app-dev": "npm run dev"
1416
},
1517
"dependencies": {
1618
"@restatedev/restate-sdk": "^1.7.2",

typescript/templates/typescript-testing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Have a look at the [TypeScript Testing documentation](https://docs.restate.dev/d
66

77
You can run the tests with:
88

9-
```typescript
9+
```shell
1010
npm run test
1111
```

typescript/templates/typescript-testing/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
"type": "commonjs",
77
"scripts": {
88
"build": "tsc --noEmitOnError",
9+
"start": "node ./dist/app.js",
10+
"dev": "tsx watch ./src/app.ts",
911
"prebundle": "rm -rf dist",
1012
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/app.js",
1113
"postbundle": "cd dist && zip -r app.zip app.js*",
12-
"app": "node ./dist/app.js",
13-
"app-dev": "tsx watch ./src/app.ts",
14+
"app": "npm run start",
15+
"app-dev": "npm run dev",
1416
"test": "TESTCONTAINERS_RYUK_DISABLED=true DEBUG=testcontainers,testcontainers:exec,testcontainers:containers jest --maxWorkers=1 --detectOpenHandles"
1517
},
1618
"dependencies": {

0 commit comments

Comments
 (0)