From: Jérôme Benoit Date: Sun, 14 Jul 2024 15:12:56 +0000 (+0200) Subject: feat: add initial node sea support X-Git-Tag: ocpp-server@v1.5.0~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f6e18e33b68a67239eba3f4d873172a491283d00;p=e-mobility-charging-stations-simulator.git feat: add initial node sea support sea does not support ESM yet Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index 72bd6733..7b4a7f19 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/sea-config.json b/sea-config.json new file mode 100644 index 00000000..1d9de767 --- /dev/null +++ b/sea-config.json @@ -0,0 +1,5 @@ +{ + "main": "./dist/start.js", + "output": "./dist/evse-simulator.blob", + "disableExperimentalSEAWarning": true +}