Skip to content

Commit

Permalink
fix: drop node 10 support (#1)
Browse files Browse the repository at this point in the history
This matches the new npm@8 engines field
  • Loading branch information
nlf authored Sep 29, 2021
1 parent aa50eeb commit 6c0477a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/content/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit 6c0477a

Please # to comment.