Skip to content

Commit

Permalink
fix: make css-select and css-tree dependencies instead of peers
Browse files Browse the repository at this point in the history
fixes #1166

metro tries to resolve the dependencies,
even if the components which are using them are not used / imported.
  • Loading branch information
msand committed Oct 23, 2019
1 parent f24dd66 commit 957914d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
26 changes: 7 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,27 @@
"gradient"
],
"scripts": {
"lint": "eslint --ext .ts,.tsx src",
"bob": "bob build",
"flow": "flow src",
"flowgen": "flowgen src/index.d.ts -o src/index.js.flow",
"flowtyped": "flow-typed install",
"format": "prettier README.md './src/**/*.{ts,tsx}' src/index.d.ts --write",
"jest": "jest",
"lint": "eslint --ext .ts,.tsx src",
"peg": "pegjs -o src/lib/extract/transform.js ./src/lib/extract/transform.peg",
"tsc": "tsc --noEmit",
"test": "npm run lint && npm run tsc && npm run flow && npm run jest",
"prepare": "npm run flowgen && npm run bob",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"test": "npm run lint && npm run tsc && npm run flow && npm run jest",
"tsc": "tsc --noEmit"
},
"peerDependencies": {
"css-select": "^2.0.2",
"css-tree": "^1.0.0-alpha.37",
"react": "*",
"react-native": ">=0.50.0"
},
"dependencies": {},
"dependencies": {
"css-select": "^2.0.2",
"css-tree": "^1.0.0-alpha.37"
},
"devDependencies": {
"@react-native-community/bob": "^0.7.0",
"@react-native-community/eslint-config": "^0.0.5",
Expand All @@ -62,8 +63,6 @@
"@types/react-native": "^0.60.21",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"css-select": "^2.0.2",
"css-tree": "^1.0.0-alpha.37",
"eslint": "^6.5.1",
"eslint-plugin-flowtype": "^4.3.0",
"eslint-plugin-prettier": "^3.1.1",
Expand Down

0 comments on commit 957914d

Please sign in to comment.