agadoo icon indicating copy to clipboard operation
agadoo copied to clipboard

Agadoo doesn't work with Yarn workspaces

Open Kmaschta opened this issue 5 years ago • 0 comments

Hi. This package idea is excellent!

Sadly, I have a small issue: I can't use this lib inside a Yarn workspace because it get the wrong package.json.

Say I have the following tree:

  • package.json
  • packages/
    • mylib/
      • package.json

If I run agadoo on for mylib like:

cd packages/mylib
yarn add -D agadoo
./node_module/.bin/agadoo

If get the following error message:

'PWD/packages/mylib' is imported by virtual:__agadoo__, but could not be resolved – treating it as an external dependency
import './';

Failed to tree-shake 

Kmaschta avatar Sep 07 '18 15:09 Kmaschta