diff --git a/package.json b/package.json index ac539412e..2ac014c9f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "scripts": { "dev": "yarn build && yarn start", - "start": "node --enable-source-maps dist/index.cjs", + "start": "vite-node src/index.ts --script", "build": "rm -rf dist && esbuild src/index.ts --outfile=dist/index.cjs --bundle --platform=node --loader:.node=copy --minify --sourcemap", "lint": "tsc" }, @@ -31,6 +31,7 @@ "@types/node": "^20.2.1", "@types/react": "^18.2.7", "esbuild": "^0.17.19", - "typescript": "^5.0.4" + "typescript": "^5.0.4", + "vite-node": "^0.31.1" } }