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

Split devDependencies into dependencies & devDependencies in package.json #92

Open
emanuelb opened this issue Jul 28, 2020 · 0 comments

Comments

@emanuelb
Copy link

Currently only devDependencies is used to declare dependencies in package.json file at:

"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/runtime": "^7.9.2",
"@react-native-community/blur": "^3.4.1",
"@react-native-community/datetimepicker": "^2.1.0",
"@react-native-community/eslint-config": "^1.0.0",
"@react-native-community/netinfo": "^5.6.2",
"@react-navigation/bottom-tabs": "^5.2.6",
"@react-navigation/native": "^5.1.5",
"babel-jest": "^25.2.6",
"eslint": "^6.8.0",
"jest": "^25.2.7",
"metro-react-native-babel-preset": "^0.59.0",
"react": "^16.9.0",
"react-native": "^0.61.5",
"react-native-gesture-handler": "^1.5.0",
"react-native-reanimated": "^1.4.0",
"@react-navigation/stack": "^5.2.11",
"@react-native-community/masked-view": "^0.1.9",
"react-native-safe-area-context": "^0.7.3",
"react-native-screens": "^2.5.0",
"react-native-ui-lib": "^5.6.0",
"react-test-renderer": "16.9.0",
"shelljs": "^0.8.3",
"@react-native-firebase/app": "^6.7.1",
"@react-native-firebase/crashlytics": "^6.7.1"
}

By splitting into dependencies and devDependencies it will reduce the packages installed when package install with --production argument ( or environment variable NODE_ENV=production declared ) which will install only packages declared in dependencies (for example: eslint & jest are probably devDependencies which are used only in testing/CI )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant