require node 18
This commit is contained in:
parent
20af0a7a23
commit
82fd2b3722
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -6,7 +6,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [16, 18, 20]
|
node: [18, 20]
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
2
Makefile
2
Makefile
@ -29,7 +29,7 @@ build: $(DST)
|
|||||||
|
|
||||||
$(DST): $(SRC) node_modules
|
$(DST): $(SRC) node_modules
|
||||||
# workaround for https://github.com/evanw/esbuild/issues/1921
|
# 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) --external:undici
|
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) --external:undici
|
||||||
chmod +x $(DST)
|
chmod +x $(DST)
|
||||||
|
|
||||||
.PHONY: publish
|
.PHONY: publish
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"bin": "./bin/updates.js",
|
"bin": "./bin/updates.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"./bin/updates.js"
|
"./bin/updates.js"
|
||||||
|
Loading…
Reference in New Issue
Block a user