-
Notifications
You must be signed in to change notification settings - Fork 50
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
Does not work when tsconfig uses "include" #9
Comments
This adds support for the use case specified in gustavopch#9
Hey @jamesopti. I'm not sure if This tool is meant to be a tiny wrapper on top of the original But I believe there's a much simpler way to solve your use case. You could have a {
"compilerOptions": {
"baseUrl": "src",
"target": "es2015",
"module": "es2015",
"jsx": "react",
"declaration": true,
"emitDeclarationOnly": true,
"experimentalDecorators": true,
"outFile": "types/index",
"strict": true,
"noImplicitAny": true,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"exclude": ["dist", "docs", "node_modules", "tmp"]
} So you'd call {
"extends": "./tsconfig.base.json",
"include": ["src/**/*", "index.d.ts"]
} |
same issue I had in #5 |
Hey @gustavopch - just came across this project whilst researching an issue for a situation I'm in. I'm working on a fairly large TypeScript-based project where people have been ignoring errors for a long time - the Thanks. |
We might need to make our own fork @KATT |
It's not clear to me if there's anything wrong with the rationale and the solution that I provided in #9 (comment). |
We just don't want to modify the tsconfig to accommodate to this tool. Nothing wrong really. |
@zomars Thanks for your answer. My concern is that someone may need to remove |
OK, now I actually understand the issue. When you run I've just merged #18 which solves it in a very simple way. |
I'm trying to use this tool to generate a type definition file for a single entrypoint (there are many in my codebase that all share a single tsconfig.json).
Desired usage:
npx tsc-files src/bundles/app1/index.ts
TSConfig:
The text was updated successfully, but these errors were encountered: