Closed manzoorwanijk closed 6 months ago
The proposed solution sounds plausible. We'd appreciate a PR with this fix and the appropriate test case.
The proposed solution sounds plausible. We'd appreciate a PR with this fix and the appropriate test case.
Sure, I will try to create one.
Created #201 β
getPackages
expectsdir
argument to be the monorepo root but its description says otherwise.https://github.com/Thinkmill/manypkg/blob/52d5dcb469b1d6781f56cff15b3556c8856ce8ca/packages/get-packages/src/index.ts#L26-L40
Structure:
cli
package is consumed by monorepo rootSteps:
yarn
or you can also set it up usingpnpm
yarn dev-cli
cd packages/pkg-a
and runyarn dev-cli
againExpected Behavior:
The command should be successful and should be able to output the monorepo packages
Actual Behavior:
It throws an error -
TypeError: Cannot read properties of undefined (reading 'packages')
Should it be
instead of