boltpkg / bolt

⚡️ Super-powered JavaScript project management
MIT License
2.34k stars 84 forks source link

Shared directory for all workspaces #311

Open yanmandev opened 1 year ago

yanmandev commented 1 year ago

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.

project
│   shared
│   │   utils
│   │   constants
│   │   apis
│
└───packages
    │   cabinet
    │   landing

I haven't found a working way to import shared code inside packages/{name} yet. Can someone share working solutions? Thank you!!