-
Notifications
You must be signed in to change notification settings - Fork 3
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
No input files are detected with TS 4.4 (was: .tsx support?) #12
Comments
update: am i right that by default |
Typescript files are treated differently from other supported formats, such as .md and .css. They are collected by the TypeScript compiler into a Program object and passed to litscript here. TypeScript compiler requires a "include": ["src"],
"exclude": ["node_modules"] So, can you check that you have a That being said... I haven't used React myself, so I haven't tested how .tsx files behave. So, there might be other issues with them as well. |
yes, I have tsconfig.json too; it doesn't have an "include" field but adding it specifying default |
Here's the entire tsconfig.json (non-default options only), in case it helps. I'm using TS 4.4.4
|
Well, I added console.log(cl) after the But if I run tsc directly, then files are indeed compiled, both to the dest dir, or to the single file if I specify "outFile" instead |
Ah i see. Downgrading typescript to 4.3 ( Fixed the issue title and description to match |
Thanks for looking into this. I think the culprit is this change in TypeScript 4.4. As you noticed A workaround is to explicitly set the {
"baseDir": "C:/Users/tommi/source/repos/litscript",
"updateToc": true,
... I will make a change to the next version of LiTScript that expands the |
Duplicate of #46577—I’m in the process of reverting all related changes back to their 4.3 state. Thanks everyone! |
Lol, that’s why GitHub wouldn’t link to that issue—I don’t even know what repo I’m in. Sorry all, it’s been quite a week prepping for TS 4.5, in which this issue should be fixed! 😅 I was so confused as to why I couldn’t label this issue a duplicate 😂 |
Expected Behavior:
.ts
files get weavedObserved Behavior:
.ts
files get weaved unless force included inlitscript.json
Steps to reproduce:
npm init -y
index.tsx
filelitsconfig.json
filefiles: ["**.tsx"]
tolitsconfig.json
npm i --D [email protected]
npm i --D litscript
lits
, observe errorWorks fine with TS 4.3.5
The text was updated successfully, but these errors were encountered: