-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Currently, on all package.json we have, we export Typescript files:
"exports": {
".": "./src/index.ts",
"./cli": "./src/cli.ts",
"./runTypegen": "./src/runTypegen.ts"
}While this enabled a seamless go to definition experience in VSCode, it prohibits using the packages locally.
Let's say I'm building an app.
- I add my local
fuelsas a dependency and re-run my app - My app requires the package
fuelsexpecting to receive Javascript - Due to our configs (json above), it receives Typescript
- Nothing works now
Goals we're looking for:
- Keep
go to definitionfeature working as is- Developer workflow continues to be awesome
- While exporting compiled version of the package
- So it can be used anywhere
The solution relies (edit: may rely) on: declarationMap
Torres-ssfLuizAsFight
Metadata
Metadata
Assignees
Labels
No labels