Skip to content

Agreements

acd edited this page May 30, 2023 · 8 revisions

Managing Dependencies within Spark components

  • Use fixed version for (external packages) dependencies or devDependencies
  • Use range version (^) for peerDependencies or when referencing Spark packages

Example:

"dependencies": {
  "@radix-ui/some-component": "1.0.2",
  "@spark-ui/button": "^1.13.0",
  "@spark-ui/internal-utils": "^1.6.0",
},
"devDependencies": {
  "svgo": "3.0.2",
},
"peerDependencies": {
  "react": "^16.8 || ^17.0 || ^18.0",
  "react-dom": "^16.8 || ^17.0 || ^18.0",
},

Managing Storybook Dependencies:

  • Use range version (^)
  • When an update is needed, run the dedicated script: npx storybook@latest upgrade