jeffijoe / typesync

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

feat: Add typesync rc file support and --ignorepackages arg #58

Closed Hopsken closed 3 years ago

Hopsken commented 3 years ago

Add .typesyncrc config file support using cosmiconfig. It will automatically search for configuration files under the same folder of the package.json.

Example

// .typesyncrc
{
  "ignoreDeps": ["dev"],
  "ignorePackages": ["nodemon"]
}

Supported config paths:

[
  'package.json', // typesync field in package.json
  `.typesyncrc`,
  `.typesyncrc.json`,
  `.typesyncrc.yaml`,
  `.typesyncrc.yml`,
  `.typesyncrc.js`,
  `.typesyncrc.cjs`,
  `typesync.config.js`,
  `typesync.config.cjs`,
]

Fixes #47

Hopsken commented 3 years ago

@jeffijoe Thanks for the kind advices๐Ÿ˜„ I made some changes, please help review again.

jeffijoe commented 3 years ago

Just need you to fix the build and then I can merge. ๐Ÿ˜„

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.8%) to 99.155% when pulling 7b978839937bd0c32b3318d4a6f2b1defc6b0523 on Hopsken:feat/typesync-rc into 81a10e96a73a2948950513892318cc4e23ffe99c on jeffijoe:master.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 45c22fa61d43431f4dc804c334897a4a5d92ab6e on Hopsken:feat/typesync-rc into 81a10e96a73a2948950513892318cc4e23ffe99c on jeffijoe:master.

jeffijoe commented 3 years ago

@Hopsken I can merge once the coverage is back to 100% ๐Ÿ˜„

Hopsken commented 3 years ago

@jeffijoe Finally, the coverage is back to 100% ๐Ÿ˜‚ I learned a lot during this. Thanks very much.

jeffijoe commented 3 years ago

@Hopsken thank you for your PRs! Both have been merged and shipped with TypeSync 0.8! ๐Ÿฅณ