Skip to content
New issue

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

fix: @oclif/errors should be a direct dependency #151

Closed
wants to merge 1 commit into from
Closed

fix: @oclif/errors should be a direct dependency #151

wants to merge 1 commit into from

Conversation

RomainMuller
Copy link

Since @oclif/errors is required from index.ts (see below), it should be modeled as a direct dependency and not as a devDependency. In the current state of things, it is not possible to use this library with yarn 2, as this produces the following error:

Error: @oclif/plugin-help tried to access @oclif/errors, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: @oclif/errors (via "@oclif/errors")
Required by: @oclif/plugin-help@npm:3.2.0 (via <redacted>/.yarn/cache/@oclif-plugin-help-npm-3.2.0-94fac21a1a-d42ba4b5f0.zip/node_modules/@oclif/plugin-help/lib/)

import {error} from '@oclif/errors'

Since `@oclif/errors` is required from `index.ts` (see below), it should be modeled as a direct `dependency` and not as a `devDependency`. In the current state of things, it is not possible to use this library with `yarn` 2, as this produces the following error:

```
Error: @oclif/plugin-help tried to access @oclif/errors, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: @oclif/errors (via "@oclif/errors")
Required by: @oclif/plugin-help@npm:3.2.0 (via <redacted>/.yarn/cache/@oclif-plugin-help-npm-3.2.0-94fac21a1a-d42ba4b5f0.zip/node_modules/@oclif/plugin-help/lib/)
```

https:/oclif/plugin-help/blob/9c7b287980ea4fb3a42eea9f9aa3c2d31d25e309/src/index.ts#L2
@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @RomainMuller to sign the Salesforce.com Contributor License Agreement.

@RomainMuller
Copy link
Author

Asked my employer for review of the CLA and hopefully permission to sign. Will update when I hear back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants