build stuff
This commit is contained in:
@@ -2,7 +2,7 @@ import { build } from "esbuild";
|
||||
|
||||
await build({
|
||||
entryPoints: ["backend/app.ts"],
|
||||
outfile: "dist/app.js",
|
||||
outfile: "dist/index.cjs",
|
||||
bundle: true,
|
||||
platform: "node",
|
||||
target: ["node24"],
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"dev:app": "cd backend && node --watch app.ts",
|
||||
"build": "esbuild backend/app.ts --bundle --platform=node --minify --outfile=dist/index.cjs --format=esm --external:node:*",
|
||||
"build": "esbuild backend/app.ts --bundle --platform=node --minify --outfile=dist/index.cjs --format=esm --external:node:* --legal-comments=none",
|
||||
"lint": "tsc"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user