fac25 / amai-mtoto

amai-mtoto.vercel.app
1 stars 1 forks source link

Move some dependencies to dev #132

Open snim2 opened 1 year ago

snim2 commented 1 year ago

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.