Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Shared directory for all workspaces #311

Open
@yanmandev

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /