Allow imports of deps listed both in devDependencies and in dependencies
andrewbranch opened this issue · 2 comments
andrewbranch commented
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.
jakebailey commented
Is this legal? Like, does a package manager understand this?
andrewbranch commented
pnpm does!