Skip to content

Commit

Permalink
generate executable using esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
raosan committed Jan 21, 2025
1 parent 95b6ef4 commit a910652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
- run: npm ci
- run: npm run build -w packages/notification
- run: npm pack
- run: npm run pkg -- -t node18-linux-x64
name: Pack the binary using vercel/pkg
- run: make dist/monika
name: Pack the binary
- run: ./dist/monika -v
name: Test to make sure printing the version succeeds
- name: Cancel workflow on failure
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ else
npx postject $@ NODE_SEA_BLOB dist/sea-prep.blob \
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
endif
./dist/monika -v

# Create a bundled version of the app, so that we can build an executable out
# of it.
Expand All @@ -57,7 +56,7 @@ dist/bundle.js: $(JS_FILES)
--platform=node \
--bundle \
--outfile=$@ \
./bin/run.js
./lib/index.js

clean-dist:
# rm dist/*

0 comments on commit a910652

Please sign in to comment.