Is there a more automated way of detecting packages and dependencies? #408
-
Hi. Our team wants to migrate some apps to a monorepo solution and thus far we've got something that looks like this in the folder structure
Effectively, In the root package.json:
Effectively, when someone does a fresh Is there a cleaner way to tell the packages what depends on what? For instance, can I tell frontend that it needs config or even better automatically detect that during build it knows that an external package is needed so it will build said package first before proceeding? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Dependencies in package.json of each package/app decides what is dependent on what. So, add "config": "*" to dependencies or devdependencies in lp and frontend add "frontend": "*" to deps or devdeps in lp The have "build": "dependsOn": "^build" in turbo pipelines. Remove the toplevel build:* scripts and keep just the build script or add —scope=packagename to the build:* scripts |
Beta Was this translation helpful? Give feedback.
Dependencies in package.json of each package/app decides what is dependent on what.
So, add "config": "*" to dependencies or devdependencies in lp and frontend add "frontend": "*" to deps or devdeps in lp
The have "build": "dependsOn": "^build" in turbo pipelines.
Remove the toplevel build:* scripts and keep just the build script
or add —scope=packagename to the build:* scripts