Skip to content

Commit bc5ba49

Browse files
authored
Upgrade yarn (#705)
* Migrate to Yarn 3 * Update .gitignore and yarn.lock * Re-order package.json * Remove re-specified defaults * Fix linting
1 parent 1b006f0 commit bc5ba49

File tree

9 files changed

+7360
-4361
lines changed

9 files changed

+7360
-4361
lines changed

smithy-typescript-ssdk-libs/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
**/yarn-error.log
55
coverage
66
**/.turbo
7+
.pnp.*
8+
.yarn/*
9+
!.yarn/patches
10+
!.yarn/plugins
11+
!.yarn/releases
12+
!.yarn/sdks
13+
!.yarn/versions

smithy-typescript-ssdk-libs/.yarn/releases/yarn-3.4.1.cjs

Lines changed: 873 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yarnPath: .yarn/releases/yarn-3.4.1.cjs
2+
nodeLinker: node-modules

smithy-typescript-ssdk-libs/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ const base = require("./jest.config.base.js");
22

33
module.exports = {
44
...base,
5-
projects: ["<rootDir>/*/jest.config.js"],
6-
testPathIgnorePatterns: ["/node_modules/"],
7-
coveragePathIgnorePatterns: ["/node_modules/"],
5+
projects: ["<rootDir>/*/jest.config.js"]
86
};

smithy-typescript-ssdk-libs/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
},
2424
"devDependencies": {
2525
"@types/jest": "^26.0.4",
26-
"@typescript-eslint/eslint-plugin": "4.30.0",
27-
"@typescript-eslint/parser": "4.30.0",
28-
"eslint": "7.32.0",
29-
"eslint-config-prettier": "8.3.0",
30-
"eslint-plugin-prettier": "3.4.1",
31-
"eslint-plugin-simple-import-sort": "7.0.0",
3226
"jest": "^26.1.0",
3327
"prettier": "2.2.1",
3428
"ts-jest": "^26.4.1",
@@ -41,5 +35,5 @@
4135
"*"
4236
]
4337
},
44-
"packageManager": "yarn@1.22.10"
38+
"packageManager": "yarn@3.4.1"
4539
}

smithy-typescript-ssdk-libs/server-apigateway/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"postbuild": "rimraf dist/types/ts3.4 && downlevel-dts dist/types dist/types/ts3.4",
1616
"test": "jest --passWithNoTests",
1717
"clean": "rimraf dist",
18-
"lint": "yarn run eslint -c ../.eslintrc.js \"src/**/*.ts\"",
18+
"lint": "eslint -c ../.eslintrc.js \"src/**/*.ts\"",
1919
"format": "prettier --config ../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\""
2020
},
2121
"repository": {
@@ -34,11 +34,17 @@
3434
"devDependencies": {
3535
"@types/jest": "^26.0.4",
3636
"@types/node": "^14.14.37",
37+
"@typescript-eslint/eslint-plugin": "4.30.0",
38+
"@typescript-eslint/parser": "4.30.0",
3739
"concurrently": "^7.6.0",
3840
"downlevel-dts": "^0.7.0",
41+
"eslint": "7.32.0",
42+
"eslint-config-prettier": "8.3.0",
43+
"eslint-plugin-prettier": "3.4.1",
44+
"eslint-plugin-simple-import-sort": "7.0.0",
3945
"jest": "^26.1.0",
40-
"typescript": "~4.2.2",
41-
"rimraf": "^3.0.2"
46+
"rimraf": "^3.0.2",
47+
"typescript": "~4.2.2"
4248
},
4349
"files": [
4450
"dist/cjs/**/*.js",

smithy-typescript-ssdk-libs/server-common/package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"postbuild": "rimraf dist/types/ts3.4 && downlevel-dts dist/types dist/types/ts3.4",
1616
"test": "jest",
1717
"clean": "rimraf dist",
18-
"lint": "yarn run eslint -c ../.eslintrc.js \"src/**/*.ts\"",
18+
"lint": "eslint -c ../.eslintrc.js \"src/**/*.ts\"",
1919
"format": "prettier --config ../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\""
2020
},
2121
"repository": {
@@ -28,18 +28,24 @@
2828
"dependencies": {
2929
"@aws-sdk/protocol-http": "^3.267.0",
3030
"@aws-sdk/types": "^3.267.0",
31-
"tslib": "^1.8.0",
32-
"re2-wasm": "^1.0.2"
31+
"re2-wasm": "^1.0.2",
32+
"tslib": "^1.8.0"
3333
},
3434
"devDependencies": {
3535
"@types/jest": "^26.0.22",
3636
"@types/node": "^14.14.37",
37+
"@typescript-eslint/eslint-plugin": "4.30.0",
38+
"@typescript-eslint/parser": "4.30.0",
3739
"concurrently": "^7.6.0",
3840
"downlevel-dts": "^0.7.0",
41+
"eslint": "7.32.0",
42+
"eslint-config-prettier": "8.3.0",
43+
"eslint-plugin-prettier": "3.4.1",
44+
"eslint-plugin-simple-import-sort": "7.0.0",
3945
"jest": "^26.6.3",
46+
"rimraf": "^3.0.2",
4047
"ts-jest": "^26.5.2",
41-
"typescript": "^4.2.2",
42-
"rimraf": "^3.0.2"
48+
"typescript": "^4.2.2"
4349
},
4450
"files": [
4551
"dist/cjs/**/*.js",

smithy-typescript-ssdk-libs/server-node/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"postbuild": "rimraf dist/types/ts3.4 && downlevel-dts dist/types dist/types/ts3.4",
1616
"test": "jest --passWithNoTests",
1717
"clean": "rimraf dist",
18-
"lint": "yarn run eslint -c ../.eslintrc.js \"src/**/*.ts\"",
18+
"lint": "eslint -c ../.eslintrc.js \"src/**/*.ts\"",
1919
"format": "prettier --config ../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\""
2020
},
2121
"repository": {
@@ -35,6 +35,10 @@
3535
"@types/node": "^14.14.37",
3636
"concurrently": "^7.6.0",
3737
"downlevel-dts": "^0.7.0",
38+
"eslint": "7.32.0",
39+
"eslint-config-prettier": "8.3.0",
40+
"eslint-plugin-prettier": "3.4.1",
41+
"eslint-plugin-simple-import-sort": "7.0.0",
3842
"jest": "^26.1.0",
3943
"rimraf": "^3.0.2",
4044
"typescript": "~4.2.2"

0 commit comments

Comments
 (0)