Skip to content

Commit 842f017

Browse files
committed
Iterate
1 parent c338869 commit 842f017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/package-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function getInstallCommand(packageConfigs) {
6565

6666
function isPackageInstalled(packageConfig) {
6767
try {
68-
require.resolve(packageConfig.name);
68+
import.meta.resolve(packageConfig.name);
6969
return true;
7070
} catch {
7171
return false;

0 commit comments

Comments
 (0)