@antfu/install-pkg
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -1,2 +0,2 @@ | ||
import * as execa from 'execa'; | ||
import * as _jsdevtools_ez_spawn from '@jsdevtools/ez-spawn'; | ||
@@ -17,4 +17,4 @@ type PackageManager = 'pnpm' | 'yarn' | 'npm' | 'bun'; | ||
} | ||
declare function installPackage(names: string | string[], options?: InstallPackageOptions): Promise<execa.ExecaReturnValue<string>>; | ||
declare function installPackage(names: string | string[], options?: InstallPackageOptions): Promise<_jsdevtools_ez_spawn.Process<string>>; | ||
export { type Agent, type InstallPackageOptions, type PackageManager, detectPackageManager, installPackage }; |
@@ -308,3 +308,3 @@ var __defProp = Object.defineProperty; | ||
import { resolve } from "path"; | ||
import { execa } from "execa"; | ||
import { async as ezspawn } from "@jsdevtools/ez-spawn"; | ||
async function installPackage(names, options = {}) { | ||
@@ -324,3 +324,3 @@ const detectedAgent = options.packageManager || await detectPackageManager(options.cwd) || "npm"; | ||
args.unshift("-w"); | ||
return execa( | ||
return ezspawn( | ||
agent, | ||
@@ -327,0 +327,0 @@ [ |
{ | ||
"name": "@antfu/install-pkg", | ||
"type": "module", | ||
"version": "0.3.2", | ||
"packageManager": "pnpm@8.15.5", | ||
"version": "0.3.3", | ||
"description": "Install package programmatically.", | ||
@@ -39,10 +38,10 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"dependencies": { | ||
"execa": "^8.0.1" | ||
"@jsdevtools/ez-spawn": "^3.0.4" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.11.4", | ||
"@antfu/eslint-config": "^2.16.0", | ||
"@antfu/ni": "^0.21.12", | ||
"@types/node": "^20.11.30", | ||
"@types/node": "^20.12.7", | ||
"bumpp": "^9.4.0", | ||
"eslint": "^8.57.0", | ||
"eslint": "^9.1.1", | ||
"esno": "^4.7.0", | ||
@@ -52,3 +51,3 @@ "find-up": "^7.0.0", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.4.3" | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -55,0 +54,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
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
27111
+ Added@jsdevtools/ez-spawn@^3.0.4
+ Added@jsdevtools/ez-spawn@3.0.4(transitive)
+ Addedcall-me-maybe@1.0.2(transitive)
+ Addedstring-argv@0.3.2(transitive)
+ Addedtype-detect@4.1.0(transitive)
- Removedexeca@^8.0.1
- Removedexeca@8.0.1(transitive)
- Removedget-stream@8.0.1(transitive)
- Removedhuman-signals@5.0.0(transitive)
- Removedis-stream@3.0.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmimic-fn@4.0.0(transitive)
- Removednpm-run-path@5.3.0(transitive)
- Removedonetime@6.0.0(transitive)
- Removedpath-key@4.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstrip-final-newline@3.0.0(transitive)