Skip to content

Conversation

@roothybrid7
Copy link

If you perform bob init, it's written lib/typescript/src/index.d.ts to types in package.json.
However, it's a different path that actually outputs TypeScript type definitions.

When you perform bob build, it will be output to lib/typescript/index.d.ts.

@satya164
Copy link
Member

satya164 commented Feb 9, 2020

Hey! Thanks for the PR.

This path can actually change based on the project structure. I have added a template to generate a library which produces a path with src in it.

So it's up-to the maintainer to ensure that this path is correct. I have added a note mentioning it in the README.

In the future, I'd like add some lint task which can verify these things.

@satya164 satya164 closed this Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants