Skip to content

Commit

Permalink
feat: add initial node sea support
Browse files Browse the repository at this point in the history
sea does not support ESM yet

Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Jul 14, 2024
1 parent fb51103 commit f6e18e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"test:debug": "glob -c \"node --import tsx --test --inspect\" \"tests/**/*.test.ts\"",
"coverage": "c8 report --reporter=lcov",
"coverage:html": "c8 report --reporter=html",
"clinic:clean": "clinic clean"
"clinic:clean": "clinic clean",
"sea": "pnpm exec rimraf ./dist/evse-simulator ./dist/evse-simulator.blob && node --experimental-sea-config sea-config.json && cp $(volta which node || n which lts || nvm which node || command -v node) ./dist/evse-simulator && npx postject ./dist/evse-simulator NODE_SEA_BLOB ./dist/evse-simulator.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2"
},
"pnpm": {
"overrides": {
Expand Down
5 changes: 5 additions & 0 deletions sea-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"main": "./dist/start.js",
"output": "./dist/evse-simulator.blob",
"disableExperimentalSEAWarning": true
}

0 comments on commit f6e18e3

Please sign in to comment.