Skip to content

Commit

Permalink
Add 'optionalDependencies' to package.json
Browse files Browse the repository at this point in the history
- Move dependencies that are not necessary to build the application to 'optionalDependencies'
- A faster yarn install can now be performed with 'yarn install --ignore-optional'
  • Loading branch information
heitorado committed Apr 27, 2022
1 parent c5c6668 commit b8f21ad
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,50 +56,52 @@
},
"devDependencies": {
"@babel/core": "^7.17.8",
"@cypress/code-coverage": "^3.9.10",
"@graphql-codegen/cli": "^2.2.1",
"@graphql-codegen/typescript": "^2.2.4",
"@graphql-codegen/typescript-operations": "^2.1.8",
"@lhci/cli": "^0.9.0",
"@netlify/plugin-gatsby": "^2.0.0-beta",
"@storybook/addon-a11y": "^6.4.20",
"@storybook/addon-actions": "^6.4.20",
"@storybook/addon-essentials": "^6.4.20",
"@storybook/addon-links": "^6.4.20",
"@storybook/builder-webpack5": "^6.4.20",
"@storybook/manager-webpack5": "^6.4.20",
"@storybook/react": "^6.4.20",
"@testing-library/cypress": "^8.0.0",
"@types/cypress": "^1.1.3",
"@vtex/lighthouse-config": "^1.7.33",
"@vtex/prettier-config": "1.0.0",
"@vtex/tsconfig": "0.6.0",
"babel-loader": "^8.2.4",
"gatsby-plugin-bundle-stats": "^3.1.3",
"gatsby-plugin-postcss": "^5.3.0",
"husky": "^5.2.0",
"postcss": "^8.4.4"
},
"optionalDependencies": {
"autoprefixer": "^10.4.0",
"axe-core": "^4.3.3",
"babel-loader": "^8.2.4",
"babel-plugin-remove-graphql-queries": "^4.11.1",
"cypress": "6.6.0",
"cypress-axe": "^0.13.0",
"cypress-wait-until": "^1.7.2",
"@cypress/code-coverage": "^3.9.10",
"dotenv": "^8.2.0",
"eslint": "^7.22.0",
"eslint-config-vtex-react": "^7.0.0",
"gatsby-plugin-bundle-stats": "^3.1.3",
"gatsby-plugin-postcss": "^5.3.0",
"husky": "^5.2.0",
"@graphql-codegen/cli": "^2.2.1",
"@graphql-codegen/typescript": "^2.2.4",
"@graphql-codegen/typescript-operations": "^2.1.8",
"is-ci": "^3.0.0",
"@lhci/cli": "^0.9.0",
"lint-staged": "^10.5.4",
"postcss": "^8.4.4",
"@netlify/plugin-gatsby": "^2.0.0-beta",
"prettier": "^2.2.0",
"storybook-addon-gatsby": "^0.0.5",
"@storybook/addon-a11y": "^6.4.20",
"@storybook/addon-actions": "^6.4.20",
"@storybook/addon-essentials": "^6.4.20",
"@storybook/addon-links": "^6.4.20",
"@storybook/builder-webpack5": "^6.4.20",
"@storybook/manager-webpack5": "^6.4.20",
"@storybook/react": "^6.4.20",
"stylelint": "^14.6.0",
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-standard": "^24.0.0",
"stylelint-config-standard-scss": "^3.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.0.1",
"@testing-library/cypress": "^8.0.0",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"typescript": "^4.6.2"
"@types/cypress": "^1.1.3",
"typescript": "^4.6.2",
"@vtex/lighthouse-config": "^1.7.33",
"@vtex/prettier-config": "1.0.0",
"@vtex/tsconfig": "0.6.0"
},
"resolutions": {
"@typescript-eslint/parser": "^4",
Expand Down

0 comments on commit b8f21ad

Please sign in to comment.