Skip to content

Run develop/watch from workspaces #350

Answered by belgattitude
ekafyi asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ekafyi

About preconstruct

I wonder what you would recommend for watching/developing all packages at the workspaces level? concurrently? preconstruct?

Nice links, but actually we don't need any build to use / develop in packages. A change in any package will immediately be reflected in your apps (fast-refresh)...

And yes it wasn't that easy before and things like preconstruct made a sense.

If you're wondering how this magic happens, all is the readme. The key points are:

In an app:

  1. package.json define your internal package dependencies (prefer using workspace: protocol). more details

    package.json
    {
      "name": "my-app",
      "dependencies": {
        "@your-org/magnificient-poney": "works…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ekafyi
Comment options

@belgattitude
Comment options

@belgattitude
Comment options

@ekafyi
Comment options

@belgattitude
Comment options

Answer selected by ekafyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants