Skip to content

Commit 29cbe85

Browse files
committed
Remove unnecessary specifier check
1 parent 8f4bd2d commit 29cbe85

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cli/common/runtime.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ async function resolvePackageInDeno(pkgName) {
4242
}
4343

4444
async function resolvePackageRoot(pkgName) {
45-
const specifier =
46-
typeof globalThis.Deno !== "undefined"
47-
? `npm:${pkgName}/package.json`
48-
: `${pkgName}/package.json`;
45+
const specifier = `${pkgName}/package.json`;
4946

5047
if (typeof import.meta.resolve === "function") {
5148
const url = import.meta.resolve(specifier);

0 commit comments

Comments
 (0)