Skip to content

Commit

Permalink
Remove ts-node-dev in templates (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman authored Nov 4, 2024
1 parent 01d503b commit f1d3e72
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions templates/typescript-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"postbundle": "cd dist && zip -r index.zip index.js*",
"app": "node ./dist/app.js",
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only ./src/app.ts",
"app-dev": "tsx watch ./src/app.ts",
"test": "DEBUG=testcontainers,testcontainers:exec,testcontainers:containers jest --maxWorkers=1 --detectOpenHandles"
},
"dependencies": {
Expand All @@ -24,7 +24,7 @@
"esbuild": "^0.21.5",
"testcontainers": "^10.4.0",
"ts-jest": "^29.0.5",
"ts-node-dev": "^2.0.0",
"tsx": "^4.19.2",
"typescript": "^5.4.5"
}
}
4 changes: 2 additions & 2 deletions templates/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"bundle": "esbuild src/app.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
"postbundle": "cd dist && zip -r index.zip index.js*",
"app": "node ./dist/app.js",
"app-dev": "ts-node-dev --watch ./src --respawn --transpile-only ./src/app.ts"
"app-dev": "tsx watch ./src/app.ts"
},
"dependencies": {
"@restatedev/restate-sdk": "^1.4.0"
},
"devDependencies": {
"@types/node": "^20.14.2",
"esbuild": "^0.21.5",
"ts-node-dev": "^2.0.0",
"tsx": "^4.19.2",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion templates/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ restate
restate.service({
name: "Greeter",
handlers: { greet },
})
}),
)
.listen(9080);
13 changes: 6 additions & 7 deletions tutorials/tour-of-restate-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
"lint": "eslint --ignore-path .eslintignore --ext .ts .",
"format": "prettier --ignore-path .eslintignore --write \"**/*.+(js|ts|json)\"",
"verify": "npm run format -- --check && npm run lint && npm run build",
"app-dev": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --respawn --transpile-only src/app/app.ts",
"part1": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --respawn --transpile-only src/part1/app.ts",
"part2": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --respawn --transpile-only src/part2/app.ts",
"part3": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --respawn --transpile-only src/part3/app.ts",
"part4": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --respawn --transpile-only src/part4/app.ts",
"part5": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL ts-node-dev --respawn --transpile-only src/part5/app.ts"
"app-dev": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL tsx watch src/app/app.ts",
"part1": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL tsx watch src/part1/app.ts",
"part2": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL tsx watch src/part2/app.ts",
"part3": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL tsx watch src/part3/app.ts",
"part4": "RESTATE_LOGGING=DEBUG RESTATE_DEBUG_LOGGING=JOURNAL tsx watch src/part4/app.ts"
},
"author": "Restate Developers",
"email": "[email protected]",
Expand All @@ -30,6 +29,6 @@
"esbuild": "^0.19.0",
"eslint": "^8.46.0",
"prettier": "^3.0.1",
"ts-node-dev": "^2.0.0"
"tsx": "^4.19.2"
}
}

0 comments on commit f1d3e72

Please sign in to comment.