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

Missing dependency on typescript #70

Open
interfect opened this issue Jan 10, 2020 · 2 comments · May be fixed by #71
Open

Missing dependency on typescript #70

interfect opened this issue Jan 10, 2020 · 2 comments · May be fixed by #71

Comments

@interfect
Copy link

interfect commented Jan 10, 2020

@codechecks/client@0.1.10 has a dependency on node-ts ^8.0.2. But node-ts@8.0.2 has a peer dependency on typescript >=2.0, and node-ts@8.6.0 (which is what gets installed today) has a peer dependency on typescript >=2.7.

Since the CodeChecks client module is the one that depends on the module with the peer dependency, as I understand it the CodeChecks client module is the one that is responsible for depending on it as a non-peer dependency. There should be a dependency on typescript >=2.7 to satisfy node-ts, and this dependency needs to be bumped if/when node-ts releases a new version that matches ^8.0.2 and bumps its peer dependency version.

Without this dependency, I get this at the end of npm ls:

npm ERR! peer dep missing: typescript@>=2.7, required by ts-node@8.6.0
@interfect
Copy link
Author

interfect commented Jan 10, 2020

To reproduce:

npm install --save --dev @codechecks/client
npm ls

interfect added a commit to interfect/codechecks-monorepo that referenced this issue Jan 10, 2020
This fixes codechecks#70 by adding a dependency that will pull in typescript, which
node-ts demands as a peer dependency but can't install itself.
@interfect interfect linked a pull request Jan 10, 2020 that will close this issue
@timocov
Copy link

timocov commented Jan 10, 2020

I don't think that ts-node should be in dependencies, it looks strange for me. ts-node usually is used to run typescript code without transpiling locally. @krzkaczor can you please take a look?

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 a pull request may close this issue.

2 participants