ojkelly / yarn.build

Build 🛠 and Bundle 📦 your local workspaces. Like Bazel, Buck, Pants and Please but for Yarn Berry. Build any language, mix javascript, typescript, golang and more in one polyglot repo. Ship your bundles to AWS Lambda, Docker, or any nodejs runtime.
https://yarn.BUILD
MIT License
325 stars 28 forks source link

`.bundleignore` is ignored on Windows #230

Open steschi opened 2 years ago

steschi commented 2 years ago

Describe the bug When using yarn bundle on Windows the .bundleignore file seems to be ignored. I tracked the issue down to this catch clause which hides the actual bug. Is this maybe an issue between xfs paths and actual native paths?

To Reproduce Steps to reproduce the behavior:

  1. Ensure to add a log statement for the catch clause mentioned above
  2. Place a .bundleignore file in the root folder of the workspace
  3. Run yarn bundle
  4. See error like
    Error: ENOENT: no such file or directory, open '\C:\Users\STEFAN~1\AppData\Local\Temp\xfs-99f334b6\.bundleignore'

Expected behavior The .bundleignore file should be used if it exists

Desktop: