From a6e7941e04ecf34e5ba049b16272b0b0e88deb79 Mon Sep 17 00:00:00 2001 From: April John <30842467+CutestNekoAqua@users.noreply.github.com> Date: Sat, 7 Oct 2023 16:06:19 +0200 Subject: [PATCH] Transpile when packaging from ESM to CJS *insert April ranting about Javascript here* --- .github/workflows/package.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index f0972893f..a635d9749 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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