Skip to content

Move some dependencies to dev #132

Description

@snim2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions