Skip to content

Commit

Permalink
feat: Drop support for Node v6.x & v8.x
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node v6.x & v8.x are no longer supported. Please upgrade to the latest LTS release.

Here's the gnarly one-liner I used to make these changes:
```
npx lerna exec --concurrency 1 --stream -- 'json -I -f package.json -e '"'"'this.engines=this.engines||{};this.engines.node=">= 10.18.0"'"'"
```
(requires `npm i -g json` beforehand)
  • Loading branch information
evocateur committed Nov 10, 2020
1 parent 72414ec commit ff4bb4d
Show file tree
Hide file tree
Showing 62 changed files with 66 additions and 60 deletions.
2 changes: 1 addition & 1 deletion commands/add/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/changed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/run/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion commands/version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/child-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/conventional-commits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/filter-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/global-options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/lerna/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"cli.js"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion core/otplease/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "otplease.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/package-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion core/validation-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "validation-error.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@
"yargs": "^14.2.2"
},
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
}
}
2 changes: 1 addition & 1 deletion utils/check-working-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/collect-uncommitted/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/collect-updates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"main": "collect-updates.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/create-symlink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "create-symlink.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/describe-ref/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/filter-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "filter-packages.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/get-npm-exec-opts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "get-npm-exec-opts.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 3 additions & 0 deletions utils/get-packed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@
"fs-extra": "^8.1.0",
"ssri": "^6.0.1",
"tar": "^4.4.8"
},
"engines": {
"node": ">= 10.18.0"
}
}
2 changes: 1 addition & 1 deletion utils/github-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "lib/github-client.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/gitlab-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"main": "index.js",
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/has-npm-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/listable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/log-packed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/map-to-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion utils/npm-conf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lib"
],
"engines": {
"node": ">= 6.9.0"
"node": ">= 10.18.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit ff4bb4d

Please sign in to comment.