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

Project root detection differs with pkg#source vs CLI argument #6729

Closed
mischnic opened this issue Aug 15, 2021 · 1 comment
Closed

Project root detection differs with pkg#source vs CLI argument #6729

mischnic opened this issue Aug 15, 2021 · 1 comment

Comments

@mischnic
Copy link
Member

🐛 bug report

💻 Code Sample

folder-a
|- packages
|  |- pkg-a
|     |- index.js
|     |- package.json
|     |- yarn.lock
|- yarn.lock

package.json contains:

{
	"source": "index.js"
}

😯 Current Behavior

With the working directory at folder-a/packags/pkg-a, running parcel build will correctly bundle index.js, but the project root will be folder-a.

With the working directory at folder-a/packags/pkg-a, running parcel build index.js will correctly bundle index.js and correctly determine the project root to be folder-a/packags/pkg-a

🤔 Expected Behavior

The project root should in both cases be folder-a/packags/pkg-a

🌍 Your Environment

Software Version(s)
Parcel f9887fe
@mischnic
Copy link
Member Author

Fixed by #7537

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

No branches or pull requests

1 participant