Uh oh!
There was an error while loading. Please reload this page.
TypeScript detection filtering 'node_modules'. - #6022
Conversation
holloway
commented
Dec 11, 2018
Sorry @mrmckeb but I don't seem to have permissions to assign this PR to you.. I hope this is good enough :) |
I'm good with this change (probably), but linking source code into your |
holloway
commented
Dec 11, 2018
@Timer thanks for considering this. It seems like a harmless change because any TS project wouldn't rely on TS files only existing in To answer your question the #5947 issue has more info, and I'm ok with changing to The project I'm on has been using CRA since |
Timer
commented
Dec 12, 2018
Yeah, this is harmless -- I think what you're doing now should suffice until we officially release |
Timer
commented
Dec 12, 2018
Can we add a e2e test for this please? |
holloway
commented
Dec 12, 2018
@Timer Sure, is there a comparable test I could look at for reference? I haven't added tests to CRA before, and I'm not quite sure where to start. I see that there's |
|
18394093929
commented
Dec 26, 2018
。。。 |
holloway
commented
Jan 14, 2019
mrmckeb
commented
Jan 14, 2019
Hi @holloway, sorry I missed this - December was a busy period for everyone. This looks good, and I'm glad @Timer was able to provide some good feedback. I only have one question/concern - what is this file for? Is it erroneous or intentional? Thanks! |
holloway
commented
Jan 14, 2019
@mrmckeb Ah I thought it would need a |
mrmckeb
commented
Jan 14, 2019
Thanks @holloway! Have a great day. |
See #5947.
verifyNoTypeScriptchecks whether there are any TypeScript files in the project during the build, and this PR refines that logic by adding a Globby negation filter so that anynode_modulesunder./srcis excluded from this logic.Considering that
verifyNoTypeScripthas only existed since CRA 2.1 it seems very unlikely that anyone would depend on checking in anode_modulesfor TypeScript support, so this is a safe change.Steps to reproduce this bug and to show that this PR fixes it:
./src/anythingto a directory outside the CRA project directory calledanything.npm inittheanythingwith its ownpackage.jsonthat depends onbig-integer.big-integeris distributed on NPM with TypeScript files which will be present at./src/anything/node_modules/big-integer/BigInteger.d.ts.yarn buildand CRA ignores the TS and successfully builds.