Skip to content

typescript definitions directory #331

Description

@manferlo81

I just found out about microbundle, I tried it and I think it's awesome, however I cant manage to set the declaration files directory other that the dist folder. I tried setting the "types" and "typings" fields in the package.json file, I also tried to set the "declarationDir" of my tsconfig.json file without success.

I am starting a project using rollup but now I am considering to switch to microbundle, it will save me some config time.

I've noticed the "useTsconfigDeclarationDir" option in the rollup-plugin-typescript2 has not been set to true, did that cause any issues in the past? otherwise it would be a good idea to set it. If you wish I'd be more than happy to create a pull request.

Alternatively a CLI option can be setup (--declaration or --declartionDir for example) or get the directory from the "types" or "typings" of the package.json.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions