You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use approximately the following directory structure in the project. And each workspace has a react-create-app.
"bolt": {
"workspaces": [
"packages/*"
]
}
project
└───packages
│ cabinet
│ landing
During the development process, a lot of code appears that is the same in all workspaces (for example, utils, api, constants). So I want to put the code at the top level and reuse it.
Activity
Emasoft commentedon Jun 20, 2025
You can simply import the shared code as packages. Like this:
Or, if you organize the shared code in a single shared utilities library:
Yvem commentedon Jul 12, 2025
@yanmandev Your repo structure looks good! To enable it: Isn't that why
workspacesis an array?(if your repo is new, bolt is a bit outdated, I'd recommend yarn v4 or pnpm)