From e6ab3549cc6db0f461faa01a06236c1d19a7084a Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 18 Apr 2023 20:19:24 +0200 Subject: [PATCH] require node 16 --- .github/workflows/ci.yaml | 2 +- Makefile | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 44ea8b4..b7f6aa4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,7 @@ jobs: strategy: fail-fast: false matrix: - node: [14, 16, 18] + node: [16, 18, 20] runs-on: ubuntu-latest steps: diff --git a/Makefile b/Makefile index c20f081..6f96263 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ build: $(DST) $(DST): $(SRC) node_modules # workaround for https://github.com/evanw/esbuild/issues/1921 - npx esbuild --log-level=warning --platform=node --target=node14 --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=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 chmod +x $(DST) .PHONY: publish diff --git a/package.json b/package.json index 7f3ea90..840f89b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "bin": "./bin/updates.js", "type": "module", "engines": { - "node": ">= 14" + "node": ">= 16" }, "files": [ "./bin/updates.js"