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

package.json lists dev-only dependencies in dependencies #142

Closed
MustafaHaddara opened this issue May 8, 2024 · 0 comments · Fixed by #143
Closed

package.json lists dev-only dependencies in dependencies #142

MustafaHaddara opened this issue May 8, 2024 · 0 comments · Fixed by #143
Labels
type: bug Something isn't working

Comments

@MustafaHaddara
Copy link
Contributor

@typescript-eslint/eslint-plugin
@typescript-eslint/parser
eslint-config-prettier
prettier

are all listed as dependencies, rather than devDependencies.

This causes problems when those libraries have stricter requirements (ie. @typescript-eslint/[email protected] requires a higher version of Node than we require)

@MustafaHaddara MustafaHaddara added the type: bug Something isn't working label May 8, 2024
MustafaHaddara added a commit that referenced this issue May 9, 2024
## Which problem is this PR solving?

- Closes #142

## Short description of the changes

Moves dev-only dependencies into `devDependencies`

## How to verify that this has the expected result
- [x] tests pass
- [x] the build succeeds
- [x] use `npm link` or `yalc` to test this version in an application
and confirm that traces are still being sent

Also, I specifically checked for the presence of these transitive
dependencies in an app that used this library.

Before this code change:

```
$ npm ls  @typescript-eslint/eslint-plugin
[email protected]
├─┬ @honeycombio/[email protected]
│ └── @typescript-eslint/[email protected]
├── @typescript-eslint/[email protected]
└─┬ [email protected]
  └── @typescript-eslint/[email protected] deduped
```

after:

```
$ npm ls  @typescript-eslint/eslint-plugin
[email protected]
├── @typescript-eslint/[email protected]
└─┬ [email protected]
  └── @typescript-eslint/[email protected] deduped
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant