We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getPackages
getPackages expects dir argument to be the monorepo root but its description says otherwise.
dir
manypkg/packages/get-packages/src/index.ts
Lines 26 to 40 in 52d5dcb
Structure:
├──📄 package.json ├──📁 packages │ ├──📁 pkg-a │ │ ├──📄 index.mjs │ │ ├──📄 package.json │ ├──📁 cli │ │ ├──📄 bin.mjs │ │ ├──📄 package.json ├──📁 apps │ ├──📁 app-a │ │ ├──📄 package.json │ │ ├──📁 src
cli
yarn
pnpm
yarn dev-cli
cd packages/pkg-a
The command should be successful and should be able to output the monorepo packages
It throws an error - TypeError: Cannot read properties of undefined (reading 'packages')
TypeError: Cannot read properties of undefined (reading 'packages')
Should it be
const monorepoRoot: MonorepoRoot = await findRoot(dir, options); const packages: Packages = await monorepoRoot.tool.getPackages(monorepoRoot.rootDir); // ^^^^^^^^^^^^^^^^^^^^
instead of
const monorepoRoot: MonorepoRoot = await findRoot(dir, options); const packages: Packages = await monorepoRoot.tool.getPackages(dir); // ^^^
The text was updated successfully, but these errors were encountered:
The proposed solution sounds plausible. We'd appreciate a PR with this fix and the appropriate test case.
Sorry, something went wrong.
Sure, I will try to create one.
Created #201 ✅
Successfully merging a pull request may close this issue.
getPackages
expectsdir
argument to be the monorepo root but its description says otherwise.manypkg/packages/get-packages/src/index.ts
Lines 26 to 40 in 52d5dcb
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
The text was updated successfully, but these errors were encountered: