diff options
| author | April John <30842467+CutestNekoAqua@users.noreply.github.com> | 2023-10-07 16:06:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-07 16:06:19 +0200 |
| commit | a6e7941e04ecf34e5ba049b16272b0b0e88deb79 (patch) | |
| tree | cb8c06a5746aa1aabfa1d8bd4b00f1130883e607 /.github | |
| parent | Update package workflow (diff) | |
| download | sharkey-a6e7941e04ecf34e5ba049b16272b0b0e88deb79.tar.gz sharkey-a6e7941e04ecf34e5ba049b16272b0b0e88deb79.tar.bz2 sharkey-a6e7941e04ecf34e5ba049b16272b0b0e88deb79.zip | |
Transpile when packaging from ESM to CJS
*insert April ranting about Javascript here*
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/package.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index f0972893fc..a635d9749d 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 |