This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
ejecting adds a lot of dependencies, but it should add them to devDependencies #208
Open
Description
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
not relevant
Which terms did you search for in User Guide?
N/A
Environment
1-3: not relevant
4. npm ls react-scripts-ts
(if you haven’t ejected): 2.8.0
Then, specify:
- Operating system: Linux, but not relevant
- Browser and version (if relevant): not relevant
Steps to Reproduce
- npm run eject
Expected Behavior
No packages are added under "dependencies" in package.json, but rather to devDependencies, where they really belong. I want to remove all the non-essential 3rd party dependencies for production use ("npm prune --production" (works well in npm 5, finaly...)). This is also a legal issue: the 3rd party stuff you deploy to a customer needs their licences to be checked.
Actual Behavior
Stuff is being added to dependencies:
Removing react-scripts-ts from devDependencies
Adding autoprefixer to dependencies
Adding case-sensitive-paths-webpack-plugin to dependencies
Adding chalk to dependencies
Adding css-loader to dependencies
Adding dotenv to dependencies
Adding extract-text-webpack-plugin to dependencies
Adding file-loader to dependencies
Adding fs-extra to dependencies
Adding html-webpack-plugin to dependencies
Adding jest to dependencies
Adding object-assign to dependencies
Adding postcss-flexbugs-fixes to dependencies
Adding postcss-loader to dependencies
Adding promise to dependencies
Adding react-dev-utils to dependencies
Adding source-map-loader to dependencies
Adding style-loader to dependencies
Adding sw-precache-webpack-plugin to dependencies
Adding ts-jest to dependencies
Adding ts-loader to dependencies
Adding tslint to dependencies
Adding tslint-loader to dependencies
Adding tslint-react to dependencies
Adding typescript to dependencies
Adding url-loader to dependencies
Adding webpack to dependencies
Adding webpack-dev-server to dependencies
Adding webpack-manifest-plugin to dependencies
Adding whatwg-fetch to dependencies
Reproducible Demo
N/A
PS
Should I create a ticket for create-react-app?
I know I can edit package.json and move the added dependencies to devDependencies myself, and I will do it. But why not have this fixed in the first place.
Metadata
Metadata
Assignees
Labels
No labels