tsconfig-paths icon indicating copy to clipboard operation
tsconfig-paths copied to clipboard

fix: use get-tsconfig to handle tsconfig file resolution

Open effervescentia opened this issue 1 year ago • 9 comments

hey @jonaskello I rewrote my other PR using the library get-tsconfig which does not rely on the API exposed by typescript, it has zero dependencies and implements all of the features of the latest TSConfig files (including extends as an array, which I see was a recent change to this repo).

I'd really appreciate some feedback on how to move either of these changes forward

effervescentia avatar Apr 04 '23 18:04 effervescentia

hey @jonaskello following up in this PR as well just to get your attention. let me know if there's anything I can do to help move either of these changes forward

effervescentia avatar Apr 21 '23 19:04 effervescentia

Hi @Jontem sorry to ping you as well, but I wasn't getting a response from your colleague can you provide any information on how I can progress either this PR or my other PR?

Unfortunately your library is at the root of many typescript-enabled workflows and this issue is seriously affecting my team because it does not follow the extension behaviour of official TypeScript tools

effervescentia avatar May 18 '23 20:05 effervescentia

Unfortunately your library is at the root of many typescript-enabled workflows

Yes, I know this :-). So the main problem or merging anything is that we don't want to break any of the many existing users, which makes larger changes like this difficult to assess. I saw that a bunch of tests were removed. I guess this was because the assumption is that the external library is fully tested? But perhaps we can keep all current tests to ensure some level of combability?

jonaskello avatar May 19 '23 05:05 jonaskello

Thanks for the reply @jonaskello :) sorry for the continual pings on these changes

and sure 👍 I'm happy to re-add the tests for added safety

Do you have any preference between using get-tsconfig and using the internals of typescript? I'll update the PR for whichever one you're more comfortable with using and close the other

effervescentia avatar May 19 '23 14:05 effervescentia

I don't like relying on undocumented API:s so although I don't like external dependencies either I guess get-tsconfig is my preferred choice here :-).

jonaskello avatar May 20 '23 19:05 jonaskello

Amazing 👍 I'll rework this PR to keep the existing tests as best as possible

effervescentia avatar Jun 01 '23 15:06 effervescentia

Heya @jonaskello long time no chat 😅 After more than a year brewing I've finally had a chance to go back in and re-add the tests I had removed

As you can see it maintains compatibility with the original test suite while also handling multiple levels of extension (the original reason for this PR)

Let me know what else I can do to push this along, I'll try to follow up more regularly going forward

effervescentia avatar Apr 25 '24 18:04 effervescentia

Nice work! However, it seems the github checks are failing, perhaps you can take a look at it?

jonaskello avatar Apr 26 '24 07:04 jonaskello

Nice work! However, it seems the github checks are failing, perhaps you can take a look at it?

will do 👍

effervescentia avatar Apr 26 '24 16:04 effervescentia