From 6c0477a56f64f0939b7ac27cddd9e164fe91a626 Mon Sep 17 00:00:00 2001 From: nlf Date: Wed, 29 Sep 2021 14:16:19 -0700 Subject: [PATCH] fix: drop node 10 support (#1) This matches the new npm@8 engines field --- .github/workflows/ci.yml | 2 +- lib/content/ci.yml | 2 +- lib/package.js | 3 +++ package.json | 17 ++++++++++------- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e49428e4..a997b4f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [10.0.x, 10.x, 12.0.x, 12.x, 14.0.x, 14.x, 15.x, 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.x] platform: - os: ubuntu-latest shell: bash diff --git a/lib/content/ci.yml b/lib/content/ci.yml index e49428e4..a997b4f8 100644 --- a/lib/content/ci.yml +++ b/lib/content/ci.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [10.0.x, 10.x, 12.0.x, 12.x, 14.0.x, 14.x, 15.x, 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.x] platform: - os: ubuntu-latest shell: bash diff --git a/lib/package.js b/lib/package.js index 1374dc16..5be86d51 100644 --- a/lib/package.js +++ b/lib/package.js @@ -18,6 +18,9 @@ const changes = { test: 'tap', posttest: 'npm run lint', }, + engines: { + node: '^12.13.0 || ^14.15.0 || >=16', + }, } const patchPackage = async (root) => { diff --git a/package.json b/package.json index 05117b21..d64d2b4f 100644 --- a/package.json +++ b/package.json @@ -7,17 +7,17 @@ "npm-template-check": "bin/npm-template-check.js" }, "scripts": { - "prelint": "ln -sf ../../bin/npm-template-check.js node_modules/.bin/npm-template-check", "lint": "eslint '**/*.js'", - "postlint": "npm-template-check", "lintfix": "npm run lint -- --fix", - "preversion": "npm test", + "postinstall": "node bin/postinstall.js", + "postlint": "npm-template-check", + "posttest": "npm run lint", "postversion": "npm publish", + "prelint": "ln -sf ../../bin/npm-template-check.js node_modules/.bin/npm-template-check", "prepublishOnly": "git push origin --follow-tags", + "preversion": "npm test", "snap": "tap", - "test": "tap", - "posttest": "npm run lint", - "postinstall": "node bin/postinstall.js" + "test": "tap" }, "repository": { "type": "git", @@ -48,5 +48,8 @@ "@npmcli/eslint-config": "^1.0.0", "tap": "^15.0.9" }, - "templateVersion": "1.0.3" + "templateVersion": "1.0.3", + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16" + } }