@expo/package-manager
Advanced tools
Comparing version 0.0.1-canary-20231205-250b31f to 0.0.1-canary-20240109-93608d8
@@ -1,2 +0,2 @@ | ||
import spawnAsync, { SpawnPromise, SpawnResult } from '@expo/spawn-async'; | ||
import spawnAsync, { SpawnOptions, SpawnPromise, SpawnResult } from '@expo/spawn-async'; | ||
import { PackageManager, PackageManagerOptions } from '../PackageManager'; | ||
@@ -26,3 +26,3 @@ import { PendingSpawnPromise } from '../utils/spawn'; | ||
protected ensureCwdDefined(method?: string): string; | ||
runAsync(command: string[]): spawnAsync.SpawnPromise<spawnAsync.SpawnResult>; | ||
runAsync(command: string[], options?: SpawnOptions): spawnAsync.SpawnPromise<spawnAsync.SpawnResult>; | ||
versionAsync(): Promise<string>; | ||
@@ -29,0 +29,0 @@ getConfigAsync(key: string): Promise<string>; |
@@ -39,11 +39,13 @@ "use strict"; | ||
} | ||
runAsync(command) { | ||
runAsync(command, options = {}) { | ||
this.log?.(`> ${this.name} ${command.join(' ')}`); | ||
return (0, spawn_async_1.default)(this.bin, command, this.options); | ||
return (0, spawn_async_1.default)(this.bin, command, { ...this.options, ...options }); | ||
} | ||
async versionAsync() { | ||
return await this.runAsync(['--version']).then(({ stdout }) => stdout.trim()); | ||
const { stdout } = await this.runAsync(['--version'], { stdio: undefined }); | ||
return stdout.trim(); | ||
} | ||
async getConfigAsync(key) { | ||
return await this.runAsync(['config', 'get', key]).then(({ stdout }) => stdout.trim()); | ||
const { stdout } = await this.runAsync(['config', 'get', key]); | ||
return stdout.trim(); | ||
} | ||
@@ -50,0 +52,0 @@ async removeLockfileAsync() { |
@@ -21,3 +21,3 @@ import { SpawnOptions, SpawnPromise, SpawnResult } from '@expo/spawn-async'; | ||
/** Run any command using the package manager */ | ||
runAsync(command: string[]): SpawnPromise<SpawnResult>; | ||
runAsync(command: string[], options?: SpawnOptions): SpawnPromise<SpawnResult>; | ||
/** Get the version of the used package manager */ | ||
@@ -24,0 +24,0 @@ versionAsync(): Promise<string>; |
{ | ||
"name": "@expo/package-manager", | ||
"version": "0.0.1-canary-20231205-250b31f", | ||
"version": "0.0.1-canary-20240109-93608d8", | ||
"description": "A library for installing and finding packages in a project", | ||
@@ -40,3 +40,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@expo/json-file": "0.0.1-canary-20231205-250b31f", | ||
"@expo/json-file": "0.0.1-canary-20240109-93608d8", | ||
"@expo/spawn-async": "^1.5.0", | ||
@@ -50,2 +50,3 @@ "ansi-regex": "^5.0.0", | ||
"npm-package-arg": "^7.0.0", | ||
"ora": "^3.4.0", | ||
"split": "^1.0.1", | ||
@@ -55,8 +56,8 @@ "sudo-prompt": "9.1.1" | ||
"devDependencies": { | ||
"@types/js-yaml": "^3.12.5", | ||
"@types/micromatch": "^4.0.2", | ||
"@types/npm-package-arg": "^6.1.0", | ||
"@types/rimraf": "^3.0.0", | ||
"@types/split": "^1.0.0", | ||
"@types/js-yaml": "^3.12.5", | ||
"@types/micromatch": "^4.0.2", | ||
"expo-module-scripts": "0.0.1-canary-20231205-250b31f" | ||
"expo-module-scripts": "0.0.1-canary-20240109-93608d8" | ||
}, | ||
@@ -66,3 +67,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "250b31f516a04578a29c6bcda29aab80ef4d4e2d" | ||
"gitHead": "93608d8dcb0268312e0c8ed22036ebfa6efe9830" | ||
} |
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
97763
1350
12
+ Addedora@^3.4.0
+ Added@expo/json-file@0.0.1-canary-20240109-93608d8(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-spinners@2.9.2(transitive)
+ Addedclone@1.0.4(transitive)
+ Addeddefaults@1.0.4(transitive)
+ Addedlog-symbols@2.2.0(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedora@3.4.0(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedwcwidth@1.0.1(transitive)
- Removed@expo/json-file@0.0.1-canary-20231205-250b31f(transitive)