Skip to content

Commit 15b1fd4

Browse files
committed
chore: pin @types/prettier to 2.6.0 (#20322)
@types/prettier is a transitive dependency of `jest`. Version `2.6.1` introduced a breaking change by increasing the minimum supported version of typescript to `4.2`. See related issue for more information. re #20319 ---- ### All Submissions: * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b8d8b9a commit 15b1fd4

File tree

8 files changed

+8
-1
lines changed

8 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"postinstall": "patch-package --error-on-fail"
1717
},
1818
"devDependencies": {
19+
"@types/prettier": "2.6.0",
1920
"@yarnpkg/lockfile": "^1.1.0",
2021
"cdk-generate-synthetic-examples": "^0.1.10",
2122
"conventional-changelog-cli": "^2.2.2",

packages/aws-cdk/lib/init-templates/v1/app/typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@aws-cdk/assertions": "%cdk-version%",
15+
"@types/prettier": "2.6.0",
1516
"@types/jest": "^27.5.0",
1617
"@types/node": "10.17.27",
1718
"jest": "^27.5.1",

packages/aws-cdk/lib/init-templates/v1/lib/typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"devDependencies": {
1212
"@aws-cdk/assertions": "%cdk-version%",
1313
"@types/jest": "^27.5.0",
14+
"@types/prettier": "2.6.0",
1415
"@types/node": "10.17.27",
1516
"jest": "^27.5.1",
1617
"ts-jest": "^27.1.4",

packages/aws-cdk/lib/init-templates/v1/sample-app/typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@aws-cdk/assertions": "%cdk-version%",
1616
"@types/jest": "^27.5.0",
1717
"@types/node": "10.17.27",
18+
"@types/prettier": "2.6.0",
1819
"jest": "^27.5.1",
1920
"ts-jest": "^27.1.4",
2021
"ts-node": "^10.7.0",

packages/aws-cdk/lib/init-templates/v2/app/typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"devDependencies": {
1414
"@types/jest": "^27.5.0",
1515
"@types/node": "10.17.27",
16+
"@types/prettier": "2.6.0",
1617
"jest": "^27.5.1",
1718
"ts-jest": "^27.1.4",
1819
"aws-cdk": "%cdk-version%",

packages/aws-cdk/lib/init-templates/v2/lib/typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"devDependencies": {
1212
"@types/jest": "^27.5.0",
1313
"@types/node": "10.17.27",
14+
"@types/prettier": "2.6.0",
1415
"aws-cdk-lib": "%cdk-version%",
1516
"constructs": "%constructs-version%",
1617
"jest": "^27.5.1",

packages/aws-cdk/lib/init-templates/v2/sample-app/typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"aws-cdk": "%cdk-version%",
1515
"@types/jest": "^27.5.0",
1616
"@types/node": "10.17.27",
17+
"@types/prettier": "2.6.0",
1718
"jest": "^27.5.1",
1819
"ts-jest": "^27.1.4",
1920
"ts-node": "^10.7.0",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@
19571957
resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
19581958
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
19591959

1960-
"@types/prettier@^2.1.5":
1960+
"@types/prettier@2.6.0", "@types/prettier@^2.1.5":
19611961
version "2.6.0"
19621962
resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.6.0.tgz#efcbd41937f9ae7434c714ab698604822d890759"
19631963
integrity sha512-G/AdOadiZhnJp0jXCaBQU449W2h716OW/EoXeYkCytxKL06X1WCXB4DZpp8TpZ8eyIJVS1cw4lrlkkSYU21cDw==

0 commit comments

Comments
 (0)