(build): Move to build file to avoid the terminal being a truckload of sh-

This commit is contained in:
2026-06-13 22:01:30 +00:00
parent 6f10dedc12
commit d17821bb1b
3 changed files with 165 additions and 133 deletions
+2 -3
View File
@@ -7,7 +7,7 @@
"copyfiles": "2.4.1",
"eslint": "9.27.0",
"rimraf": "6.0.1",
"tsx": "4.19.4",
"tsx": "4.22.4",
"typescript": "5.8.3",
"typescript-eslint": "8.32.1"
},
@@ -27,8 +27,7 @@
"scripts": {
"dev": "tsx watch --enable-source-maps src/index.ts",
"start": "node dist/index.js",
"build": "npm run clean && npm run compile && npm run copyfiles",
"compile": "esbuild 'src/**/*.ts' --platform=node --format=cjs --minify --outdir=dist",
"build": "npm run clean && node scripts/build.js && npm run copyfiles",
"clean": "rimraf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*.html\" ./dist"
}