Skip to content

Commit

Permalink
require node 18, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Oct 20, 2023
1 parent d5ff34f commit a63583f
Show file tree
Hide file tree
Showing 4 changed files with 678 additions and 1,258 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
node: [18, 20]

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '${{ matrix.node }}'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build: $(DST)

$(DST): $(SRC) node_modules
# workaround for https://github.com/evanw/esbuild/issues/1921
npx esbuild --log-level=warning --platform=node --target=node16 --format=esm --bundle --minify --legal-comments=none --banner:js="import {createRequire} from 'module';const require = createRequire(import.meta.url);" --define:import.meta.VERSION=\"$(shell jq .version package.json)\" --outfile=$(DST) $(SRC)
npx esbuild --log-level=warning --platform=node --target=node18 --format=esm --bundle --minify --legal-comments=none --banner:js="import {createRequire} from 'module';const require = createRequire(import.meta.url);" --define:import.meta.VERSION=\"$(shell jq .version package.json)\" --outfile=$(DST) $(SRC)
chmod +x $(DST)

.PHONY: publish
Expand Down

0 comments on commit a63583f

Please sign in to comment.