@antfu/install-pkg
Advanced tools
Comparing version 0.4.0 to 0.4.1
// src/detect.ts | ||
import process from "process"; | ||
import { detect } from "package-manager-detector"; | ||
import { detect } from "package-manager-detector/detect"; | ||
async function detectPackageManager(cwd = process.cwd()) { | ||
@@ -9,2 +9,3 @@ const result = await detect({ | ||
console.warn("[@antfu/install-pkg] Unknown packageManager:", packageManager); | ||
return void 0; | ||
} | ||
@@ -46,3 +47,4 @@ }); | ||
cwd: options.cwd | ||
} | ||
}, | ||
throwOnError: true | ||
} | ||
@@ -49,0 +51,0 @@ ); |
{ | ||
"name": "@antfu/install-pkg", | ||
"type": "module", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Install package programmatically.", | ||
@@ -38,11 +38,11 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"dependencies": { | ||
"package-manager-detector": "^0.1.1", | ||
"tinyexec": "^0.2.0" | ||
"package-manager-detector": "^0.2.0", | ||
"tinyexec": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.26.0", | ||
"@antfu/eslint-config": "^2.27.2", | ||
"@antfu/ni": "^0.22.4", | ||
"@types/node": "^22.4.1", | ||
"bumpp": "^9.5.1", | ||
"eslint": "^9.9.0", | ||
"@types/node": "^22.5.0", | ||
"bumpp": "^9.5.2", | ||
"eslint": "^9.9.1", | ||
"esno": "^4.7.0", | ||
@@ -49,0 +49,0 @@ "publint": "^0.2.10", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9504
158
0
+ Addedpackage-manager-detector@0.2.2(transitive)
+ Addedtinyexec@0.3.1(transitive)
- Removedpackage-manager-detector@0.1.2(transitive)
- Removedtinyexec@0.2.0(transitive)
Updatedtinyexec@^0.3.0