jargons.dev icon indicating copy to clipboard operation
jargons.dev copied to clipboard

Build: Move `"@types/react-dom"` to `devDependencies`

Open babblebey opened this issue 10 months ago • 0 comments

Currently, "@types/react-dom" is listed as a dependency in package.json. To align with good development practices, we should move "@types/react-dom" to devDependencies.

Steps:

  1. Open package.json file.
  2. Locate the "dependencies" section.
  3. Find the entry for "@types/react-dom" and cut it.
  4. Scroll down to the "devDependencies" section.
  5. Paste the "@types/react-dom" entry under "devDependencies".
  6. Save the package.json file.

Additional Steps:

  1. Run npm install to update the package-lock.json file with the changes made to package.json.

Additional Note:

  • Moving "@types/react-dom" to devDependencies ensures that it is only installed in the development environment, reducing the package size in production builds.
  • This should be easy for sure 😀 , feel free to ask question if you have any challenges following through the steps

babblebey avatar Apr 02 '24 12:04 babblebey