|
1 |
| -import {CwdFS, Filename, NativePath, PortablePath, ZipOpenFS} from '@yarnpkg/fslib'; |
2 |
| -import {xfs, npath, ppath, toFilename} from '@yarnpkg/fslib'; |
3 |
| -import {getLibzipPromise} from '@yarnpkg/libzip'; |
4 |
| -import {execute} from '@yarnpkg/shell'; |
5 |
| -import capitalize from 'lodash/capitalize'; |
6 |
| -import pLimit from 'p-limit'; |
7 |
| -import {PassThrough, Readable, Writable} from 'stream'; |
8 |
| - |
9 |
| -import {Configuration} from './Configuration'; |
10 |
| -import {Manifest} from './Manifest'; |
11 |
| -import {MessageName} from './MessageName'; |
12 |
| -import {Project} from './Project'; |
13 |
| -import {ReportError, Report} from './Report'; |
14 |
| -import {StreamReport} from './StreamReport'; |
15 |
| -import {Workspace} from './Workspace'; |
16 |
| -import {YarnVersion} from './YarnVersion'; |
17 |
| -import * as execUtils from './execUtils'; |
18 |
| -import * as formatUtils from './formatUtils'; |
19 |
| -import * as miscUtils from './miscUtils'; |
20 |
| -import * as semverUtils from './semverUtils'; |
21 |
| -import * as structUtils from './structUtils'; |
22 |
| -import {LocatorHash, Locator} from './types'; |
| 1 | +import {CwdFS, Filename, NativePath, PortablePath} from '@yarnpkg/fslib'; |
| 2 | +import {xfs, npath, ppath, toFilename} from '@yarnpkg/fslib'; |
| 3 | +import {ZipOpenFS} from '@yarnpkg/libzip'; |
| 4 | +import {execute} from '@yarnpkg/shell'; |
| 5 | +import capitalize from 'lodash/capitalize'; |
| 6 | +import pLimit from 'p-limit'; |
| 7 | +import {PassThrough, Readable, Writable} from 'stream'; |
| 8 | + |
| 9 | +import {Configuration} from './Configuration'; |
| 10 | +import {Manifest} from './Manifest'; |
| 11 | +import {MessageName} from './MessageName'; |
| 12 | +import {Project} from './Project'; |
| 13 | +import {ReportError, Report} from './Report'; |
| 14 | +import {StreamReport} from './StreamReport'; |
| 15 | +import {Workspace} from './Workspace'; |
| 16 | +import {YarnVersion} from './YarnVersion'; |
| 17 | +import * as execUtils from './execUtils'; |
| 18 | +import * as formatUtils from './formatUtils'; |
| 19 | +import * as miscUtils from './miscUtils'; |
| 20 | +import * as semverUtils from './semverUtils'; |
| 21 | +import * as structUtils from './structUtils'; |
| 22 | +import {LocatorHash, Locator} from './types'; |
23 | 23 |
|
24 | 24 | /**
|
25 | 25 | * @internal
|
@@ -432,8 +432,6 @@ export async function hasPackageScript(locator: Locator, scriptName: string, {pr
|
432 | 432 | const manifest = await Manifest.find(PortablePath.dot, {baseFs: packageFs});
|
433 | 433 |
|
434 | 434 | return manifest.scripts.has(scriptName);
|
435 |
| - }, { |
436 |
| - libzip: await getLibzipPromise(), |
437 | 435 | });
|
438 | 436 | }
|
439 | 437 |
|
@@ -545,8 +543,6 @@ async function initializePackageEnvironment(locator: Locator, {project, binFolde
|
545 | 543 | cwd = packageLocation;
|
546 | 544 |
|
547 | 545 | return {manifest, binFolder, env, cwd};
|
548 |
| - }, { |
549 |
| - libzip: await getLibzipPromise(), |
550 | 546 | });
|
551 | 547 | }
|
552 | 548 |
|
|
0 commit comments