Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add styled-components@6 support #325

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ yarn-error.log*
# others
packages/*/stats.html
packages/hover-vanilla/docs/dist
packages/react/src/utils/mql.js
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,10 @@
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit",
"pre-commit": "npx nano-staged"
},
"standard": {
"ignore": [
"packages/react/src/utils/mql.js"
]
}
}
2 changes: 1 addition & 1 deletion packages/hover-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"peerDependencies": {
"react": ">= 17",
"react-dom": ">= 17",
"styled-components": "^5"
"styled-components": ">= 5"
},
"publishConfig": {
"access": "public"
Expand Down
9 changes: 5 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"react"
],
"dependencies": {
"@microlink/mql": "~0.11.1",
"@microlink/mql": "~0.12.0",
"localhost-url-regex": "~1.0.4",
"nanoclamp": "~2.0.4"
},
Expand All @@ -43,7 +43,6 @@
"@rollup/plugin-node-resolve": "latest",
"@rollup/plugin-replace": "latest",
"@rollup/plugin-terser": "latest",
"@storybook/addon-storyshots": "~6.5.16",
"@storybook/addons": "~6.5.16",
"@storybook/builder-webpack5": "~6.5.16",
"@storybook/manager-webpack5": "~6.5.16",
Expand All @@ -56,8 +55,8 @@
"jest": "26",
"jest-environment-enzyme": "latest",
"jest-enzyme": "latest",
"jest-styled-components": "latest",
"lodash": "latest",
"esbuild": "latest",
"prop-types": "latest",
"react": "^17",
"react-dom": "^17",
Expand All @@ -76,9 +75,11 @@
"scripts": {
"build": "NODE_ENV=production rollup -c rollup.config.js --bundleConfigAsCjs",
"build-storybook": "NODE_ENV=production build-storybook --quiet",
"transpile": "echo \"export { fetchFromApi, getApiUrl } from '@microlink/mql'\" | esbuild --bundle --target=ES2019 --format=esm --minify-whitespace --minify-identifiers > src/utils/mql.js",
"dev": "start-storybook -p 6006",
"start": "node scripts/start.js",
"pretest": "npm run build",
"postinstall": "npm run transpile",
"test": "NODE_ENV=test jest --detectOpenHandles"
},
"license": "MIT",
Expand All @@ -93,7 +94,7 @@
"peerDependencies": {
"react": ">= 17",
"react-dom": ">= 17",
"styled-components": "^5"
"styled-components": ">= 5"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchFromApi, getApiUrl as createApiUrl } from '@microlink/mql'
import { fetchFromApi, getApiUrl as createApiUrl } from './mql'
import localhostUrl from 'localhost-url-regex'
import { css } from 'styled-components'

Expand Down
Loading
Loading