-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
declarationDir
outputs extra src
folder? -- need to set rootDir
in tsconfig
#64
Comments
Yeah, typescript mirrors your project structure considering project root to be location of If you don't use Either way should work if you set correct |
@ezolenko Thanks!
That's good enough ;) Or I'll just rename |
declarationDir
to output directly in build folder without extra src
folder? -- need to set rootDir
You can set That issue effectively duplicates this one, but has gotten a lot more activity |
declarationDir
to output directly in build folder without extra src
folder? -- need to set rootDir
declarationDir
to output directly in build folder without extra src
folder? -- need to set rootDir
in tsconfig
declarationDir
to output directly in build folder without extra src
folder? -- need to set rootDir
in tsconfigdeclarationDir
to outputs extra src
folder? -- need to set rootDir
in tsconfig
declarationDir
to outputs extra src
folder? -- need to set rootDir
in tsconfigdeclarationDir
outputs extra src
folder? -- need to set rootDir
in tsconfig
What happens and why it is wrong
I'm rewriting my library (https://github.com/szimek/signature_pad) to TypeScript - this is the first time I'm working with this language. I've specified
declarationDir: 'dist/types'
intsconfig.js
and setuseTsconfigDeclarationDir: true
. However, after building the library, the declaration files end up indist/types/src
. Is it supposed to be like this? If not, how can I change it, so that they end up directly indist/types
?Versions
rollup.config.js
https://github.com/szimek/signature_pad/blob/typescript/rollup.config.js
tsconfig.json
https://github.com/szimek/signature_pad/blob/typescript/tsconfig.json
package.json
https://github.com/szimek/signature_pad/blob/typescript/package.json
The text was updated successfully, but these errors were encountered: