rm esbuild
This commit is contained in:
parent
c8b303e058
commit
b633aeb9e5
3 changed files with 1 additions and 18 deletions
13
build.js
13
build.js
|
|
@ -1,13 +0,0 @@
|
||||||
// build.js
|
|
||||||
const esbuild = require('esbuild');
|
|
||||||
|
|
||||||
esbuild.build({
|
|
||||||
entryPoints: ['./bin/www'],
|
|
||||||
bundle: true,
|
|
||||||
platform: 'node',
|
|
||||||
target: ['node20'],
|
|
||||||
outfile: 'dist/app.js',
|
|
||||||
// external: ['some-large-lib'],
|
|
||||||
sourcemap: false,
|
|
||||||
minify: true,
|
|
||||||
}).catch(() => process.exit(1));
|
|
||||||
3
package-lock.json
generated
3
package-lock.json
generated
|
|
@ -19,9 +19,6 @@
|
||||||
"node-cron": "^3.0.3",
|
"node-cron": "^3.0.3",
|
||||||
"winston": "^3.17.0",
|
"winston": "^3.17.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0"
|
"winston-daily-rotate-file": "^5.0.0"
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"esbuild": "^0.25.8"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@colors/colors": {
|
"node_modules/@colors/colors": {
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node build.js",
|
"start": "node ./bin/www"
|
||||||
"start": "node dist/app.js"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cookie-parser": "~1.4.4",
|
"cookie-parser": "~1.4.4",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue