@w5s/pnpm-plugin-config 1.0.0-alpha.2

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.
@@ -0,0 +1,1274 @@
1
+ import { Cafs, ResolvedFrom } from "@pnpm/cafs-types";
2
+ //#region src/defaultConfig.d.ts
3
+ declare const defaultConfig: Readonly<{
4
+ allowBuilds: {
5
+ '@swc/core': true;
6
+ 'core-js': true;
7
+ 'es5-ext': true;
8
+ esbuild: true;
9
+ lefthook: true;
10
+ nx: true;
11
+ protobufjs: true;
12
+ };
13
+ blockExoticSubdeps: true;
14
+ enableGlobalVirtualStore: true;
15
+ enablePrePostScripts: false;
16
+ ignorePatchFailures: false;
17
+ minimumReleaseAge: number;
18
+ minimumReleaseAgeExclude: string[];
19
+ optimisticRepeatInstall: true;
20
+ overrides: {};
21
+ resolutionMode: "lowest-direct";
22
+ trustPolicy: "no-downgrade";
23
+ trustPolicyIgnoreAfter: number;
24
+ verifyDepsBeforeRun: "install";
25
+ }>;
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/@pnpm+catalogs.types@1000.0.0/node_modules/@pnpm/catalogs.types/lib/index.d.ts
28
+ /**
29
+ * Catalogs parsed from the pnpm-workspace.yaml file.
30
+ *
31
+ * https://github.com/pnpm/rfcs/pull/1
32
+ */
33
+ interface Catalogs {
34
+ /**
35
+ * The default catalog.
36
+ *
37
+ * The default catalog can be defined in 2 ways.
38
+ *
39
+ * 1. Users can specify a top-level "catalog" field or,
40
+ * 2. An explicitly named "default" catalog under the "catalogs" map.
41
+ *
42
+ * This field contains either definition. Note that it's an error to define
43
+ * the default catalog using both options. The parser will fail when reading
44
+ * the workspace manifest.
45
+ */
46
+ readonly default?: Catalog;
47
+ /**
48
+ * Named catalogs.
49
+ */
50
+ readonly [catalogName: string]: Catalog | undefined;
51
+ }
52
+ interface Catalog {
53
+ readonly [dependencyName: string]: string | undefined;
54
+ }
55
+ //#endregion
56
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/config.d.ts
57
+ type AllowBuild = (pkgName: string, pkgVersion: string) => boolean;
58
+ type TrustPolicy = 'no-downgrade' | 'off';
59
+ //#endregion
60
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/env.d.ts
61
+ interface ExecutionEnv {
62
+ nodeVersion?: string;
63
+ }
64
+ //#endregion
65
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/misc.d.ts
66
+ interface Registries {
67
+ default: string;
68
+ [scope: string]: string;
69
+ }
70
+ interface SslConfig {
71
+ cert: string;
72
+ key: string;
73
+ ca?: string;
74
+ }
75
+ type DepPath = string & {
76
+ __brand: 'DepPath';
77
+ };
78
+ type ProjectId = string & {
79
+ __brand: 'ProjectId';
80
+ };
81
+ //#endregion
82
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/package.d.ts
83
+ type Dependencies = Record<string, string>;
84
+ type PackageBin = string | {
85
+ [commandName: string]: string;
86
+ };
87
+ type PackageScripts = {
88
+ [name: string]: string;
89
+ } & {
90
+ prepublish?: string;
91
+ prepare?: string;
92
+ prepublishOnly?: string;
93
+ prepack?: string;
94
+ postpack?: string;
95
+ publish?: string;
96
+ postpublish?: string;
97
+ preinstall?: string;
98
+ install?: string;
99
+ postinstall?: string;
100
+ preuninstall?: string;
101
+ uninstall?: string;
102
+ postuninstall?: string;
103
+ preversion?: string;
104
+ version?: string;
105
+ postversion?: string;
106
+ pretest?: string;
107
+ test?: string;
108
+ posttest?: string;
109
+ prestop?: string;
110
+ stop?: string;
111
+ poststop?: string;
112
+ prestart?: string;
113
+ start?: string;
114
+ poststart?: string;
115
+ prerestart?: string;
116
+ restart?: string;
117
+ postrestart?: string;
118
+ preshrinkwrap?: string;
119
+ shrinkwrap?: string;
120
+ postshrinkwrap?: string;
121
+ };
122
+ interface PeerDependenciesMeta {
123
+ [dependencyName: string]: {
124
+ optional?: boolean;
125
+ };
126
+ }
127
+ interface DependenciesMeta {
128
+ [dependencyName: string]: {
129
+ injected?: boolean;
130
+ node?: string;
131
+ patch?: string;
132
+ };
133
+ }
134
+ interface EngineDependency {
135
+ name: string;
136
+ version?: string;
137
+ onFail?: 'ignore' | 'warn' | 'error' | 'download';
138
+ }
139
+ type DevEngineKey = 'os' | 'cpu' | 'libc' | 'runtime' | 'packageManager';
140
+ type DevEngines = Partial<Record<DevEngineKey, EngineDependency | EngineDependency[]>>;
141
+ interface PublishConfig extends Record<string, unknown> {
142
+ directory?: string;
143
+ linkDirectory?: boolean;
144
+ executableFiles?: string[];
145
+ registry?: string;
146
+ }
147
+ type Version = string;
148
+ type Pattern = string;
149
+ interface TypesVersions {
150
+ [version: Version]: {
151
+ [pattern: Pattern]: string[];
152
+ };
153
+ }
154
+ interface BaseManifest {
155
+ name?: string;
156
+ version?: string;
157
+ type?: string;
158
+ bin?: PackageBin;
159
+ description?: string;
160
+ directories?: {
161
+ bin?: string;
162
+ };
163
+ files?: string[];
164
+ funding?: string;
165
+ dependencies?: Dependencies;
166
+ devDependencies?: Dependencies;
167
+ optionalDependencies?: Dependencies;
168
+ peerDependencies?: Dependencies;
169
+ peerDependenciesMeta?: PeerDependenciesMeta;
170
+ dependenciesMeta?: DependenciesMeta;
171
+ bundleDependencies?: string[] | boolean;
172
+ bundledDependencies?: string[] | boolean;
173
+ homepage?: string;
174
+ repository?: string | {
175
+ url: string;
176
+ };
177
+ bugs?: string | {
178
+ url?: string;
179
+ email?: string;
180
+ };
181
+ scripts?: PackageScripts;
182
+ config?: object;
183
+ engines?: {
184
+ node?: string;
185
+ npm?: string;
186
+ pnpm?: string;
187
+ } & Pick<DevEngines, 'runtime'>;
188
+ devEngines?: DevEngines;
189
+ cpu?: string[];
190
+ os?: string[];
191
+ libc?: string[];
192
+ main?: string;
193
+ module?: string;
194
+ typings?: string;
195
+ types?: string;
196
+ publishConfig?: PublishConfig;
197
+ typesVersions?: TypesVersions;
198
+ readme?: string;
199
+ keywords?: string[];
200
+ author?: string;
201
+ license?: string;
202
+ exports?: Record<string, string>;
203
+ imports?: Record<string, unknown>;
204
+ }
205
+ interface DependencyManifest extends BaseManifest {
206
+ name: string;
207
+ version: string;
208
+ }
209
+ type PackageExtension = Pick<BaseManifest, 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'peerDependenciesMeta'>;
210
+ interface PeerDependencyRules {
211
+ ignoreMissing?: string[];
212
+ allowAny?: string[];
213
+ allowedVersions?: Record<string, string>;
214
+ }
215
+ type AllowedDeprecatedVersions = Record<string, string>;
216
+ type VersionWithIntegrity = string;
217
+ type ConfigDependencies = Record<string, VersionWithIntegrity | {
218
+ tarball?: string;
219
+ integrity: VersionWithIntegrity;
220
+ }>;
221
+ interface AuditConfig {
222
+ ignoreCves?: string[];
223
+ ignoreGhsas?: string[];
224
+ }
225
+ interface PnpmSettings {
226
+ configDependencies?: ConfigDependencies;
227
+ neverBuiltDependencies?: string[];
228
+ onlyBuiltDependencies?: string[];
229
+ onlyBuiltDependenciesFile?: string;
230
+ allowBuilds?: Record<string, boolean | string>;
231
+ ignoredBuiltDependencies?: string[];
232
+ overrides?: Record<string, string>;
233
+ packageExtensions?: Record<string, PackageExtension>;
234
+ ignoredOptionalDependencies?: string[];
235
+ peerDependencyRules?: PeerDependencyRules;
236
+ allowedDeprecatedVersions?: AllowedDeprecatedVersions;
237
+ allowNonAppliedPatches?: boolean;
238
+ allowUnusedPatches?: boolean;
239
+ ignorePatchFailures?: boolean;
240
+ patchedDependencies?: Record<string, string>;
241
+ updateConfig?: {
242
+ ignoreDependencies?: string[];
243
+ };
244
+ auditConfig?: AuditConfig;
245
+ requiredScripts?: string[];
246
+ supportedArchitectures?: SupportedArchitectures;
247
+ executionEnv?: ExecutionEnv;
248
+ }
249
+ interface ProjectManifest extends BaseManifest {
250
+ packageManager?: string;
251
+ workspaces?: string[];
252
+ pnpm?: PnpmSettings;
253
+ private?: boolean;
254
+ resolutions?: Record<string, string>;
255
+ }
256
+ interface SupportedArchitectures {
257
+ os?: string[];
258
+ cpu?: string[];
259
+ libc?: string[];
260
+ }
261
+ //#endregion
262
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/options.d.ts
263
+ interface FinderContext {
264
+ alias: string;
265
+ name: string;
266
+ version: string;
267
+ readManifest: () => DependencyManifest;
268
+ }
269
+ type Finder = (ctx: FinderContext) => boolean | string;
270
+ //#endregion
271
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/peerDependencyIssues.d.ts
272
+ type ParentPackages = Array<{
273
+ name: string;
274
+ version: string;
275
+ }>;
276
+ interface MissingPeerDependencyIssue {
277
+ parents: ParentPackages;
278
+ optional: boolean;
279
+ wantedRange: string;
280
+ }
281
+ type MissingPeerIssuesByPeerName = Record<string, MissingPeerDependencyIssue[]>;
282
+ interface BadPeerDependencyIssue extends MissingPeerDependencyIssue {
283
+ foundVersion: string;
284
+ resolvedFrom: ParentPackages;
285
+ }
286
+ type BadPeerIssuesByPeerName = Record<string, BadPeerDependencyIssue[]>;
287
+ type PeerDependencyIssuesByProjects = Record<string, PeerDependencyIssues>;
288
+ interface PeerDependencyIssues {
289
+ bad: BadPeerIssuesByPeerName;
290
+ missing: MissingPeerIssuesByPeerName;
291
+ conflicts: string[];
292
+ intersections: Record<string, string>;
293
+ }
294
+ //#endregion
295
+ //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/project.d.ts
296
+ interface Project {
297
+ rootDir: ProjectRootDir;
298
+ rootDirRealPath: ProjectRootDirRealPath;
299
+ modulesDir?: string;
300
+ manifest: ProjectManifest;
301
+ writeProjectManifest: (manifest: ProjectManifest, force?: boolean | undefined) => Promise<void>;
302
+ }
303
+ type ProjectsGraph = Record<ProjectRootDir, {
304
+ dependencies: ProjectRootDir[];
305
+ package: Project;
306
+ }>;
307
+ type ProjectRootDir = string & {
308
+ __brand: 'ProjectRootDir';
309
+ };
310
+ type ProjectRootDirRealPath = string & {
311
+ __brand: 'ProjectRootDirRealPath';
312
+ };
313
+ //#endregion
314
+ //#region ../../node_modules/.pnpm/@pnpm+resolver-base@1005.4.1/node_modules/@pnpm/resolver-base/lib/index.d.ts
315
+ /**
316
+ * tarball hosted remotely
317
+ */
318
+ interface TarballResolution$1 {
319
+ type?: undefined;
320
+ tarball: string;
321
+ integrity?: string;
322
+ path?: string;
323
+ }
324
+ interface BinaryResolution$1 {
325
+ type: 'binary';
326
+ archive: 'tarball' | 'zip';
327
+ url: string;
328
+ integrity: string;
329
+ bin: string;
330
+ prefix?: string;
331
+ }
332
+ /**
333
+ * directory on a file system
334
+ */
335
+ interface DirectoryResolution$1 {
336
+ type: 'directory';
337
+ directory: string;
338
+ }
339
+ interface GitResolution {
340
+ commit: string;
341
+ repo: string;
342
+ path?: string;
343
+ type: 'git';
344
+ }
345
+ interface PlatformAssetTarget {
346
+ os: string;
347
+ cpu: string;
348
+ libc?: 'musl';
349
+ }
350
+ interface PlatformAssetResolution$1 {
351
+ resolution: AtomicResolution;
352
+ targets: PlatformAssetTarget[];
353
+ }
354
+ type AtomicResolution = TarballResolution$1 | DirectoryResolution$1 | GitResolution | BinaryResolution$1;
355
+ interface VariationsResolution$1 {
356
+ type: 'variations';
357
+ variants: PlatformAssetResolution$1[];
358
+ }
359
+ type Resolution$1 = AtomicResolution | VariationsResolution$1;
360
+ //#endregion
361
+ //#region ../../node_modules/.pnpm/@pnpm+fetcher-base@1001.2.2/node_modules/@pnpm/fetcher-base/lib/index.d.ts
362
+ interface PkgNameVersion {
363
+ name?: string;
364
+ version?: string;
365
+ }
366
+ interface FetchOptions {
367
+ allowBuild?: AllowBuild;
368
+ filesIndexFile: string;
369
+ lockfileDir: string;
370
+ onStart?: (totalSize: number | null, attempt: number) => void;
371
+ onProgress?: (downloaded: number) => void;
372
+ readManifest?: boolean;
373
+ pkg: PkgNameVersion;
374
+ appendManifest?: DependencyManifest;
375
+ }
376
+ type FetchFunction<FetcherResolution = Resolution$1, Options = FetchOptions, Result = FetchResult> = (cafs: Cafs, resolution: FetcherResolution, opts: Options) => Promise<Result>;
377
+ interface FetchResult {
378
+ local?: boolean;
379
+ manifest?: DependencyManifest;
380
+ filesIndex: Record<string, string>;
381
+ requiresBuild: boolean;
382
+ integrity?: string;
383
+ }
384
+ interface GitFetcherOptions {
385
+ allowBuild?: AllowBuild;
386
+ readManifest?: boolean;
387
+ filesIndexFile: string;
388
+ pkg?: PkgNameVersion;
389
+ }
390
+ interface GitFetcherResult {
391
+ filesIndex: Record<string, string>;
392
+ manifest?: DependencyManifest;
393
+ requiresBuild: boolean;
394
+ }
395
+ type GitFetcher = FetchFunction<GitResolution, GitFetcherOptions, GitFetcherResult>;
396
+ type BinaryFetcher = FetchFunction<BinaryResolution$1>;
397
+ interface DirectoryFetcherOptions {
398
+ lockfileDir: string;
399
+ readManifest?: boolean;
400
+ }
401
+ interface DirectoryFetcherResult {
402
+ local: true;
403
+ filesIndex: Record<string, string>;
404
+ packageImportMethod: 'hardlink';
405
+ manifest?: DependencyManifest;
406
+ requiresBuild: boolean;
407
+ }
408
+ type DirectoryFetcher = FetchFunction<DirectoryResolution$1, DirectoryFetcherOptions, DirectoryFetcherResult>;
409
+ interface Fetchers {
410
+ localTarball: FetchFunction;
411
+ remoteTarball: FetchFunction;
412
+ gitHostedTarball: FetchFunction;
413
+ directory: DirectoryFetcher;
414
+ git: GitFetcher;
415
+ binary: BinaryFetcher;
416
+ }
417
+ interface CustomFetcherFactoryOptions {
418
+ defaultFetchers: Fetchers;
419
+ }
420
+ type CustomFetcherFactory<Fetcher> = (opts: CustomFetcherFactoryOptions) => Fetcher;
421
+ interface CustomFetchers {
422
+ localTarball?: CustomFetcherFactory<FetchFunction>;
423
+ remoteTarball?: CustomFetcherFactory<FetchFunction>;
424
+ gitHostedTarball?: CustomFetcherFactory<FetchFunction>;
425
+ directory?: CustomFetcherFactory<DirectoryFetcher>;
426
+ git?: CustomFetcherFactory<GitFetcher>;
427
+ }
428
+ //#endregion
429
+ //#region ../../node_modules/.pnpm/@pnpm+store-controller-types@1004.5.1/node_modules/@pnpm/store-controller-types/lib/index.d.ts
430
+ type FilesMap = Record<string, string>;
431
+ interface ImportOptions {
432
+ disableRelinkLocalDirDeps?: boolean;
433
+ filesMap: FilesMap;
434
+ force: boolean;
435
+ resolvedFrom: ResolvedFrom;
436
+ keepModulesDir?: boolean;
437
+ }
438
+ type ImportIndexedPackageAsync = (to: string, opts: ImportOptions) => Promise<string | undefined>;
439
+ //#endregion
440
+ //#region ../../node_modules/.pnpm/@pnpm+patching.types@1000.1.0/node_modules/@pnpm/patching.types/lib/index.d.ts
441
+ interface PatchFile {
442
+ path: string;
443
+ hash: string;
444
+ }
445
+ //#endregion
446
+ //#region ../../node_modules/.pnpm/@pnpm+lockfile.types@1002.1.0/node_modules/@pnpm/lockfile.types/lib/index.d.ts
447
+ interface LockfileSettings {
448
+ autoInstallPeers?: boolean;
449
+ dedupePeers?: boolean;
450
+ excludeLinksFromLockfile?: boolean;
451
+ peersSuffixMaxLength?: number;
452
+ injectWorkspacePackages?: boolean;
453
+ }
454
+ interface LockfileBase {
455
+ catalogs?: CatalogSnapshots;
456
+ ignoredOptionalDependencies?: string[];
457
+ lockfileVersion: string;
458
+ overrides?: Record<string, string>;
459
+ packageExtensionsChecksum?: string;
460
+ patchedDependencies?: Record<string, PatchFile>;
461
+ pnpmfileChecksum?: string;
462
+ settings?: LockfileSettings;
463
+ time?: Record<string, string>;
464
+ }
465
+ interface LockfileObject extends LockfileBase {
466
+ importers: Record<ProjectId, ProjectSnapshot>;
467
+ packages?: PackageSnapshots;
468
+ }
469
+ interface LockfilePackageSnapshot {
470
+ optional?: true;
471
+ dependencies?: ResolvedDependencies;
472
+ optionalDependencies?: ResolvedDependencies;
473
+ transitivePeerDependencies?: string[];
474
+ }
475
+ interface LockfilePackageInfo {
476
+ id?: string;
477
+ patched?: true;
478
+ hasBin?: true;
479
+ name?: string;
480
+ version?: string;
481
+ resolution: LockfileResolution;
482
+ peerDependencies?: {
483
+ [name: string]: string;
484
+ };
485
+ peerDependenciesMeta?: {
486
+ [name: string]: {
487
+ optional: true;
488
+ };
489
+ };
490
+ bundledDependencies?: string[] | boolean;
491
+ engines?: Record<string, string> & {
492
+ node: string;
493
+ };
494
+ os?: string[];
495
+ cpu?: string[];
496
+ libc?: string[];
497
+ deprecated?: string;
498
+ }
499
+ interface ProjectSnapshotBase {
500
+ dependenciesMeta?: DependenciesMeta;
501
+ publishDirectory?: string;
502
+ }
503
+ interface ProjectSnapshot extends ProjectSnapshotBase {
504
+ specifiers: ResolvedDependencies;
505
+ dependencies?: ResolvedDependencies;
506
+ optionalDependencies?: ResolvedDependencies;
507
+ devDependencies?: ResolvedDependencies;
508
+ }
509
+ interface PackageSnapshots {
510
+ [packagePath: DepPath]: PackageSnapshot;
511
+ }
512
+ /**
513
+ * tarball hosted remotely
514
+ */
515
+ interface TarballResolution {
516
+ type?: undefined;
517
+ tarball: string;
518
+ integrity?: string;
519
+ path?: string;
520
+ }
521
+ /**
522
+ * directory on a file system
523
+ */
524
+ interface DirectoryResolution {
525
+ type: 'directory';
526
+ directory: string;
527
+ }
528
+ /**
529
+ * Git repository
530
+ */
531
+ interface GitRepositoryResolution {
532
+ type: 'git';
533
+ repo: string;
534
+ commit: string;
535
+ path?: string;
536
+ }
537
+ interface BinaryResolution {
538
+ type: 'binary';
539
+ url: string;
540
+ integrity: string;
541
+ bin: string;
542
+ archive: 'zip' | 'tarball';
543
+ }
544
+ interface PlatformAssetResolution {
545
+ resolution: Resolution;
546
+ targets: PlatformAssetTarget[];
547
+ }
548
+ type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution;
549
+ interface VariationsResolution {
550
+ type: 'variations';
551
+ variants: PlatformAssetResolution[];
552
+ }
553
+ type LockfileResolution = Resolution | VariationsResolution | {
554
+ integrity: string;
555
+ };
556
+ type PackageSnapshot = LockfilePackageInfo & LockfilePackageSnapshot;
557
+ /** @example
558
+ * {
559
+ * "foo": "registry.npmjs.org/foo/1.0.1"
560
+ * }
561
+ */
562
+ type ResolvedDependencies = Record<string, string>;
563
+ interface CatalogSnapshots {
564
+ [catalogName: string]: {
565
+ [dependencyName: string]: ResolvedCatalogEntry;
566
+ };
567
+ }
568
+ interface ResolvedCatalogEntry {
569
+ /**
570
+ * The real specifier that should be used for this dependency's catalog entry.
571
+ * This would be the ^1.2.3 portion of:
572
+ *
573
+ * @example
574
+ * catalog:
575
+ * foo: ^1.2.3
576
+ */
577
+ readonly specifier: string;
578
+ /**
579
+ * The concrete version that the requested specifier resolved to. Ex: 1.2.3
580
+ */
581
+ readonly version: string;
582
+ }
583
+ //#endregion
584
+ //#region ../../node_modules/.pnpm/@pnpm+hooks.types@1001.0.20/node_modules/@pnpm/hooks.types/lib/index.d.ts
585
+ interface PreResolutionHookContext {
586
+ wantedLockfile: LockfileObject;
587
+ currentLockfile: LockfileObject;
588
+ existsCurrentLockfile: boolean;
589
+ existsNonEmptyWantedLockfile: boolean;
590
+ lockfileDir: string;
591
+ storeDir: string;
592
+ registries: Registries;
593
+ }
594
+ interface PreResolutionHookLogger {
595
+ info: (message: string) => void;
596
+ warn: (message: string) => void;
597
+ }
598
+ type PreResolutionHook = (ctx: PreResolutionHookContext, logger: PreResolutionHookLogger) => Promise<void>;
599
+ //#endregion
600
+ //#region ../../node_modules/.pnpm/@pnpm+logger@1001.0.1/node_modules/@pnpm/logger/lib/LogLevel.d.ts
601
+ type LogLevel = 'error' | 'warn' | 'info' | 'debug';
602
+ //#endregion
603
+ //#region ../../node_modules/.pnpm/@pnpm+logger@1001.0.1/node_modules/@pnpm/logger/lib/LogBase.d.ts
604
+ interface OptionalErrorProperties {
605
+ pkgsStack?: Array<{
606
+ id: string;
607
+ name: string;
608
+ version: string;
609
+ }>;
610
+ hint?: string;
611
+ package?: {
612
+ name?: string;
613
+ bareSpecifier?: string;
614
+ version?: string;
615
+ };
616
+ err?: NodeJS.ErrnoException;
617
+ }
618
+ interface LogBaseTemplate extends OptionalErrorProperties {
619
+ level?: LogLevel;
620
+ prefix?: string;
621
+ message?: string;
622
+ }
623
+ interface LogBaseDebug extends LogBaseTemplate {
624
+ level: 'debug';
625
+ }
626
+ interface LogBaseError extends LogBaseTemplate {
627
+ level: 'error';
628
+ }
629
+ interface LogBaseInfo extends LogBaseTemplate {
630
+ level: 'info';
631
+ prefix: string;
632
+ message: string;
633
+ }
634
+ interface LogBaseWarn extends LogBaseTemplate {
635
+ level: 'warn';
636
+ prefix: string;
637
+ message: string;
638
+ }
639
+ type LogBase = LogBaseDebug | LogBaseError | LogBaseInfo | LogBaseWarn;
640
+ //#endregion
641
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/contextLogger.d.ts
642
+ interface ContextMessage {
643
+ currentLockfileExists: boolean;
644
+ storeDir: string;
645
+ virtualStoreDir: string;
646
+ }
647
+ type ContextLog = {
648
+ name: 'pnpm:context';
649
+ } & LogBase & ContextMessage;
650
+ //#endregion
651
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/deprecationLogger.d.ts
652
+ interface DeprecationMessage {
653
+ pkgName: string;
654
+ pkgVersion: string;
655
+ pkgId: string;
656
+ prefix: string;
657
+ deprecated: string;
658
+ depth: number;
659
+ }
660
+ type DeprecationLog = {
661
+ name: 'pnpm:deprecation';
662
+ } & LogBase & DeprecationMessage;
663
+ //#endregion
664
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/fetchingProgressLogger.d.ts
665
+ interface FetchingProgressMessageBase {
666
+ attempt?: number;
667
+ downloaded?: number;
668
+ packageId: string;
669
+ size?: number | null;
670
+ status?: 'started' | 'in_progress';
671
+ }
672
+ interface FetchingProgressMessageStarted extends FetchingProgressMessageBase {
673
+ attempt: number;
674
+ size: number | null;
675
+ status: 'started';
676
+ }
677
+ interface FetchingProgressMessageInProgress extends FetchingProgressMessageBase {
678
+ downloaded: number;
679
+ status: 'in_progress';
680
+ }
681
+ type FetchingProgressMessage = FetchingProgressMessageStarted | FetchingProgressMessageInProgress;
682
+ type FetchingProgressLog = {
683
+ name: 'pnpm:fetching-progress';
684
+ } & LogBase & FetchingProgressMessage;
685
+ //#endregion
686
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/hookLogger.d.ts
687
+ interface HookMessage {
688
+ from: string;
689
+ hook: string;
690
+ message: string;
691
+ prefix: string;
692
+ }
693
+ type HookLog = {
694
+ name: 'pnpm:hook';
695
+ } & LogBase & HookMessage;
696
+ //#endregion
697
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/installCheckLogger.d.ts
698
+ interface InstallCheckMessage {
699
+ code: string;
700
+ pkgId: string;
701
+ }
702
+ type InstallCheckLog = {
703
+ name: 'pnpm:install-check';
704
+ } & LogBase & InstallCheckMessage;
705
+ //#endregion
706
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/installingConfigDeps.d.ts
707
+ interface InstallingConfigDepsMessageBase {
708
+ status?: 'started' | 'done';
709
+ }
710
+ interface InstallingConfigDepsStartedMessage extends InstallingConfigDepsMessageBase {
711
+ status: 'started';
712
+ }
713
+ interface InstallingConfigDepsDoneMessage extends InstallingConfigDepsMessageBase {
714
+ deps: Array<{
715
+ name: string;
716
+ version: string;
717
+ }>;
718
+ status: 'done';
719
+ }
720
+ type InstallingConfigDepsMessage = InstallingConfigDepsStartedMessage | InstallingConfigDepsDoneMessage;
721
+ type InstallingConfigDepsLog = {
722
+ name: 'pnpm:installing-config-deps';
723
+ } & LogBase & InstallingConfigDepsMessage;
724
+ //#endregion
725
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/ignoredScriptsLogger.d.ts
726
+ interface IgnoredScriptsMessage {
727
+ packageNames: string[];
728
+ }
729
+ type IgnoredScriptsLog = {
730
+ name: 'pnpm:ignored-scripts';
731
+ } & LogBase & IgnoredScriptsMessage;
732
+ //#endregion
733
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/lifecycleLogger.d.ts
734
+ interface LifecycleMessageBase {
735
+ depPath: string;
736
+ stage: string;
737
+ wd: string;
738
+ exitCode?: number;
739
+ line?: string;
740
+ optional?: boolean;
741
+ script?: string;
742
+ stdio?: 'stdout' | 'stderr';
743
+ }
744
+ interface StdioLifecycleMessage extends LifecycleMessageBase {
745
+ line: string;
746
+ stdio: 'stdout' | 'stderr';
747
+ }
748
+ interface ExitLifecycleMessage extends LifecycleMessageBase {
749
+ exitCode: number;
750
+ optional: boolean;
751
+ }
752
+ interface ScriptLifecycleMessage extends LifecycleMessageBase {
753
+ script: string;
754
+ optional: boolean;
755
+ }
756
+ type LifecycleMessage = StdioLifecycleMessage | ExitLifecycleMessage | ScriptLifecycleMessage;
757
+ type LifecycleLog = {
758
+ name: 'pnpm:lifecycle';
759
+ } & LogBase & LifecycleMessage;
760
+ //#endregion
761
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/linkLogger.d.ts
762
+ interface LinkMessage {
763
+ target: string;
764
+ link: string;
765
+ }
766
+ type LinkLog = {
767
+ name: 'pnpm:link';
768
+ } & LogBase & LinkMessage;
769
+ //#endregion
770
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/packageImportMethodLogger.d.ts
771
+ interface PackageImportMethodMessage {
772
+ method: 'clone' | 'hardlink' | 'copy';
773
+ }
774
+ type PackageImportMethodLog = {
775
+ name: 'pnpm:package-import-method';
776
+ } & LogBase & PackageImportMethodMessage;
777
+ //#endregion
778
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/packageManifestLogger.d.ts
779
+ interface PackageManifestMessageBase {
780
+ prefix: string;
781
+ initial?: ProjectManifest;
782
+ updated?: ProjectManifest;
783
+ }
784
+ interface PackageManifestMessageInitial extends PackageManifestMessageBase {
785
+ initial: ProjectManifest;
786
+ }
787
+ interface PackageManifestMessageUpdated extends PackageManifestMessageBase {
788
+ updated: ProjectManifest;
789
+ }
790
+ type PackageManifestMessage = PackageManifestMessageInitial | PackageManifestMessageUpdated;
791
+ type PackageManifestLog = {
792
+ name: 'pnpm:package-manifest';
793
+ } & LogBase & PackageManifestMessage;
794
+ //#endregion
795
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/peerDependencyIssues.d.ts
796
+ interface PeerDependencyIssuesMessage {
797
+ issuesByProjects: PeerDependencyIssuesByProjects;
798
+ }
799
+ type PeerDependencyIssuesLog = {
800
+ name: 'pnpm:peer-dependency-issues';
801
+ } & LogBase & PeerDependencyIssuesMessage;
802
+ //#endregion
803
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/progressLogger.d.ts
804
+ type ProgressMessage = {
805
+ packageId: string;
806
+ requester: string;
807
+ status: 'fetched' | 'found_in_store' | 'resolved';
808
+ } | {
809
+ status: 'imported';
810
+ method: string;
811
+ requester: string;
812
+ to: string;
813
+ };
814
+ type ProgressLog = {
815
+ name: 'pnpm:progress';
816
+ } & LogBase & ProgressMessage;
817
+ //#endregion
818
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/registryLogger.d.ts
819
+ type RegistryLog = {
820
+ name: 'pnpm:registry';
821
+ } & LogBase & {
822
+ message: string;
823
+ };
824
+ //#endregion
825
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/requestRetryLogger.d.ts
826
+ interface RequestRetryError extends Error {
827
+ httpStatusCode?: string;
828
+ status?: string;
829
+ errno?: number;
830
+ code?: string;
831
+ }
832
+ interface RequestRetryMessage {
833
+ attempt: number;
834
+ error: RequestRetryError;
835
+ maxRetries: number;
836
+ method: string;
837
+ timeout: number;
838
+ url: string;
839
+ }
840
+ type RequestRetryLog = {
841
+ name: 'pnpm:request-retry';
842
+ } & LogBase & RequestRetryMessage;
843
+ //#endregion
844
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/rootLogger.d.ts
845
+ type DependencyType = 'prod' | 'dev' | 'optional';
846
+ type RootMessage = {
847
+ prefix: string;
848
+ } & ({
849
+ added: {
850
+ id?: string;
851
+ name: string;
852
+ realName: string;
853
+ version?: string;
854
+ dependencyType?: DependencyType;
855
+ latest?: string;
856
+ linkedFrom?: string;
857
+ };
858
+ } | {
859
+ removed: {
860
+ name: string;
861
+ version?: string;
862
+ dependencyType?: DependencyType;
863
+ };
864
+ });
865
+ type RootLog = {
866
+ name: 'pnpm:root';
867
+ } & LogBase & RootMessage;
868
+ //#endregion
869
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/scopeLogger.d.ts
870
+ interface ScopeMessage {
871
+ selected: number;
872
+ total?: number;
873
+ workspacePrefix?: string;
874
+ }
875
+ type ScopeLog = {
876
+ name: 'pnpm:scope';
877
+ } & LogBase & ScopeMessage;
878
+ //#endregion
879
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/skippedOptionalDependencyLogger.d.ts
880
+ type SkippedOptionalDependencyLog = {
881
+ name: 'pnpm:skipped-optional-dependency';
882
+ } & LogBase & SkippedOptionalDependencyMessage;
883
+ type SkippedOptionalDependencyMessage = {
884
+ details?: string;
885
+ parents?: Array<{
886
+ id: string;
887
+ name: string;
888
+ version: string;
889
+ }>;
890
+ prefix: string;
891
+ } & ({
892
+ package: {
893
+ id: string;
894
+ name: string;
895
+ version: string;
896
+ };
897
+ reason: 'unsupported_engine' | 'unsupported_platform' | 'build_failure';
898
+ } | {
899
+ package: {
900
+ id?: never;
901
+ name: string | undefined;
902
+ version: string | undefined;
903
+ bareSpecifier: string;
904
+ };
905
+ reason: 'resolution_failure';
906
+ });
907
+ //#endregion
908
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/stageLogger.d.ts
909
+ interface StageMessage {
910
+ prefix: string;
911
+ stage: 'resolution_started' | 'resolution_done' | 'importing_started' | 'importing_done';
912
+ }
913
+ type StageLog = {
914
+ name: 'pnpm:stage';
915
+ } & LogBase & StageMessage;
916
+ //#endregion
917
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/statsLogger.d.ts
918
+ interface StatsMessageBase {
919
+ prefix: string;
920
+ added?: number;
921
+ removed?: number;
922
+ }
923
+ interface StatsMessageAdded extends StatsMessageBase {
924
+ added: number;
925
+ removed?: never;
926
+ }
927
+ interface StatsMessageRemoved extends StatsMessageBase {
928
+ added?: never;
929
+ removed: number;
930
+ }
931
+ type StatsMessage = StatsMessageAdded | StatsMessageRemoved;
932
+ type StatsLog = {
933
+ name: 'pnpm:stats';
934
+ } & LogBase & StatsMessage;
935
+ //#endregion
936
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/summaryLogger.d.ts
937
+ interface SummaryMessage {
938
+ prefix: string;
939
+ }
940
+ type SummaryLog = {
941
+ name: 'pnpm:summary';
942
+ } & LogBase & SummaryMessage;
943
+ //#endregion
944
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/updateCheckLogger.d.ts
945
+ interface UpdateCheckMessage {
946
+ currentVersion: string;
947
+ latestVersion: string;
948
+ }
949
+ type UpdateCheckLog = {
950
+ name: 'pnpm:update-check';
951
+ } & LogBase & UpdateCheckMessage;
952
+ //#endregion
953
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/executionTimeLogger.d.ts
954
+ interface ExecutionTimeMessage {
955
+ startedAt: number;
956
+ endedAt: number;
957
+ }
958
+ type ExecutionTimeLog = {
959
+ name: 'pnpm:execution-time';
960
+ } & LogBase & ExecutionTimeMessage;
961
+ //#endregion
962
+ //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/index.d.ts
963
+ type Log = ContextLog | DeprecationLog | FetchingProgressLog | ExecutionTimeLog | HookLog | InstallCheckLog | InstallingConfigDepsLog | IgnoredScriptsLog | LifecycleLog | LinkLog | PackageManifestLog | PackageImportMethodLog | PeerDependencyIssuesLog | ProgressLog | RegistryLog | RequestRetryLog | RootLog | ScopeLog | SkippedOptionalDependencyLog | StageLog | StatsLog | SummaryLog | UpdateCheckLog;
964
+ //#endregion
965
+ //#region ../../node_modules/.pnpm/@pnpm+pnpmfile@1002.1.13_@pnpm+logger@1001.0.1/node_modules/@pnpm/pnpmfile/lib/Hooks.d.ts
966
+ interface HookContext {
967
+ log: (message: string) => void;
968
+ }
969
+ interface Hooks$1 {
970
+ readPackage?: (pkg: any, context: HookContext) => any;
971
+ beforePacking?: (pkg: any, dir: string, context: HookContext) => any;
972
+ preResolution?: PreResolutionHook;
973
+ afterAllResolved?: (lockfile: LockfileObject, context: HookContext) => LockfileObject | Promise<LockfileObject>;
974
+ filterLog?: (log: Log) => boolean;
975
+ importPackage?: ImportIndexedPackageAsync;
976
+ fetchers?: CustomFetchers;
977
+ updateConfig?: (config: any) => any;
978
+ }
979
+ //#endregion
980
+ //#region ../../node_modules/.pnpm/@pnpm+pnpmfile@1002.1.13_@pnpm+logger@1001.0.1/node_modules/@pnpm/pnpmfile/lib/requireHooks.d.ts
981
+ type Cook<T extends (...args: any[]) => any> = (arg: Parameters<T>[0], ...otherArgs: any[]) => ReturnType<T>;
982
+ interface CookedHooks {
983
+ readPackage?: Array<Cook<Required<Hooks$1>['readPackage']>>;
984
+ beforePacking?: Array<Cook<Required<Hooks$1>['beforePacking']>>;
985
+ preResolution?: Array<Cook<Required<Hooks$1>['preResolution']>>;
986
+ afterAllResolved?: Array<Cook<Required<Hooks$1>['afterAllResolved']>>;
987
+ filterLog?: Array<Cook<Required<Hooks$1>['filterLog']>>;
988
+ updateConfig?: Array<Cook<Required<Hooks$1>['updateConfig']>>;
989
+ importPackage?: ImportIndexedPackageAsync;
990
+ fetchers?: CustomFetchers;
991
+ calculatePnpmfileChecksum?: () => Promise<string>;
992
+ }
993
+ //#endregion
994
+ //#region ../../node_modules/.pnpm/@pnpm+pnpmfile@1002.1.13_@pnpm+logger@1001.0.1/node_modules/@pnpm/pnpmfile/lib/index.d.ts
995
+ type Hooks = CookedHooks;
996
+ //#endregion
997
+ //#region ../../node_modules/.pnpm/@pnpm+config@1004.11.0_@pnpm+logger@1001.0.1/node_modules/@pnpm/config/lib/getOptionsFromRootManifest.d.ts
998
+ type OptionsFromRootManifest = {
999
+ allowedDeprecatedVersions?: AllowedDeprecatedVersions;
1000
+ allowUnusedPatches?: boolean;
1001
+ ignorePatchFailures?: boolean;
1002
+ overrides?: Record<string, string>;
1003
+ neverBuiltDependencies?: string[];
1004
+ onlyBuiltDependencies?: string[];
1005
+ onlyBuiltDependenciesFile?: string;
1006
+ ignoredBuiltDependencies?: string[];
1007
+ packageExtensions?: Record<string, PackageExtension>;
1008
+ ignoredOptionalDependencies?: string[];
1009
+ patchedDependencies?: Record<string, string>;
1010
+ peerDependencyRules?: PeerDependencyRules;
1011
+ supportedArchitectures?: SupportedArchitectures;
1012
+ allowBuilds?: Record<string, boolean | string>;
1013
+ requiredScripts?: string[];
1014
+ } & Pick<PnpmSettings, 'configDependencies' | 'auditConfig' | 'executionEnv' | 'updateConfig'>;
1015
+ //#endregion
1016
+ //#region ../../node_modules/.pnpm/@pnpm+config@1004.11.0_@pnpm+logger@1001.0.1/node_modules/@pnpm/config/lib/Config.d.ts
1017
+ interface WantedPackageManager {
1018
+ name: string;
1019
+ version?: string;
1020
+ }
1021
+ type VerifyDepsBeforeRun = 'install' | 'warn' | 'error' | 'prompt' | false;
1022
+ interface Config extends OptionsFromRootManifest {
1023
+ allProjects?: Project[];
1024
+ selectedProjectsGraph?: ProjectsGraph;
1025
+ allProjectsGraph?: ProjectsGraph;
1026
+ allowNew: boolean;
1027
+ autoInstallPeers?: boolean;
1028
+ bail: boolean;
1029
+ color: 'always' | 'auto' | 'never';
1030
+ cliOptions: Record<string, any>;
1031
+ useBetaCli: boolean;
1032
+ excludeLinksFromLockfile: boolean;
1033
+ extraBinPaths: string[];
1034
+ extraEnv: Record<string, string>;
1035
+ failIfNoMatch: boolean;
1036
+ filter: string[];
1037
+ filterProd: string[];
1038
+ rawLocalConfig: Record<string, any>;
1039
+ rawConfig: Record<string, any>;
1040
+ dryRun?: boolean;
1041
+ global?: boolean;
1042
+ dir: string;
1043
+ bin: string;
1044
+ verifyDepsBeforeRun?: VerifyDepsBeforeRun;
1045
+ ignoreDepScripts?: boolean;
1046
+ ignoreScripts?: boolean;
1047
+ ignoreCompatibilityDb?: boolean;
1048
+ includeWorkspaceRoot?: boolean;
1049
+ optimisticRepeatInstall?: boolean;
1050
+ save?: boolean;
1051
+ saveProd?: boolean;
1052
+ saveDev?: boolean;
1053
+ saveOptional?: boolean;
1054
+ savePeer?: boolean;
1055
+ saveCatalogName?: string;
1056
+ saveWorkspaceProtocol?: boolean | 'rolling';
1057
+ lockfileIncludeTarballUrl?: boolean;
1058
+ scriptShell?: string;
1059
+ stream?: boolean;
1060
+ pnpmExecPath: string;
1061
+ pnpmHomeDir: string;
1062
+ production?: boolean;
1063
+ fetchRetries?: number;
1064
+ fetchRetryFactor?: number;
1065
+ fetchRetryMintimeout?: number;
1066
+ fetchRetryMaxtimeout?: number;
1067
+ fetchTimeout?: number;
1068
+ saveExact?: boolean;
1069
+ savePrefix?: string;
1070
+ shellEmulator?: boolean;
1071
+ scriptsPrependNodePath?: boolean | 'warn-only';
1072
+ force?: boolean;
1073
+ depth?: number;
1074
+ engineStrict?: boolean;
1075
+ nodeVersion?: string;
1076
+ offline?: boolean;
1077
+ registry?: string;
1078
+ optional?: boolean;
1079
+ unsafePerm?: boolean;
1080
+ loglevel?: 'silent' | 'error' | 'warn' | 'info' | 'debug';
1081
+ frozenLockfile?: boolean;
1082
+ preferFrozenLockfile?: boolean;
1083
+ only?: 'prod' | 'production' | 'dev' | 'development';
1084
+ packageManager: {
1085
+ name: string;
1086
+ version: string;
1087
+ };
1088
+ wantedPackageManager?: WantedPackageManager;
1089
+ preferOffline?: boolean;
1090
+ sideEffectsCache?: boolean;
1091
+ sideEffectsCacheReadonly?: boolean;
1092
+ sideEffectsCacheRead?: boolean;
1093
+ sideEffectsCacheWrite?: boolean;
1094
+ shamefullyHoist?: boolean;
1095
+ dev?: boolean;
1096
+ ignoreCurrentSpecifiers?: boolean;
1097
+ recursive?: boolean;
1098
+ enablePrePostScripts?: boolean;
1099
+ useNodeVersion?: string;
1100
+ useStderr?: boolean;
1101
+ nodeLinker?: 'hoisted' | 'isolated' | 'pnp';
1102
+ preferSymlinkedExecutables?: boolean;
1103
+ resolutionMode?: 'highest' | 'time-based' | 'lowest-direct';
1104
+ registrySupportsTimeField?: boolean;
1105
+ failedToLoadBuiltInConfig: boolean;
1106
+ resolvePeersFromWorkspaceRoot?: boolean;
1107
+ deployAllFiles?: boolean;
1108
+ forceLegacyDeploy?: boolean;
1109
+ reporterHidePrefix?: boolean;
1110
+ httpProxy?: string;
1111
+ httpsProxy?: string;
1112
+ localAddress?: string;
1113
+ noProxy?: string | boolean;
1114
+ cert?: string | string[];
1115
+ key?: string;
1116
+ ca?: string | string[];
1117
+ strictSsl?: boolean;
1118
+ userAgent?: string;
1119
+ tag?: string;
1120
+ updateNotifier?: boolean;
1121
+ cacheDir: string;
1122
+ configDir: string;
1123
+ stateDir: string;
1124
+ storeDir?: string;
1125
+ virtualStoreDir?: string;
1126
+ enableGlobalVirtualStore?: boolean;
1127
+ verifyStoreIntegrity?: boolean;
1128
+ maxSockets?: number;
1129
+ networkConcurrency?: number;
1130
+ fetchingConcurrency?: number;
1131
+ lockfileOnly?: boolean;
1132
+ childConcurrency?: number;
1133
+ ignorePnpmfile?: boolean;
1134
+ pnpmfile: string[] | string;
1135
+ tryLoadDefaultPnpmfile?: boolean;
1136
+ hooks?: Hooks;
1137
+ finders?: Record<string, Finder>;
1138
+ packageImportMethod?: 'auto' | 'hardlink' | 'copy' | 'clone' | 'clone-or-copy';
1139
+ hoistPattern?: string[];
1140
+ publicHoistPattern?: string[] | string;
1141
+ hoistWorkspacePackages?: boolean;
1142
+ useStoreServer?: boolean;
1143
+ useRunningStoreServer?: boolean;
1144
+ workspaceConcurrency: number;
1145
+ workspaceDir?: string;
1146
+ workspacePackagePatterns?: string[];
1147
+ catalogs?: Catalogs;
1148
+ catalogMode?: 'strict' | 'prefer' | 'manual';
1149
+ cleanupUnusedCatalogs?: boolean;
1150
+ reporter?: string;
1151
+ aggregateOutput: boolean;
1152
+ linkWorkspacePackages: boolean | 'deep';
1153
+ injectWorkspacePackages?: boolean;
1154
+ preferWorkspacePackages: boolean;
1155
+ reverse: boolean;
1156
+ sort: boolean;
1157
+ strictPeerDependencies: boolean;
1158
+ lockfileDir?: string;
1159
+ modulesDir?: string;
1160
+ sharedWorkspaceLockfile?: boolean;
1161
+ useLockfile: boolean;
1162
+ useGitBranchLockfile: boolean;
1163
+ mergeGitBranchLockfiles?: boolean;
1164
+ mergeGitBranchLockfilesBranchPattern?: string[];
1165
+ globalPnpmfile?: string;
1166
+ npmPath?: string;
1167
+ gitChecks?: boolean;
1168
+ publishBranch?: string;
1169
+ recursiveInstall?: boolean;
1170
+ symlink: boolean;
1171
+ enablePnp?: boolean;
1172
+ enableModulesDir: boolean;
1173
+ modulesCacheMaxAge: number;
1174
+ dlxCacheMaxAge: number;
1175
+ embedReadme?: boolean;
1176
+ gitShallowHosts?: string[];
1177
+ legacyDirFiltering?: boolean;
1178
+ onlyBuiltDependencies?: string[];
1179
+ allowBuilds?: Record<string, boolean | string>;
1180
+ dedupePeerDependents?: boolean;
1181
+ dedupePeers?: boolean;
1182
+ patchesDir?: string;
1183
+ ignoreWorkspaceCycles?: boolean;
1184
+ disallowWorkspaceCycles?: boolean;
1185
+ packGzipLevel?: number;
1186
+ blockExoticSubdeps?: boolean;
1187
+ registries: Registries;
1188
+ sslConfigs: Record<string, SslConfig>;
1189
+ ignoreWorkspaceRootCheck: boolean;
1190
+ workspaceRoot: boolean;
1191
+ testPattern?: string[];
1192
+ changedFilesIgnorePattern?: string[];
1193
+ rootProjectManifestDir: string;
1194
+ rootProjectManifest?: ProjectManifest;
1195
+ userConfig: Record<string, string>;
1196
+ hoist: boolean;
1197
+ packageLock: boolean;
1198
+ pending: boolean;
1199
+ userconfig: string;
1200
+ workspacePrefix?: string;
1201
+ dedupeDirectDeps?: boolean;
1202
+ extendNodePath?: boolean;
1203
+ gitBranchLockfile?: boolean;
1204
+ globalBinDir?: string;
1205
+ globalDir?: string;
1206
+ globalPkgDir: string;
1207
+ lockfile?: boolean;
1208
+ dedupeInjectedDeps?: boolean;
1209
+ nodeOptions?: string;
1210
+ packageManagerStrict?: boolean;
1211
+ packageManagerStrictVersion?: boolean;
1212
+ virtualStoreDirMaxLength: number;
1213
+ peersSuffixMaxLength?: number;
1214
+ strictStorePkgContentCheck: boolean;
1215
+ managePackageManagerVersions: boolean;
1216
+ strictDepBuilds: boolean;
1217
+ syncInjectedDepsAfterScripts?: string[];
1218
+ initPackageManager: boolean;
1219
+ initType: 'commonjs' | 'module';
1220
+ dangerouslyAllowAllBuilds: boolean;
1221
+ ci: boolean;
1222
+ preserveAbsolutePaths?: boolean;
1223
+ minimumReleaseAge?: number;
1224
+ minimumReleaseAgeExclude?: string[];
1225
+ fetchWarnTimeoutMs?: number;
1226
+ fetchMinSpeedKiBps?: number;
1227
+ trustPolicy?: TrustPolicy;
1228
+ trustPolicyExclude?: string[];
1229
+ trustPolicyIgnoreAfter?: number;
1230
+ auditLevel?: 'low' | 'moderate' | 'high' | 'critical';
1231
+ }
1232
+ //#endregion
1233
+ //#region src/hooks.d.ts
1234
+ declare const hooks: {
1235
+ updateConfig(config: Partial<Config>): Partial<Config>;
1236
+ };
1237
+ //#endregion
1238
+ //#region src/meta.d.ts
1239
+ declare const meta: Readonly<{
1240
+ buildNumber: number;
1241
+ name: string;
1242
+ version: string;
1243
+ }>;
1244
+ //#endregion
1245
+ //#region src/PnpmConfig.d.ts
1246
+ type PnpmConfig = Config;
1247
+ //#endregion
1248
+ //#region src/PnpmUserConfig.d.ts
1249
+ type PnpmUserConfig = Partial<PnpmConfig>;
1250
+ /**
1251
+ * @namespace
1252
+ */
1253
+ declare const PnpmUserConfig: Readonly<{
1254
+ /**
1255
+ * Merge two configs immutably. `extension` values win; `base` fills in
1256
+ * undefined slots. `allowBuilds` and `overrides` are deep-merged (extension
1257
+ * entries win). `minimumReleaseAgeExclude` is merged as a deduplicated union
1258
+ * of both arrays. A `hoistPattern` of `['*']` in extension is normalized to
1259
+ * `[]` following pnpm-plugin-better-defaults behavior.
1260
+ *
1261
+ * @param base
1262
+ * @param extension
1263
+ */
1264
+ merge(base: PnpmUserConfig, extension: PnpmUserConfig): PnpmUserConfig;
1265
+ }>;
1266
+ //#endregion
1267
+ //#region src/PnpmHooks.d.ts
1268
+ /** Hooks exported by this plugin's pnpmfile. */
1269
+ interface PnpmHooks {
1270
+ updateConfig?: (config: PnpmUserConfig) => PnpmUserConfig | Promise<PnpmUserConfig>;
1271
+ }
1272
+ //#endregion
1273
+ export { PnpmConfig, PnpmHooks, PnpmUserConfig, defaultConfig, hooks, meta };
1274
+ //# sourceMappingURL=index.d.ts.map