Skip to content

Commit

Permalink
fix esbuild: attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Niceygy committed Aug 29, 2023
1 parent a0a80d0 commit 0b4ed75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/esbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
run: yarn install --ignore-optional --frozen-lockfile

- name: Build artifact
run: npx esbuild index.js --bundle --platform=node --minify --external:./config.json --external:@ffmpeg-installer/ffmpeg --external:@node-ffmpeg/node-ffmpeg-installer --outfile=bundle.js
run: yarn run build

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: BDL-Server
name: ABD
path: bundle.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"docker:push-arm": "docker build --platform linux/arm64 -t alienbot-d . && docker tag alienbot-d:latest ufostudios/alienbot-discord:arm64 && docker push ghcr.io/ufostudios/alienbot-discord:arm64",
"docker:push-amd": "docker build --platform linux/amd64-t alienbot-d . && docker tag alienbot-d:latest ufostudios/alienbot-discord:amd64 && docker push ghcr.io/ufostudios/alienbot-discord:amd64",
"first": "npm i && node deploy-commands.js && node index.js",
"build": " npx esbuild index.js --bundle --platform=node --minify --external:./config.json --external:@ffmpeg-installer/ffmpeg --external:@node-ffmpeg/node-ffmpeg-installer --outfile=bundle.js"
"build": " npx esbuild index.js --bundle --platform=node --minify --external:./config.json --external:ffmpeg-binaries --external:@ffmpeg-installer/ffmpeg --external:@node-ffmpeg/node-ffmpeg-installer --outfile=bundle.js"
},
"dependencies": {
"@discord-player/extractor": "^4.1.2",
Expand Down

0 comments on commit 0b4ed75

Please sign in to comment.