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

Consider dependencies used when used in scripts #222

Closed
Ionaru opened this issue Sep 19, 2017 · 1 comment
Closed

Consider dependencies used when used in scripts #222

Ionaru opened this issue Sep 19, 2017 · 1 comment

Comments

@Ionaru
Copy link
Contributor

Ionaru commented Sep 19, 2017

In my package.json I use ts-node to quickly run my program while developing, but depcheck says ts-node isn't used at all.

  "scripts": {
    "start": "node --require ts-node/register src/index.ts"
  },
> depcheck
Unused devDependencies
* ts-node

Since I am using ts-node in an npm script, it shouldn't be caught by depcheck as an unused dependency.

@lijunle
Copy link
Member

lijunle commented Oct 9, 2017

Hmm...

This is interesting. You are using --require parameter to declare dependency. The strings (ts-node/register) is not a bin, it is actually a module.

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

No branches or pull requests

2 participants