Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Remove "paths" from tsconfig.json everywhere #961

Open
anthonyshew opened this issue Aug 20, 2023 · 0 comments
Open

Remove "paths" from tsconfig.json everywhere #961

anthonyshew opened this issue Aug 20, 2023 · 0 comments
Labels

Comments

@anthonyshew
Copy link
Contributor

"paths" in package.json isn't actually meant for us to use: https://twitter.com/atcb/status/1691208437349462016

Instead, we should be using package.json#imports: https://nodejs.org/api/packages.html#subpath-imports

The problem is that, currently, VSCode does not recognize package.jsonimports. Code will compile just fine but VSCode will be quite upset.

Until that issue is closed, we will use BOTH the "paths" and "package.json#imports". This will allow us to:

  • Have an editor that is happy.
  • Use subpaths in packages.

Hate doubling up on these configs but it will be easy to remove once the issue is closed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant