@opencode/util 0.0.0-dev-21020 → 0.0.0-dev-21022
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/npm.js +9 -1
- package/package.json +1 -1
package/dist/npm.js
CHANGED
|
@@ -160,6 +160,7 @@ const layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
160
160
|
...(input.update ? { preferOnline: true, noGitRevCache: true } : {}),
|
|
161
161
|
// Audit reports are unused here, but Arborist waits for them before completing an install.
|
|
162
162
|
audit: false,
|
|
163
|
+
windowsHide: true,
|
|
163
164
|
};
|
|
164
165
|
const arborist = new Arborist({
|
|
165
166
|
...options,
|
|
@@ -284,7 +285,14 @@ const layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
284
285
|
if (!installed)
|
|
285
286
|
return yield* new InstallFailedError({ dir: root, cause: new Error(`Package is not installed: ${pkg}`) });
|
|
286
287
|
const { manifest, resolve } = yield* Effect.promise(() => import("pacote"));
|
|
287
|
-
const options = {
|
|
288
|
+
const options = {
|
|
289
|
+
...(yield* NpmConfig.load(root)),
|
|
290
|
+
preferOnline: true,
|
|
291
|
+
noGitRevCache: true,
|
|
292
|
+
ignoreScripts: true,
|
|
293
|
+
// Pacote spawns Git directly rather than through AppProcess.
|
|
294
|
+
windowsHide: true,
|
|
295
|
+
};
|
|
288
296
|
const available = yield* Effect.tryPromise({
|
|
289
297
|
try: async () => target.type === "git" ? gitRevision(await resolve(pkg, options)) : (await manifest(pkg, options)).version,
|
|
290
298
|
catch: (cause) => new InstallFailedError({ dir: root, cause }),
|