Skip to content

Commit

Permalink
i don't know why but this using esbuild --format iife fixes the warni…
Browse files Browse the repository at this point in the history
…ngs in `pkg` step
  • Loading branch information
ANGkeith committed Oct 2, 2024
1 parent 8568183 commit 83f90be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- run: npm ci
- run: npm run build:pkg
- run: npm run pkg-linux
- run: node pkg/index.cjs --version
- run: node pkg/index.js --version
- run: bin/linux/gitlab-ci-local --version
- run: bin/linux/gitlab-ci-local --help

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"bin": "src/index.js",
"version": "4.53.0",
"scripts": {
"build:pkg": "mkdir -p pkg && esbuild src/index.ts --outfile=pkg/index.cjs --bundle --platform=node --format=cjs --minify",
"pkg-linux": "pkg pkg/index.cjs --public -t node18-linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
"pkg-macos": "pkg pkg/index.cjs --public -t node18-macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
"pkg-win": "pkg pkg/index.cjs --public -t node18-win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz",
"build:pkg": "mkdir -p pkg && esbuild src/index.ts --outfile=pkg/index.js --bundle --platform=node --format=iife --minify",
"pkg-linux": "pkg pkg/index.js --public -t node18-linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
"pkg-macos": "pkg pkg/index.js --public -t node18-macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
"pkg-win": "pkg pkg/index.js --public -t node18-win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz",
"pkg-all": "npm run pkg-linux && npm run pkg-macos && npm run pkg-win",
"pkg": "pkg",
"cleanup": "git clean -fX tests/ && git clean -fX src/",
Expand Down

0 comments on commit 83f90be

Please sign in to comment.