Open paulm17 opened 10 months ago
After a bit of playing around. I can get around this for development purposes.
"main": "./src/index.ts",
"exports": {
".": {
"types": "./dist/index.d.cts",
"import": "./src/index.ts",
"require": "./src/index.ts"
}
},
But wouldn't mind resolving this for when I decide to push this to prod for testing purposes.
Thanks!
I'm working on an app, which will go into production testing within 14 days.
I'm running turborepo and I have drizzle / turso running in a separate workspace. Which gets built and used by an application.
When I do not build the package and the gateway in package.json is
"main": "/src/index.ts",
. Everything works fine.However, when I build it to simulate production AND to get the types when I import the package. I get the following:
Let me know if you require a MVP to take a look.