Skip to content

Commit 072d507

Browse files
RoseMagurasrmagura
andauthored
Upgrade packages for compatibility with Node 18 (#166)
* Fix commits * Update Yarn to fix TypeScript patching --------- Co-authored-by: Sam Magura <[email protected]>
1 parent 85a71b3 commit 072d507

File tree

7 files changed

+4888
-3174
lines changed

7 files changed

+4888
-3174
lines changed
File renamed without changes.

.storybook/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
22
stories: ['../**/*.stories.mdx', '../**/*.stories.@(js|jsx|ts|tsx)'],
33
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
4+
core: {
5+
builder: 'webpack5',
6+
},
47
}

.yarn/releases/yarn-3.2.0.cjs

-785
This file was deleted.

.yarn/releases/yarn-3.4.1.cjs

+873
Large diffs are not rendered by default.

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-3.2.0.cjs
3+
yarnPath: .yarn/releases/yarn-3.4.1.cjs

package.json

+39-37
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"dist/"
2626
],
2727
"scripts": {
28-
"build": "yarn clean && tsc && rollup -c .config/rollup.config.js",
28+
"build": "yarn clean && tsc && rollup -c .config/rollup.config.mjs",
2929
"clean": "rimraf dist",
3030
"lint": "eslint .",
3131
"lint-staged": "lint-staged --no-stash",
@@ -43,52 +43,54 @@
4343
"*.{md,js,cjs,yml,json}": "prettier --write"
4444
},
4545
"browserslist": [
46-
"maintained node versions",
4746
"> 0.25%",
4847
"not dead",
4948
"not IE 11"
5049
],
5150
"devDependencies": {
52-
"@babel/core": "^7.17.9",
53-
"@rollup/plugin-typescript": "^8.3.1",
54-
"@storybook/addon-essentials": "^6.4.21",
55-
"@storybook/addon-links": "^6.4.21",
56-
"@storybook/react": "^6.4.21",
57-
"@swc/core": "^1.2.165",
58-
"@swc/jest": "^0.2.20",
59-
"@testing-library/jest-dom": "^5.16.4",
60-
"@testing-library/react": "^13.0.0",
61-
"@types/react": "^18.0.1",
62-
"@types/react-dom": "^18.0.0",
63-
"@typescript-eslint/eslint-plugin": "^5.18.0",
64-
"@typescript-eslint/parser": "^5.18.0",
65-
"babel-loader": "^8.2.4",
66-
"eslint": "^8.13.0",
51+
"@babel/core": "^7.21.0",
52+
"@rollup/plugin-typescript": "^11.0.0",
53+
"@storybook/addon-essentials": "^6.5.16",
54+
"@storybook/addon-links": "^6.5.16",
55+
"@storybook/builder-webpack5": "^6.5.16",
56+
"@storybook/manager-webpack5": "^6.5.16",
57+
"@storybook/react": "^6.5.16",
58+
"@swc/core": "^1.3.37",
59+
"@swc/jest": "^0.2.24",
60+
"@testing-library/jest-dom": "^5.16.5",
61+
"@testing-library/react": "^12.1.2",
62+
"@types/react": "^18.0.28",
63+
"@types/react-dom": "^18.0.11",
64+
"@typescript-eslint/eslint-plugin": "^5.54.0",
65+
"@typescript-eslint/parser": "^5.54.0",
66+
"babel-loader": "^9.1.2",
67+
"eslint": "^8.35.0",
6768
"eslint-config-airbnb": "^19.0.4",
6869
"eslint-config-airbnb-typescript": "^17.0.0",
69-
"eslint-config-prettier": "^8.5.0",
70-
"eslint-plugin-import": "^2.26.0",
71-
"eslint-plugin-jest": "^26.1.4",
72-
"eslint-plugin-jest-dom": "^4.0.1",
73-
"eslint-plugin-jsx-a11y": "^6.5.1",
74-
"eslint-plugin-react": "^7.29.4",
75-
"eslint-plugin-react-hooks": "^4.4.0",
76-
"eslint-plugin-testing-library": "^5.2.1",
77-
"husky": "^7.0.4",
78-
"jest": "^27.5.1",
79-
"lint-staged": "^12.3.7",
80-
"prettier": "^2.6.2",
81-
"react": "^18.0.0",
82-
"react-dom": "^18.0.0",
83-
"rimraf": "^3.0.2",
84-
"rollup": "^2.70.1",
70+
"eslint-config-prettier": "^8.6.0",
71+
"eslint-plugin-import": "^2.27.5",
72+
"eslint-plugin-jest": "^27.2.1",
73+
"eslint-plugin-jest-dom": "^4.0.3",
74+
"eslint-plugin-jsx-a11y": "^6.7.1",
75+
"eslint-plugin-react": "^7.32.2",
76+
"eslint-plugin-react-hooks": "^4.6.0",
77+
"eslint-plugin-testing-library": "^5.10.2",
78+
"husky": "^8.0.3",
79+
"jest": "^29.4.3",
80+
"jest-environment-jsdom": "^29.4.3",
81+
"lint-staged": "^13.1.2",
82+
"prettier": "^2.8.4",
83+
"react": "^17.0.2",
84+
"react-dom": "^17.0.2",
85+
"rimraf": "^4.1.2",
86+
"rollup": "^3.17.3",
8587
"rollup-plugin-copy": "^3.4.0",
86-
"tslib": "^2.3.1",
87-
"typescript": "^4.6.3",
88-
"webpack": "^5.72.0"
88+
"tslib": "^2.5.0",
89+
"typescript": "^4.9.5",
90+
"webpack": "^5.75.0"
8991
},
9092
"peerDependencies": {
9193
"react": ">=16.8.0"
9294
},
93-
"packageManager": "yarn@3.2.0"
95+
"packageManager": "yarn@3.4.1"
9496
}

0 commit comments

Comments
 (0)