build: migrate to commonjs and add node single executable app support
- Switch module type to commonjs in package.json - Update esbuild target to node22 and remove explicit ESM format flag - Add `bin` script for building a native binary using `node --build-sea` - Introduce sea-config.json with code cache enabled for faster startup
This commit is contained in:
parent
cd3749b07e
commit
d98ddb3ca7
3 changed files with 16 additions and 6 deletions
6
sea-config.json
Normal file
6
sea-config.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"main": "dist/index.js",
|
||||
"output": "dist/lmc",
|
||||
"useCodeCache": true,
|
||||
"disableExperimentalSEAWarning": true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue