fix(deps): add missing ci-info dependency#4263
Conversation
| "aproba": "2.0.0", | ||
| "byte-size": "8.1.1", | ||
| "chalk": "4.1.0", | ||
| "ci-info": "4.3.1", |
There was a problem hiding this comment.
It's not used in @lerna/create right?
There was a problem hiding this comment.
it is; i see it in @lerna/create/dist/index.js, line 3968 (in v9.0.5)
|
Hi, I've been testing the new npm install-strategy = "linked" and Lerna fails consistently because it attempts to require('ci-info') in libs/core/src/lib/oidc.ts. Since it's not explicitly declared in Lerna's dependencies, the "linked" strategy (which is very strict with phantom dependencies) blocks access to it. Example/Reproduction Branch: Note: In this branch, I've had to manually add ci-info to my root package.json as a workaround to keep the CI running. If I remove that line, Lerna immediately fails with the following trace: Error: Cannot find module 'ci-info' .../node_modules/lerna/dist/index.js
.../node_modules/lerna/dist/cli.js
at libs/core/src/lib/oidc.ts (.../node_modules/lerna/dist/index.js:5703:30)Thanks for the fix! |
Description
In d51e344, we added code that uses the
ci-infopackage, but we did not add a dependency onci-infotopackage.json; as a result, strict environments (e.g. Yarn Plug'n'Play) show an error like this:Motivation and Context
See above.
How Has This Been Tested?
N/A
Types of changes
Checklist: