microsoft/DefinitelyTyped-tools

Allow imports of deps listed both in devDependencies and in dependencies

andrewbranch opened this issue · 2 comments

I was trying to lock down the version of marked for testing marked-terminal by specifying a specific version in devDependencies while dependencies had a large range:

    "dependencies": {
        "@types/cardinal": "^2.1",
        "@types/node": "*",
        "chalk": "^5.3.0",
        "marked": ">=6.0.0 <10"
    },
    "devDependencies": {
        "@types/marked-terminal": "workspace:.",
        "marked": "6.0.0"
    },

but @definitelytyped/no-import-of-dev-dependencies complains about imports of marked after this.

Is this legal? Like, does a package manager understand this?

pnpm does!