Initializing in a workspace fails
cbargren opened this issue · 0 comments
cbargren commented
Running the init command in a workspace repository fails because of a missing -W
flag. The following error is printed:
Error: Command failed: yarn add --dev xo
error Running this command will add the dependency to the workspace root rather than workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
yarn add v1.2.1
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.at Promise.all.then.arr (/Users/chrisbargren/Projects/my-workspace/node_modules/xo-init/node_modules/execa/index.js:201:11) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)