Transpile when packaging from ESM to CJS

*insert April ranting about Javascript here*
This commit is contained in:
April John 2023-10-07 16:06:19 +02:00 committed by GitHub
parent cb8136c8fe
commit a6e7941e04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,10 @@ jobs:
corepack prepare pnpm@latest --activate corepack prepare pnpm@latest --activate
pnpm install pnpm install
npm install -g pkg npm install -g pkg
npm install -g rollup
pnpm run build pnpm run build
cd packages/backend cd packages/backend
mkdir dist
rollup ./built/boot/entry.js --file ./dist/bundle.js --format cjs
pkg --debug --public ./built/boot/entry.js --targets latest-linuxstatic-x64,latest-linuxstatic-arm64,latest-macos-x64,latest-macos-arm64,latest-win-x64 pkg --debug --public ./built/boot/entry.js --targets latest-linuxstatic-x64,latest-linuxstatic-arm64,latest-macos-x64,latest-macos-arm64,latest-win-x64
ls ls