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
|
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
|
||||||
|
|
Loading…
Reference in a new issue