node-firestore-backup icon indicating copy to clipboard operation
node-firestore-backup copied to clipboard

Move babel and other command line dependencies to devDependencies

Open lewchuk opened this issue 7 years ago • 2 comments

It looks like inclusion of babel-cli and the babel-preset-* packages in dependencies adds 45 MB (almost 50%) to the production dependencies of anyone including this library in their dependencies.

Currently:

> yarn install --production
> du -sh node_modules
145M	node_modules

After moving babel-* to devDependencies:

> yarn install --production
> du -sh node_modules
106M	node_modules

Moving the babel packages to dev-dependencies still lets anyone run the command line version of the code when only yarn install --production.

lewchuk avatar May 09 '18 19:05 lewchuk

Not sure between yarn.lock and package-lock.json how the dependencies are managed otherwise I'm happy to open a PR.

lewchuk avatar May 09 '18 19:05 lewchuk

Basically if you move the dependencies to to dev-dependencies and run "npm install" & "yarn install" I think these files should be updated automatically.

atlanteh avatar Jul 21 '18 20:07 atlanteh