jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.
MIT License
1.53k stars 22 forks source link

add `typesync install` command? #41

Closed septs closed 5 years ago

septs commented 5 years ago

update package.json file after, call package installer (npm OR yarn)

cases:

  1. both (not)? exists package-lock.json and yarn.lock files, after rejection install.
  2. only exists package-lock.json, use npm install command install.
  3. only exists yarn.lock, use yarn install command install.

see https://yarnpkg.com/lang/en/docs/yarn-lock/ see https://docs.npmjs.com/files/package-lock.json

jeffijoe commented 5 years ago

Hi @septs!

This is sort of a dupe of #3 — the cost vs benefit of this does not make it worthwhile. Simply doing && npm install or && yarn install after typesync is not much effort.