switch to tsx and update build config
This commit is contained in:
14
package.json
14
package.json
@@ -5,16 +5,16 @@
|
||||
"main": "src/index.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "node --import ./ts-loader.js src/index.ts",
|
||||
"test": "node --import ./ts-loader.js src/test.ts",
|
||||
"build": "tsc && esbuild src/index.ts --bundle --minify --sourcemap --platform=node --target=node18 --outfile=dist/index.js"
|
||||
"start": "tsx src/index.ts",
|
||||
"test": "tsx src/test.ts",
|
||||
"build": "tsc && esbuild --bundle --minify --sourcemap --platform=node --target=node20 --outdir=build src/index.ts"
|
||||
},
|
||||
"author": "Hervé BECHER",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.12.12",
|
||||
"esbuild": "^0.21.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.4.5"
|
||||
"@types/node": "^20.14.15",
|
||||
"esbuild": "^0.23.0",
|
||||
"tsx": "^4.17.0",
|
||||
"typescript": "^5.5.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user