env-install icon indicating copy to clipboard operation
env-install copied to clipboard

How to support development only dependencies?

Open ivawzh opened this issue 5 years ago • 2 comments

Hi. This is a great lib. Thanks a lot for maintaining it.

Would you please support dev-deps?

A use case - I need my private module for Types only.

ivawzh avatar Mar 03 '19 16:03 ivawzh

Hi. Thanks ;)

Wouldn't you normally have access on the device where you do dev install?

porsager avatar Mar 03 '19 18:03 porsager

Ha this is a typical (terrible) TypeScript on Heroku situation that the deployment steps consist of

  1. npm install -D
  2. npm run build
  3. cd ./dist && npm i --production
  4. cd ./dist && npm start

Without the dev deps support. Now my ./dist build has all the TypeScript types dependencies installed while they are not used in PROD

ivawzh avatar Mar 04 '19 05:03 ivawzh