Skip to content

Commit

Permalink
chore: allow React 18 in peerDependencies (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Oct 26, 2022
1 parent 5f2b99c commit f9fb572
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "fix: cleanup dependencies in @griffel/devtools",
"packageName": "@griffel/devtools",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: allow React 18 in peerDependencies",
"packageName": "@griffel/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
10 changes: 9 additions & 1 deletion packages/devtools/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/*.ts", "**/*.tsx"],
"packageDir": [".", "./packages/devtools"]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
Expand Down
12 changes: 2 additions & 10 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,7 @@
"type": "git",
"url": "https://github.com/microsoft/griffel"
},
"sideEffects": false,
"dependencies": {
"@emotion/hash": "^0.8.0",
"@griffel/react": "^1.4.1",
"js-beautify": "^1.14.0",
"prism-react-renderer": "1.2.1",
"react-dom": ">=16.8.0 <18.0.0",
"react": ">=16.8.0 <18.0.0",
"source-map-js": "1.0.2",
"stylis": "^4.0.13"
"devDependencies": {
"@griffel/react": "^1.4.1"
}
}
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"tslib": "^2.1.0"
},
"peerDependencies": {
"react": ">=16.8.0 <18.0.0"
"react": ">=16.8.0 <19.0.0"
}
}

0 comments on commit f9fb572

Please sign in to comment.