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