weiran-zsd / dts-cli

Zero-config CLI for TypeScript package development
MIT License
440 stars 23 forks source link

feat: add support for dts.config.ts #132

Closed ToppleTheNun closed 2 years ago

ToppleTheNun commented 2 years ago

attempts to load dts.config.ts if it is available, throws an error if unable to load it. if dts.config.ts isn't available, moves on to check for dts.config.js.

enables type declarations in tsconfig.json so that people can import types correctly.

might be worth splitting the current index.ts into multiple files: one that effectively handles exporting all of the types (index.ts) and one that handles the CLI itself (cli.ts). this would be inline with how the templates used by the project split things.

closes #128