You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parcel looking for configs from where its installed, not where the binary is running. For monorepos, This can be problematic when parcel installed in the workspace root.
When parcel running from packages, it should start from where it's running and not where it's installed.
馃槸 Current Behavior
Applying configs from nearest package.json that parcel installed there as well.
馃拋 Possible Solution
Start getting configs where process is going to be run.
馃敠 Context
We've installed parcel in root because there are some clients that need to being built by Parcel. We need to be able to config each client separately and not globally essentially .
Consider this structure:
/ <- parcel installed here
/packages/client1
/packages/client2
When we are adding the following config to /packages/client1 it doesn't work:
馃悰 bug report
Parcel looking for configs from where its installed, not where the binary is running. For monorepos, This can be problematic when parcel installed in the workspace root.
馃帥 Configuration (.babelrc, package.json, cli command)
cli:
parcel build
package.json:
馃 Expected Behavior
When
parcel
running from packages, it should start from where it's running and not where it's installed.馃槸 Current Behavior
Applying configs from nearest package.json that parcel installed there as well.
馃拋 Possible Solution
Start getting configs where process is going to be run.
馃敠 Context
We've installed parcel in root because there are some clients that need to being built by Parcel. We need to be able to config each client separately and not globally essentially .
Consider this structure:
When we are adding the following config to
/packages/client1
it doesn't work:But when add to
/package.json
(workspace) root it will be applied correctly.馃捇 Code Sample
(https://github.com/mojtabast/parcel-resolve-config-from-root)
馃實 Your Environment
The text was updated successfully, but these errors were encountered: