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

Move some dependencies to dev #132

Open
snim2 opened this issue Dec 6, 2022 · 0 comments
Open

Move some dependencies to dev #132

snim2 opened this issue Dec 6, 2022 · 0 comments

Comments

@snim2
Copy link

snim2 commented Dec 6, 2022

In your package.json file you currently have:

...
 "dependencies": {
    "@chakra-ui/icons": "^2.0.13",
    "@chakra-ui/react": "^2.4.2",
    "@emotion/react": "^11.10.5",
    "@emotion/styled": "^11.10.5",
    "@types/node": "18.11.9",
    "@types/react-dom": "18.0.9",
    "dotenv": "^16.0.3",
    "eslint": "8.28.0",
    "eslint-config-next": "^13.0.5",
    "firebase": "^9.14.0",
    "framer-motion": "^6.5.1",
    "next": "13.0.5",
    "prettier": "^2.8.0",
    "react-dom": "^18.2.0",
    "react-faq-component": "^1.3.4",
    "react-hook-form": "^7.39.5",
    "react-tabs": "^6.0.0",
    "react-youtube": "^10.1.0",
    "redux": "^4.2.0",
    "swiper": "^8.4.5",
    "typescript": "4.9.3"
  },
...

Of these, eslint, eslint-config-next and prettier should be in devDependencies. This prevents these packages from being deployed to your live environment(s), which cuts down the amount of Javascript you need to ship and also ensures that any security vulnerabilities in your dev packages will not escape your local development environments.

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