-
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
tsconfig include
not overridden
#39
Comments
Seems to work for me, I added You have 2 dots in What's in the file itself? Plugin will fail if the file doesn't exist at all, so it needs to have at least Check if you have correct plugin version, |
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks, I've edited the issue, as 2 dots were just copy-paste error. But I've also mistaken with this example, as I wanted to rid of typescript({
tsconfigOverride: {
compilerOptions: {
declaration: true,
declarationDir: 'dist/esm'
},
include: ['src/**/*.ts']
},
useTsconfigDeclarationDir: true
}) But you said that it must exist even just As I steel want to rid of typescript({
tsconfig: 'tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
declarationDir: 'dist/esm'
},
include: ['src/**/*.ts']
},
useTsconfigDeclarationDir: true
}) And strangely this did not work for me. I looked to the difference between {
"compilerOptions": {
"target": "ES5",
"module": "ES2015",
"lib": [ "ES2015", "ES2016", "ES2017", "DOM" ],
"moduleResolution": "node",
"downlevelIteration": true,
"types": ["node", "text-encoding"]
},
"include": [
"src/**/*",
"test/**/*"
],
"exclude": ["**/proto/index.d.ts"]
} But if I remove |
Ah, yes, that works as coded. Objects and arrays are merged, not replaced. This is a different behavior from tsconfig You can achieve what you want by creating Doesn't reduce number of files, but removes duplication. |
Ok, I see. Yes override confused me. No problem I will preserve my |
include
not overriddeninclude
not overridden
See #86 for the root cause fix (this issue came before it, but marking as duplicate as that is currently the central issue for this topic) |
#It's either a bug or maybe a wanted functionality. Here are my tsconfig file and plugin options which work well:
tsconfig.dist.esm.json
:rollup.config.js
:I wanted to rid of
tsconfig.dist.esm.json
and thus modifiedrollup.config.js
file:But it does not work. The plugin does not pay attention to
txconfigOverride.compilerOptions.declarationDir
option. Would be nice if it could.The text was updated successfully, but these errors were encountered: