jeffijoe / typesync

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

Add typesync rc file support #47

Closed septs closed 3 years ago

septs commented 4 years ago

Configure ignore dependencies, ignore packages, etc via typesync rc file.

sample file path:

project directory/.typesync-rc.json
project directory/[any first-level subdirectory]/.typesync-rc.json

sample file format:

{
  "ignoreDependencies": ["peer"],
  "ignorePackages": ["express"]
}
jeffijoe commented 4 years ago

What is the difference between "dependencies" and "packages"? I find them ambiguous.

septs commented 4 years ago

ignoreDependencies is to keep this feature

https://github.com/jeffijoe/typesync/blob/23f8a5cb842f0fcf42e839b329c2c103823ab368/README.md#L40-L48

septs commented 4 years ago

ignorePackages is ignore specific single package, e.q: #46 the case

jeffijoe commented 4 years ago

Ah gotcha!

septs commented 4 years ago

I don't know where the entry settings for loading configuration file should be If you can tell me, I can submit a pull request

jeffijoe commented 4 years ago

Could use cosmoconfig and put it behind a configuration service so it can be faked for testing.