diff --git a/packages/css-prettifier/package.json b/packages/css-prettifier/package.json index fa71a6702..d1936c00b 100644 --- a/packages/css-prettifier/package.json +++ b/packages/css-prettifier/package.json @@ -15,7 +15,7 @@ "license": "MIT", "dependencies": { "@emotion/memoize": "0.7.4", - "@emotion/stylis": "0.8.5" + "stylis": "^4.0.0" }, "devDependencies": {}, "publishConfig": { diff --git a/packages/css-prettifier/src/index.js b/packages/css-prettifier/src/index.js index 1a9fe6f54..0f92ea05d 100644 --- a/packages/css-prettifier/src/index.js +++ b/packages/css-prettifier/src/index.js @@ -1,5 +1,5 @@ import memoize from '@emotion/memoize' -import { compile, serialize, combine, tokenize } from '@emotion/stylis' +import { compile, serialize, combine, tokenize } from 'stylis' // adjusted https://github.com/thysultan/stylis.js/blob/68b9043427c177b95a0fd6a2a13f5b636bf80236/src/Serializer.js#L26-L34 const prettyStringify = memoize( diff --git a/packages/jest/package.json b/packages/jest/package.json index b1ffb20e7..290a8f62d 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -18,10 +18,10 @@ "dependencies": { "@babel/runtime": "^7.7.2", "@emotion/css-prettifier": "^1.0.0-next.0", - "@emotion/stylis": "0.8.5", "@types/jest": "^25.2.1", "chalk": "^2.4.1", - "specificity": "^0.4.1" + "specificity": "^0.4.1", + "stylis": "^4.0.0" }, "peerDependencies": { "enzyme-to-json": "^3.2.1" diff --git a/packages/jest/src/matchers.js b/packages/jest/src/matchers.js index 25ce444a3..60fcf0878 100644 --- a/packages/jest/src/matchers.js +++ b/packages/jest/src/matchers.js @@ -1,6 +1,6 @@ // @flow import chalk from 'chalk' -import * as stylis from '@emotion/stylis' +import * as stylis from 'stylis' import * as specificity from 'specificity' import { getClassNamesFromNodes,