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

@deno-types add @types/node into dependencies #416

Open
MirKml opened this issue Jun 25, 2024 · 0 comments
Open

@deno-types add @types/node into dependencies #416

MirKml opened this issue Jun 25, 2024 · 0 comments

Comments

@MirKml
Copy link

MirKml commented Jun 25, 2024

When I have deno code with @deno-types reference for @types/node, these are added as dependencies, but desired is to add as devDependencies
e.g.

// @deno-types="npm:@types/node"
import { createWriteStream, readFileSync } from "node:fs"

package.json generated content

  "dependencies": {
    "@types/node": "*"
  }

Using references with @deno-types is the recommended way how to use type save code from node/npm, I think.

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

1 participant