Hello folks! I have some configuration issues whil...
# help
f
Hello folks! I have some configuration issues while using multiple projects and I was wondering if you could help. Say I have a project with the following structure
Copy code
root
├── package-a/
│   ├── package.json
│   ├── tsconfig.json
│
├── package-b/
    ├── package.json
    ├── tsconfig.json
And package-a references package-b in the following way package-a/package.json
Copy code
{
  "dependencies": {
    "@company/package-b": 1.0.0,
  }
}
package-a/tsconfig.json
Copy code
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@company/package-a/*": [
        "src/*"
      ],
      "@company/package-b/*": [
        "../package-b/src/*"
      ]
    }
  }
}
We're doing this to avoid repackaging and reinstalling package-b every time while developing, but we now noticed that while running
sst start
,
package-b
gets added automatically to
externalModules
and hence not bundled when in reality we want it to be bundled. Any suggestions on how to work around this or make it better? Thanks!
t
I'm making a change to be released this week that will fix this
However this is one of the reasons I don't recommend discrete packages
f
thanks for the quick response @thdxr 🙇
and the readme is a good reflection, it's being fairly painful for us at the moment
since this is kinda a blocker for us, any chance you can be more specific about the release date? Obviously I understand is not a commitment from your end, but just to plan for alternatives in our end if needed 😅
t
I'm aiming for end of this week
What issue do you run into when it's not bundled? That should only be happening in local dev
it will be bundled for prod
f
yeah, while running on dev we're getting errors at runtime because the missing modules. Prod works fine
t
Do you absolutely need to have separate packages? You can get most of the benefit without making them seperate
f
not an absolute need, but a big plus for maintenance and separation of concerns if we would get it to work
t
You can still get that if you just remove the package.json and the npm dependency since the ts path will keep things seperate