From 6da1260e31d5f38c57808518939a36868f326165 Mon Sep 17 00:00:00 2001 From: albaintor Date: Wed, 9 Oct 2024 09:53:03 +0200 Subject: [PATCH] Fix --- .github/workflows/build.yml | 6 +++--- server/package.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d924c32..551c63a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,7 +67,7 @@ jobs: cd server npm ci echo "Building NodeJS app to bundle compatible with CommonJS format for executable injection" - npx esbuild --format=cjs --target=node21 --platform=node --bundle --outfile=bundle.js app.js + npx esbuild --format=cjs --target=node22 --platform=node --bundle --outfile=bundle.js app.js echo "Creating blob for injection" node --experimental-sea-config sea-config.json node -e "require('fs').copyFileSync(process.execPath, 'ucrtool-server.exe')" @@ -145,7 +145,7 @@ jobs: cd server npm ci echo "Building NodeJS app to bundle compatible with CommonJS format for executable injection" - npx esbuild --format=cjs --target=node21 --platform=node --bundle --outfile=bundle.js app.js + npx esbuild --format=cjs --target=node22 --platform=node --bundle --outfile=bundle.js app.js echo "Creating blob for injection" node --experimental-sea-config sea-config.json cp $(command -v node) ucrtool-server @@ -225,7 +225,7 @@ jobs: cd server npm ci echo "Building NodeJS app to bundle compatible with CommonJS format for executable injection" - npx esbuild --format=cjs --target=node21 --platform=node --bundle --outfile=bundle.js app.js + npx esbuild --format=cjs --target=node22 --platform=node --bundle --outfile=bundle.js app.js echo "Creating blob for injection" node --experimental-sea-config sea-config.json cp $(command -v node) ucrtool-server diff --git a/server/package.json b/server/package.json index f7f4cca..c1eb24b 100644 --- a/server/package.json +++ b/server/package.json @@ -26,6 +26,7 @@ "ws": "^8.18.0" }, "devDependencies": { - "esbuild": "^0.24.0" + "esbuild": "^0.24.0", + "postject": "^1.0.0-alpha.6" } }