Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared directory for all workspaces #311

Open
yanmandev opened this issue Oct 8, 2022 · 0 comments
Open

Shared directory for all workspaces #311

yanmandev opened this issue Oct 8, 2022 · 0 comments

Comments

@yanmandev
Copy link

yanmandev commented Oct 8, 2022

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant