Transpile when packaging from ESM to CJS
*insert April ranting about Javascript here*
This commit is contained in:
parent
cb8136c8fe
commit
a6e7941e04
1 changed files with 3 additions and 0 deletions
3
.github/workflows/package.yml
vendored
3
.github/workflows/package.yml
vendored
|
@ -63,7 +63,10 @@ jobs:
|
|||
corepack prepare pnpm@latest --activate
|
||||
pnpm install
|
||||
npm install -g pkg
|
||||
npm install -g rollup
|
||||
pnpm run build
|
||||
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
|
||||
ls
|
||||
|
|
Loading…
Reference in a new issue