Skip to content

Commit

Permalink
Merge pull request #421 from Financial-Times/add-engines
Browse files Browse the repository at this point in the history
CPP-1340 Begin supporting Node 18 for Tool Kit
  • Loading branch information
ivomurrell authored Apr 28, 2023
2 parents 50c71f9 + 4db704c commit 180f510
Show file tree
Hide file tree
Showing 42 changed files with 169 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"zod-validation-error": "^0.3.0"
},
"engines": {
"node": "16.x"
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
},
"files": [
"/bin",
Expand Down
4 changes: 4 additions & 0 deletions core/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
},
"volta": {
"extends": "../../package.json"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
6 changes: 5 additions & 1 deletion core/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@
"index.js": "dotcom-tool-kit format:staged --",
"**/*.js": "dotcom-tool-kit test:staged --"
},
"dependencies": {}
"dependencies": {},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
},
"dependencies": {
"tslib": "^2.3.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@
},
"devDependencies": {
"@types/triple-beam": "^1.3.2"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
6 changes: 5 additions & 1 deletion lib/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
"files": [
"/lib",
".toolkitrc.yml"
]
],
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/package-json-hook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
],
"volta": {
"extends": "../../package.json"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@
},
"dependencies": {
"tslib": "^2.3.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@
"@types/prompts": "^2.0.14",
"@types/semver": "^7.3.9",
"winston": "^3.5.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/vault/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@
"devDependencies": {
"@types/jest": "^27.0.2",
"winston": "^3.5.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions lib/wait-for-ok/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
],
"volta": {
"extends": "../../package.json"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
"peerDependencies": {
"@babel/core": "7.x",
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/backend-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
"homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/backend-app",
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/backend-heroku-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
"homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/backend-heroku-app",
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/backend-serverless-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
"homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/backend-serverless-app",
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/circleci-deploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/circleci-heroku/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/circleci-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
],
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/circleci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
"@dotcom-tool-kit/husky-npm": "^4.0.0",
"@dotcom-tool-kit/npm": "^3.0.0",
"@dotcom-tool-kit/secret-squirrel": "^2.0.0"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@
],
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
"peerDependencies": {
"dotcom-tool-kit": "3.x",
"eslint": "7.x || 8.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/frontend-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/heroku/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/husky-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
],
"volta": {
"extends": "../../package.json"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
"devDependencies": {
"@jest/globals": "^27.4.6",
"winston": "^3.5.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/lint-staged-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/lint-staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/mocha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@
"peerDependencies": {
"dotcom-tool-kit": "3.x",
"mocha": ">=6.x <=10.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/n-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/next-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
],
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
],
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/nodemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@
],
"devDependencies": {
"@types/nodemon": "^1.19.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/pa11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
},
"devDependencies": {
"@types/pa11y": "^5.3.4"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@
},
"peerDependencies": {
"dotcom-tool-kit": "3.x"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/secret-squirrel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
"@dotcom-tool-kit/logger": "^3.0.0",
"@dotcom-tool-kit/types": "^3.0.0",
"tslib": "^2.3.1"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
"get-port": "^5.1.1",
"tslib": "^2.3.1",
"wait-port": "^0.2.9"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
4 changes: 4 additions & 0 deletions plugins/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
"@jest/globals": "^29.3.1",
"typescript": "^4.9.4",
"winston": "^3.8.2"
},
"engines": {
"node": "16.x || 18.x",
"npm": "7.x || 8.x || 9.x"
}
}
Loading

0 comments on commit 180f510

Please sign in to comment.