Skip to content

Commit ef060c7

Browse files
chore(deps): upgrade dependencies
BREAKING CHANGE: TypeScript bump from v4 to v5, Jest bump from v28 to v29
1 parent cfb9c66 commit ef060c7

File tree

16 files changed

+2882
-2603
lines changed

16 files changed

+2882
-2603
lines changed

package.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@
2222
],
2323
"devDependencies": {
2424
"@spotify/eslint-config-oss": "^1.0.0",
25-
"@spotify/eslint-plugin": "^13.0.0",
25+
"@spotify/eslint-plugin": "^14.1.6",
2626
"husky": "^8.0.1",
27-
"lerna": "^5.5.2",
28-
"typescript": "^4.5.0"
29-
},
30-
"resolutions": {
31-
"minimist": "^1.2.6",
32-
"ansi-regex": "^4.1.1"
27+
"lerna": "^6.6.2",
28+
"typescript": "^5.0.4"
3329
}
3430
}

packages/create-web-scripts-library/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
},
3636
"dependencies": {
3737
"chalk": "^4.0.0",
38-
"commander": "^6.1.0",
38+
"commander": "^10.0.1",
3939
"execa": "^5.0.0",
40-
"fs-extra": "^10.0.0",
40+
"fs-extra": "^11.1.1",
4141
"read-pkg-up": "^7.0.1"
4242
},
4343
"devDependencies": {
4444
"@spotify/web-scripts": "^14.1.6",
45-
"@types/fs-extra": "^9.0.13",
45+
"@types/fs-extra": "^11.0.1",
4646
"tempy": "^1.0.1"
4747
},
4848
"publishConfig": {

packages/create-web-scripts-library/src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import program from 'commander';
16+
import { program } from 'commander';
1717
import chalk from 'chalk';
1818

1919
import createWebScriptsLibrary from '.';

packages/create-web-scripts-library/src/messages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import program from 'commander';
16+
import { program } from 'commander';
1717
import chalk from 'chalk';
1818

1919
export const missingProjectName = () => `

packages/eslint-config-react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"main": "index.js",
1111
"scripts": {},
1212
"devDependencies": {
13-
"eslint": "^8.10.0",
13+
"eslint": "^8.40.0",
1414
"eslint-plugin-jsx-a11y": "^6.4.1",
15-
"eslint-plugin-react": "^7.29.2",
15+
"eslint-plugin-react": "^7.32.2",
1616
"eslint-plugin-react-hooks": "^4.2.0"
1717
},
1818
"peerDependencies": {

packages/eslint-config-typescript/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"main": "index.js",
1111
"scripts": {},
1212
"devDependencies": {
13-
"@typescript-eslint/eslint-plugin": "^5.13.0",
14-
"@typescript-eslint/parser": "^5.13.0",
15-
"eslint": "^8.10.0"
13+
"@typescript-eslint/eslint-plugin": "^5.59.6",
14+
"@typescript-eslint/parser": "^5.59.6",
15+
"eslint": "^8.40.0"
1616
},
1717
"peerDependencies": {
1818
"@typescript-eslint/eslint-plugin": ">=5",

packages/eslint-config/package.json

+9-10
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,24 @@
1818
},
1919
"scripts": {},
2020
"dependencies": {
21-
"@spotify/eslint-config-base": "^13.0.1",
22-
"@spotify/eslint-config-react": "^13.0.1",
23-
"@spotify/eslint-config-typescript": "^13.0.1",
21+
"@spotify/eslint-config-base": "^14.1.6",
22+
"@spotify/eslint-config-react": "^14.1.6",
23+
"@spotify/eslint-config-typescript": "^14.1.6",
2424
"@spotify/eslint-plugin": "^14.1.6",
2525
"@spotify/web-scripts-utils": "^14.1.6",
26-
"@typescript-eslint/eslint-plugin": "^5.13.0",
27-
"@typescript-eslint/parser": "^5.13.0",
28-
"eslint-config-prettier": "^8.1.0",
26+
"@typescript-eslint/eslint-plugin": "^5.59.6",
27+
"@typescript-eslint/parser": "^5.59.6",
28+
"eslint-config-prettier": "^8.8.0",
2929
"eslint-plugin-jest": "^27.1.6",
3030
"eslint-plugin-jsx-a11y": "^6.4.1",
31-
"eslint-plugin-react": "^7.29.2",
31+
"eslint-plugin-react": "^7.32.2",
3232
"eslint-plugin-react-hooks": "^4.2.0"
3333
},
3434
"devDependencies": {
35-
"eslint": "^8.10.0"
35+
"eslint": "^8.40.0"
3636
},
3737
"peerDependencies": {
38-
"@spotify/eslint-plugin": ">=8.x",
39-
"eslint": "^8.10.0"
38+
"eslint": ">=8.x"
4039
},
4140
"publishConfig": {
4241
"access": "public"

packages/eslint-plugin/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
},
3636
"devDependencies": {
3737
"@spotify/web-scripts": "^14.1.6",
38-
"@types/eslint": "^8.4.1",
39-
"@types/jest": "^28.1.4",
40-
"@typescript-eslint/parser": "^5.13.0",
41-
"@typescript-eslint/types": "^5.13.0",
42-
"eslint": "^8.10.0",
43-
"typescript": "^4.5.0"
38+
"@types/eslint": "^8.37.0",
39+
"@types/jest": "^29.5.1",
40+
"@typescript-eslint/parser": "^5.59.6",
41+
"@typescript-eslint/types": "^5.59.6",
42+
"eslint": "^8.40.0",
43+
"typescript": "^5.0.4"
4444
},
4545
"peerDependencies": {
4646
"@typescript-eslint/parser": "^5.13.0",
47-
"eslint": "^8.10.0"
47+
"eslint": ">=8.x"
4848
},
4949
"publishConfig": {
5050
"access": "public"

packages/prettier-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"main": "index.js",
1111
"scripts": {},
1212
"devDependencies": {
13-
"prettier": "^2.2.1"
13+
"prettier": "^2.8.8"
1414
},
1515
"peerDependencies": {
1616
"prettier": "2.x"

packages/tsconfig/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"test": "true"
1616
},
1717
"devDependencies": {
18-
"typescript": "^4.5.0"
18+
"typescript": "^5.0.4"
1919
},
2020
"peerDependencies": {
21-
"typescript": ">=4 <5"
21+
"typescript": ">=5"
2222
},
2323
"publishConfig": {
2424
"access": "public"

packages/web-scripts-utils/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@spotify/web-scripts-utils",
33
"version": "14.1.6",
44
"description": "Private package which contains re-used utils within web-scripts projects",
5+
"license": "Apache-2.0",
56
"repository": {
67
"type": "git",
78
"url": "git+https://github.com/spotify/web-scripts.git"
@@ -24,12 +25,13 @@
2425
"prepublishOnly": "yarn run bootstrap && yarn run build"
2526
},
2627
"dependencies": {
27-
"glob": "^8.0.3",
28+
"@types/glob": "8.1.0",
29+
"glob": "8.1.0",
2830
"read-pkg-up": "^7.0.1"
2931
},
3032
"devDependencies": {
3133
"@spotify/tsconfig": "^14.1.6",
32-
"@types/jest": "^28.1.4"
34+
"@types/jest": "^29.5.1"
3335
},
3436
"publishConfig": {
3537
"access": "public"

packages/web-scripts/config/jest.config.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ module.exports = {
1919
rootDir: path.join(process.cwd(), 'src'),
2020
coverageDirectory: path.join(process.cwd(), 'coverage'),
2121
collectCoverageFrom: ['**/*.{js,jsx,ts,tsx}', '!**/*.d.ts'],
22-
preset: 'ts-jest/presets/js-with-ts',
23-
globals: {
24-
'ts-jest': {
25-
tsconfig: {
26-
allowJs: true,
22+
transform: {
23+
'^.+\\.[tj]sx?$': [
24+
'ts-jest',
25+
{
26+
tsconfig: {
27+
allowJs: true,
28+
},
2729
},
28-
},
30+
],
2931
},
3032
};

packages/web-scripts/package.json

+15-17
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,32 @@
3030
"prepublishOnly": "yarn run bootstrap && yarn run build"
3131
},
3232
"dependencies": {
33-
"@commitlint/cli": "^17.4.2",
34-
"@commitlint/config-conventional": "^17.0.3",
33+
"@commitlint/cli": "^17.6.3",
34+
"@commitlint/config-conventional": "^17.6.3",
3535
"@spotify/eslint-config": "^14.1.6",
36-
"@spotify/prettier-config": "^13.0.1",
37-
"@spotify/tsconfig": "^13.0.1",
36+
"@spotify/prettier-config": "^14.1.6",
37+
"@spotify/tsconfig": "^14.1.6",
3838
"@spotify/web-scripts-utils": "^14.1.6",
3939
"@types/cross-spawn": "^6.0.0",
4040
"@types/debug": "^4.1.2",
41-
"@types/jest": "^28.1.4",
42-
"@types/react": "^18.0.15",
43-
"@types/react-dom": "^18.0.6",
44-
"commander": "^6.1.0",
41+
"@types/jest": "^29.5.1",
42+
"@types/react": "^18.2.6",
43+
"commander": "^10.0.1",
4544
"commitizen": "^4.2.6",
4645
"cross-spawn-promise": "^0.10.1",
4746
"cz-conventional-changelog": "^3.3.0",
4847
"debug": "^4.1.1",
49-
"eslint": "^8.10.0",
50-
"jest": "^28.1.2",
51-
"jest-junit": "^14.0.0",
52-
"lint-staged": "^13.0.3",
53-
"prettier": "^2.2.1",
54-
"semantic-release": "^19.0.3",
55-
"ts-jest": "^28.0.5",
56-
"typescript": "^4.5.0"
48+
"eslint": "^8.40.0",
49+
"jest": "^29.5.0",
50+
"jest-junit": "^16.0.0",
51+
"lint-staged": "^13.2.2",
52+
"prettier": "^2.8.8",
53+
"semantic-release": "^21.0.2",
54+
"ts-jest": "^29.1.0",
55+
"typescript": "^5.0.4"
5756
},
5857
"devDependencies": {
5958
"@types/rimraf": "^3.0.0",
60-
"@types/tempy": "^0.3.0",
6159
"object.fromentries": "^2.0.0",
6260
"rimraf": "^3.0.0",
6361
"tempy": "^1.0.1"

packages/web-scripts/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import program, { Command } from 'commander';
16+
import { program, Command } from 'commander';
1717
import { SpawnSyncReturns } from 'child_process';
1818

1919
import {
@@ -285,7 +285,7 @@ function handleSpawnResult(result: SpawnSyncReturns<Buffer>) {
285285
}
286286

287287
function getCommand(args: any[]): Command {
288-
return args[0] as Command;
288+
return args[1] as Command;
289289
}
290290

291291
function getOpts(cmd: Command): { [key: string]: any } {

packages/web-scripts/src/integration.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ describe.skip('integration tests', () => {
130130
'typescript',
131131
'@types/jest',
132132
'@types/react',
133-
'@types/react-dom',
134133
];
135134

136135
// as of ESLint 6, ESLint plugins need to be locally installed too.

0 commit comments

Comments
 (0)