@w5s/pnpm-plugin-config 1.21.0 → 1.21.1

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/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Cafs, ResolvedFrom } from "@pnpm/cafs-types";
2
- //#region src/defaultConfig.d.ts
3
2
  export declare const defaultConfig: Readonly<{
4
3
  allowBuilds: {
5
4
  '@parcel/watcher': true;
@@ -29,8 +28,6 @@ export declare const defaultConfig: Readonly<{
29
28
  trustPolicy: "no-downgrade";
30
29
  trustPolicyIgnoreAfter: number;
31
30
  }>;
32
- //#endregion
33
- //#region ../../node_modules/.pnpm/@pnpm+catalogs.types@1000.0.0/node_modules/@pnpm/catalogs.types/lib/index.d.ts
34
31
  /**
35
32
  * Catalogs parsed from the pnpm-workspace.yaml file.
36
33
  *
@@ -58,17 +55,11 @@ interface Catalogs {
58
55
  interface Catalog {
59
56
  readonly [dependencyName: string]: string | undefined;
60
57
  }
61
- //#endregion
62
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/config.d.ts
63
58
  type AllowBuild = (pkgName: string, pkgVersion: string) => boolean;
64
59
  type TrustPolicy = 'no-downgrade' | 'off';
65
- //#endregion
66
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/env.d.ts
67
60
  interface ExecutionEnv {
68
61
  nodeVersion?: string;
69
62
  }
70
- //#endregion
71
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/misc.d.ts
72
63
  interface Registries {
73
64
  default: string;
74
65
  [scope: string]: string;
@@ -84,8 +75,6 @@ type DepPath = string & {
84
75
  type ProjectId = string & {
85
76
  __brand: 'ProjectId';
86
77
  };
87
- //#endregion
88
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/package.d.ts
89
78
  type Dependencies = Record<string, string>;
90
79
  type PackageBin = string | {
91
80
  [commandName: string]: string;
@@ -264,8 +253,6 @@ interface SupportedArchitectures {
264
253
  cpu?: string[];
265
254
  libc?: string[];
266
255
  }
267
- //#endregion
268
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/options.d.ts
269
256
  interface FinderContext {
270
257
  alias: string;
271
258
  name: string;
@@ -273,8 +260,6 @@ interface FinderContext {
273
260
  readManifest: () => DependencyManifest;
274
261
  }
275
262
  type Finder = (ctx: FinderContext) => boolean | string;
276
- //#endregion
277
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/peerDependencyIssues.d.ts
278
263
  type ParentPackages = Array<{
279
264
  name: string;
280
265
  version: string;
@@ -297,8 +282,6 @@ interface PeerDependencyIssues {
297
282
  conflicts: string[];
298
283
  intersections: Record<string, string>;
299
284
  }
300
- //#endregion
301
- //#region ../../node_modules/.pnpm/@pnpm+types@1001.3.0/node_modules/@pnpm/types/lib/project.d.ts
302
285
  interface Project {
303
286
  rootDir: ProjectRootDir;
304
287
  rootDirRealPath: ProjectRootDirRealPath;
@@ -316,8 +299,6 @@ type ProjectRootDir = string & {
316
299
  type ProjectRootDirRealPath = string & {
317
300
  __brand: 'ProjectRootDirRealPath';
318
301
  };
319
- //#endregion
320
- //#region ../../node_modules/.pnpm/@pnpm+resolver-base@1005.4.1/node_modules/@pnpm/resolver-base/lib/index.d.ts
321
302
  /**
322
303
  * tarball hosted remotely
323
304
  */
@@ -363,8 +344,6 @@ interface VariationsResolution$1 {
363
344
  variants: PlatformAssetResolution$1[];
364
345
  }
365
346
  type Resolution$1 = AtomicResolution | VariationsResolution$1;
366
- //#endregion
367
- //#region ../../node_modules/.pnpm/@pnpm+fetcher-base@1001.2.2/node_modules/@pnpm/fetcher-base/lib/index.d.ts
368
347
  interface PkgNameVersion {
369
348
  name?: string;
370
349
  version?: string;
@@ -431,8 +410,6 @@ interface CustomFetchers {
431
410
  directory?: CustomFetcherFactory<DirectoryFetcher>;
432
411
  git?: CustomFetcherFactory<GitFetcher>;
433
412
  }
434
- //#endregion
435
- //#region ../../node_modules/.pnpm/@pnpm+store-controller-types@1004.5.1/node_modules/@pnpm/store-controller-types/lib/index.d.ts
436
413
  type FilesMap = Record<string, string>;
437
414
  interface ImportOptions {
438
415
  disableRelinkLocalDirDeps?: boolean;
@@ -442,14 +419,10 @@ interface ImportOptions {
442
419
  keepModulesDir?: boolean;
443
420
  }
444
421
  type ImportIndexedPackageAsync = (to: string, opts: ImportOptions) => Promise<string | undefined>;
445
- //#endregion
446
- //#region ../../node_modules/.pnpm/@pnpm+patching.types@1000.1.0/node_modules/@pnpm/patching.types/lib/index.d.ts
447
422
  interface PatchFile {
448
423
  path: string;
449
424
  hash: string;
450
425
  }
451
- //#endregion
452
- //#region ../../node_modules/.pnpm/@pnpm+lockfile.types@1002.1.0/node_modules/@pnpm/lockfile.types/lib/index.d.ts
453
426
  interface LockfileSettings {
454
427
  autoInstallPeers?: boolean;
455
428
  dedupePeers?: boolean;
@@ -586,8 +559,6 @@ interface ResolvedCatalogEntry {
586
559
  */
587
560
  readonly version: string;
588
561
  }
589
- //#endregion
590
- //#region ../../node_modules/.pnpm/@pnpm+hooks.types@1001.0.20/node_modules/@pnpm/hooks.types/lib/index.d.ts
591
562
  interface PreResolutionHookContext {
592
563
  wantedLockfile: LockfileObject;
593
564
  currentLockfile: LockfileObject;
@@ -602,11 +573,7 @@ interface PreResolutionHookLogger {
602
573
  warn: (message: string) => void;
603
574
  }
604
575
  type PreResolutionHook = (ctx: PreResolutionHookContext, logger: PreResolutionHookLogger) => Promise<void>;
605
- //#endregion
606
- //#region ../../node_modules/.pnpm/@pnpm+logger@1001.0.1/node_modules/@pnpm/logger/lib/LogLevel.d.ts
607
576
  type LogLevel = 'error' | 'warn' | 'info' | 'debug';
608
- //#endregion
609
- //#region ../../node_modules/.pnpm/@pnpm+logger@1001.0.1/node_modules/@pnpm/logger/lib/LogBase.d.ts
610
577
  interface OptionalErrorProperties {
611
578
  pkgsStack?: Array<{
612
579
  id: string;
@@ -643,8 +610,6 @@ interface LogBaseWarn extends LogBaseTemplate {
643
610
  message: string;
644
611
  }
645
612
  type LogBase = LogBaseDebug | LogBaseError | LogBaseInfo | LogBaseWarn;
646
- //#endregion
647
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/contextLogger.d.ts
648
613
  interface ContextMessage {
649
614
  currentLockfileExists: boolean;
650
615
  storeDir: string;
@@ -653,8 +618,6 @@ interface ContextMessage {
653
618
  type ContextLog = {
654
619
  name: 'pnpm:context';
655
620
  } & LogBase & ContextMessage;
656
- //#endregion
657
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/deprecationLogger.d.ts
658
621
  interface DeprecationMessage {
659
622
  pkgName: string;
660
623
  pkgVersion: string;
@@ -666,8 +629,6 @@ interface DeprecationMessage {
666
629
  type DeprecationLog = {
667
630
  name: 'pnpm:deprecation';
668
631
  } & LogBase & DeprecationMessage;
669
- //#endregion
670
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/fetchingProgressLogger.d.ts
671
632
  interface FetchingProgressMessageBase {
672
633
  attempt?: number;
673
634
  downloaded?: number;
@@ -688,8 +649,6 @@ type FetchingProgressMessage = FetchingProgressMessageStarted | FetchingProgress
688
649
  type FetchingProgressLog = {
689
650
  name: 'pnpm:fetching-progress';
690
651
  } & LogBase & FetchingProgressMessage;
691
- //#endregion
692
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/hookLogger.d.ts
693
652
  interface HookMessage {
694
653
  from: string;
695
654
  hook: string;
@@ -699,8 +658,6 @@ interface HookMessage {
699
658
  type HookLog = {
700
659
  name: 'pnpm:hook';
701
660
  } & LogBase & HookMessage;
702
- //#endregion
703
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/installCheckLogger.d.ts
704
661
  interface InstallCheckMessage {
705
662
  code: string;
706
663
  pkgId: string;
@@ -708,8 +665,6 @@ interface InstallCheckMessage {
708
665
  type InstallCheckLog = {
709
666
  name: 'pnpm:install-check';
710
667
  } & LogBase & InstallCheckMessage;
711
- //#endregion
712
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/installingConfigDeps.d.ts
713
668
  interface InstallingConfigDepsMessageBase {
714
669
  status?: 'started' | 'done';
715
670
  }
@@ -727,16 +682,12 @@ type InstallingConfigDepsMessage = InstallingConfigDepsStartedMessage | Installi
727
682
  type InstallingConfigDepsLog = {
728
683
  name: 'pnpm:installing-config-deps';
729
684
  } & LogBase & InstallingConfigDepsMessage;
730
- //#endregion
731
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/ignoredScriptsLogger.d.ts
732
685
  interface IgnoredScriptsMessage {
733
686
  packageNames: string[];
734
687
  }
735
688
  type IgnoredScriptsLog = {
736
689
  name: 'pnpm:ignored-scripts';
737
690
  } & LogBase & IgnoredScriptsMessage;
738
- //#endregion
739
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/lifecycleLogger.d.ts
740
691
  interface LifecycleMessageBase {
741
692
  depPath: string;
742
693
  stage: string;
@@ -763,8 +714,6 @@ type LifecycleMessage = StdioLifecycleMessage | ExitLifecycleMessage | ScriptLif
763
714
  type LifecycleLog = {
764
715
  name: 'pnpm:lifecycle';
765
716
  } & LogBase & LifecycleMessage;
766
- //#endregion
767
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/linkLogger.d.ts
768
717
  interface LinkMessage {
769
718
  target: string;
770
719
  link: string;
@@ -772,16 +721,12 @@ interface LinkMessage {
772
721
  type LinkLog = {
773
722
  name: 'pnpm:link';
774
723
  } & LogBase & LinkMessage;
775
- //#endregion
776
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/packageImportMethodLogger.d.ts
777
724
  interface PackageImportMethodMessage {
778
725
  method: 'clone' | 'hardlink' | 'copy';
779
726
  }
780
727
  type PackageImportMethodLog = {
781
728
  name: 'pnpm:package-import-method';
782
729
  } & LogBase & PackageImportMethodMessage;
783
- //#endregion
784
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/packageManifestLogger.d.ts
785
730
  interface PackageManifestMessageBase {
786
731
  prefix: string;
787
732
  initial?: ProjectManifest;
@@ -797,16 +742,12 @@ type PackageManifestMessage = PackageManifestMessageInitial | PackageManifestMes
797
742
  type PackageManifestLog = {
798
743
  name: 'pnpm:package-manifest';
799
744
  } & LogBase & PackageManifestMessage;
800
- //#endregion
801
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/peerDependencyIssues.d.ts
802
745
  interface PeerDependencyIssuesMessage {
803
746
  issuesByProjects: PeerDependencyIssuesByProjects;
804
747
  }
805
748
  type PeerDependencyIssuesLog = {
806
749
  name: 'pnpm:peer-dependency-issues';
807
750
  } & LogBase & PeerDependencyIssuesMessage;
808
- //#endregion
809
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/progressLogger.d.ts
810
751
  type ProgressMessage = {
811
752
  packageId: string;
812
753
  requester: string;
@@ -820,15 +761,11 @@ type ProgressMessage = {
820
761
  type ProgressLog = {
821
762
  name: 'pnpm:progress';
822
763
  } & LogBase & ProgressMessage;
823
- //#endregion
824
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/registryLogger.d.ts
825
764
  type RegistryLog = {
826
765
  name: 'pnpm:registry';
827
766
  } & LogBase & {
828
767
  message: string;
829
768
  };
830
- //#endregion
831
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/requestRetryLogger.d.ts
832
769
  interface RequestRetryError extends Error {
833
770
  httpStatusCode?: string;
834
771
  status?: string;
@@ -846,8 +783,6 @@ interface RequestRetryMessage {
846
783
  type RequestRetryLog = {
847
784
  name: 'pnpm:request-retry';
848
785
  } & LogBase & RequestRetryMessage;
849
- //#endregion
850
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/rootLogger.d.ts
851
786
  type DependencyType = 'prod' | 'dev' | 'optional';
852
787
  type RootMessage = {
853
788
  prefix: string;
@@ -871,8 +806,6 @@ type RootMessage = {
871
806
  type RootLog = {
872
807
  name: 'pnpm:root';
873
808
  } & LogBase & RootMessage;
874
- //#endregion
875
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/scopeLogger.d.ts
876
809
  interface ScopeMessage {
877
810
  selected: number;
878
811
  total?: number;
@@ -881,8 +814,6 @@ interface ScopeMessage {
881
814
  type ScopeLog = {
882
815
  name: 'pnpm:scope';
883
816
  } & LogBase & ScopeMessage;
884
- //#endregion
885
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/skippedOptionalDependencyLogger.d.ts
886
817
  type SkippedOptionalDependencyLog = {
887
818
  name: 'pnpm:skipped-optional-dependency';
888
819
  } & LogBase & SkippedOptionalDependencyMessage;
@@ -910,8 +841,6 @@ type SkippedOptionalDependencyMessage = {
910
841
  };
911
842
  reason: 'resolution_failure';
912
843
  });
913
- //#endregion
914
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/stageLogger.d.ts
915
844
  interface StageMessage {
916
845
  prefix: string;
917
846
  stage: 'resolution_started' | 'resolution_done' | 'importing_started' | 'importing_done';
@@ -919,8 +848,6 @@ interface StageMessage {
919
848
  type StageLog = {
920
849
  name: 'pnpm:stage';
921
850
  } & LogBase & StageMessage;
922
- //#endregion
923
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/statsLogger.d.ts
924
851
  interface StatsMessageBase {
925
852
  prefix: string;
926
853
  added?: number;
@@ -938,16 +865,12 @@ type StatsMessage = StatsMessageAdded | StatsMessageRemoved;
938
865
  type StatsLog = {
939
866
  name: 'pnpm:stats';
940
867
  } & LogBase & StatsMessage;
941
- //#endregion
942
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/summaryLogger.d.ts
943
868
  interface SummaryMessage {
944
869
  prefix: string;
945
870
  }
946
871
  type SummaryLog = {
947
872
  name: 'pnpm:summary';
948
873
  } & LogBase & SummaryMessage;
949
- //#endregion
950
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/updateCheckLogger.d.ts
951
874
  interface UpdateCheckMessage {
952
875
  currentVersion: string;
953
876
  latestVersion: string;
@@ -955,8 +878,6 @@ interface UpdateCheckMessage {
955
878
  type UpdateCheckLog = {
956
879
  name: 'pnpm:update-check';
957
880
  } & LogBase & UpdateCheckMessage;
958
- //#endregion
959
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/executionTimeLogger.d.ts
960
881
  interface ExecutionTimeMessage {
961
882
  startedAt: number;
962
883
  endedAt: number;
@@ -964,11 +885,7 @@ interface ExecutionTimeMessage {
964
885
  type ExecutionTimeLog = {
965
886
  name: 'pnpm:execution-time';
966
887
  } & LogBase & ExecutionTimeMessage;
967
- //#endregion
968
- //#region ../../node_modules/.pnpm/@pnpm+core-loggers@1001.0.9_@pnpm+logger@1001.0.1/node_modules/@pnpm/core-loggers/lib/index.d.ts
969
888
  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;
970
- //#endregion
971
- //#region ../../node_modules/.pnpm/@pnpm+pnpmfile@1002.1.13_@pnpm+logger@1001.0.1/node_modules/@pnpm/pnpmfile/lib/Hooks.d.ts
972
889
  interface HookContext {
973
890
  log: (message: string) => void;
974
891
  }
@@ -982,8 +899,6 @@ interface Hooks$1 {
982
899
  fetchers?: CustomFetchers;
983
900
  updateConfig?: (config: any) => any;
984
901
  }
985
- //#endregion
986
- //#region ../../node_modules/.pnpm/@pnpm+pnpmfile@1002.1.13_@pnpm+logger@1001.0.1/node_modules/@pnpm/pnpmfile/lib/requireHooks.d.ts
987
902
  type Cook<T extends (...args: any[]) => any> = (arg: Parameters<T>[0], ...otherArgs: any[]) => ReturnType<T>;
988
903
  interface CookedHooks {
989
904
  readPackage?: Array<Cook<Required<Hooks$1>['readPackage']>>;
@@ -996,11 +911,7 @@ interface CookedHooks {
996
911
  fetchers?: CustomFetchers;
997
912
  calculatePnpmfileChecksum?: () => Promise<string>;
998
913
  }
999
- //#endregion
1000
- //#region ../../node_modules/.pnpm/@pnpm+pnpmfile@1002.1.13_@pnpm+logger@1001.0.1/node_modules/@pnpm/pnpmfile/lib/index.d.ts
1001
914
  type Hooks = CookedHooks;
1002
- //#endregion
1003
- //#region ../../node_modules/.pnpm/@pnpm+config@1004.11.0_@pnpm+logger@1001.0.1/node_modules/@pnpm/config/lib/getOptionsFromRootManifest.d.ts
1004
915
  type OptionsFromRootManifest = {
1005
916
  allowedDeprecatedVersions?: AllowedDeprecatedVersions;
1006
917
  allowUnusedPatches?: boolean;
@@ -1018,8 +929,6 @@ type OptionsFromRootManifest = {
1018
929
  allowBuilds?: Record<string, boolean | string>;
1019
930
  requiredScripts?: string[];
1020
931
  } & Pick<PnpmSettings, 'configDependencies' | 'auditConfig' | 'executionEnv' | 'updateConfig'>;
1021
- //#endregion
1022
- //#region ../../node_modules/.pnpm/@pnpm+config@1004.11.0_@pnpm+logger@1001.0.1/node_modules/@pnpm/config/lib/Config.d.ts
1023
932
  interface WantedPackageManager {
1024
933
  name: string;
1025
934
  version?: string;
@@ -1235,23 +1144,15 @@ interface Config extends OptionsFromRootManifest {
1235
1144
  trustPolicyIgnoreAfter?: number;
1236
1145
  auditLevel?: 'low' | 'moderate' | 'high' | 'critical';
1237
1146
  }
1238
- //#endregion
1239
- //#region src/hooks.d.ts
1240
1147
  export declare const hooks: {
1241
1148
  updateConfig(config: Partial<Config>): Partial<Config>;
1242
1149
  };
1243
- //#endregion
1244
- //#region src/meta.d.ts
1245
1150
  export declare const meta: Readonly<{
1246
1151
  buildNumber: number;
1247
1152
  name: string;
1248
1153
  version: string;
1249
1154
  }>;
1250
- //#endregion
1251
- //#region src/PnpmConfig.d.ts
1252
1155
  export type PnpmConfig = Config;
1253
- //#endregion
1254
- //#region src/PnpmUserConfig.d.ts
1255
1156
  export type PnpmUserConfig = Partial<PnpmConfig>;
1256
1157
  /**
1257
1158
  * @namespace
@@ -1270,11 +1171,8 @@ export declare const PnpmUserConfig: Readonly<{
1270
1171
  */
1271
1172
  merge(base: PnpmUserConfig, extension: PnpmUserConfig): PnpmUserConfig;
1272
1173
  }>;
1273
- //#endregion
1274
- //#region src/PnpmHooks.d.ts
1275
1174
  /** Hooks exported by this plugin's pnpmfile. */
1276
1175
  export interface PnpmHooks extends Omit<Hooks, 'updateConfig'> {
1277
1176
  updateConfig?: (config: PnpmUserConfig) => PnpmUserConfig | Promise<PnpmUserConfig>;
1278
1177
  }
1279
- //#endregion
1280
- //# sourceMappingURL=index.d.ts.map
1178
+ export {};
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/internal/betterDefaultConfig.ts
1
+ // src/internal/betterDefaultConfig.ts
2
2
  /**
3
3
  * Curated defaults from [@pnpm/plugin-better-defaults](https://github.com/pnpm/plugin-better-defaults).
4
4
  *
@@ -16,8 +16,7 @@ const betterDefaultConfig = Object.freeze({
16
16
  trustPolicyIgnoreAfter: 10080,
17
17
  verifyDepsBeforeRun: "install"
18
18
  });
19
- //#endregion
20
- //#region src/defaultConfig.ts
19
+ // src/defaultConfig.ts
21
20
  const defaultConfig = Object.freeze({
22
21
  ...betterDefaultConfig,
23
22
  allowBuilds: {
@@ -40,8 +39,7 @@ const defaultConfig = Object.freeze({
40
39
  overrides: {},
41
40
  verifyDepsBeforeRun: "warn"
42
41
  });
43
- //#endregion
44
- //#region src/PnpmUserConfig.ts
42
+ // src/PnpmUserConfig.ts
45
43
  function arrayMerge(base, extension) {
46
44
  const baseArray = base == null ? [] : Array.isArray(base) ? base : [base];
47
45
  const extensionArray = extension == null ? [] : Array.isArray(extension) ? extension : [extension];
@@ -94,19 +92,16 @@ merge(base, extension) {
94
92
  verifyDepsBeforeRun: extension.verifyDepsBeforeRun ?? base.verifyDepsBeforeRun
95
93
  };
96
94
  } });
97
- //#endregion
98
- //#region src/hooks.ts
95
+ // src/hooks.ts
99
96
  const hooks = { updateConfig(config) {
100
97
  return PnpmUserConfig.merge(defaultConfig, config);
101
98
  } };
102
- //#endregion
103
- //#region src/meta.ts
99
+ // src/meta.ts
104
100
  const meta = Object.freeze({
105
- buildNumber: 1790932147,
101
+ buildNumber: 0x6b04cca5,
106
102
  name: "@w5s/pnpm-plugin-config",
107
- version: "1.21.0"
103
+ version: "1.21.1"
108
104
  });
109
- //#endregion
110
105
  export { PnpmUserConfig, defaultConfig, hooks, meta };
111
106
 
112
107
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/internal/betterDefaultConfig.ts","../src/defaultConfig.ts","../src/PnpmUserConfig.ts","../src/hooks.ts","../src/meta.ts"],"sourcesContent":["import type { PnpmUserConfig } from '../PnpmUserConfig.js';\n\n/**\n * Curated defaults from [@pnpm/plugin-better-defaults](https://github.com/pnpm/plugin-better-defaults).\n *\n * @see https://github.com/pnpm/plugin-better-defaults\n */\nexport const betterDefaultConfig = Object.freeze({\n blockExoticSubdeps: true,\n enableGlobalVirtualStore: true,\n enablePrePostScripts: false,\n ignorePatchFailures: false,\n minimumReleaseAge: 1 * 24 * 60, // 1 day in minutes\n optimisticRepeatInstall: true,\n resolutionMode: 'lowest-direct',\n trustPolicy: 'no-downgrade',\n trustPolicyIgnoreAfter: 7 * 24 * 60, // 7 days in minutes\n verifyDepsBeforeRun: 'install',\n} satisfies PnpmUserConfig);\n","import type { PnpmUserConfig } from './PnpmUserConfig.js';\n\nimport { betterDefaultConfig } from './internal/betterDefaultConfig.js';\n\n// Opinionated defaults inspired by @pnpm/plugin-better-defaults, extended with org-specific settings.\nexport const defaultConfig = Object.freeze({\n ...betterDefaultConfig,\n allowBuilds: {\n '@parcel/watcher': true,\n '@swc/core': true,\n 'core-js': true,\n 'core-js-pure': true,\n 'electron': true,\n 'es5-ext': true,\n 'esbuild': true,\n 'lefthook': true,\n 'nx': true,\n 'protobufjs': true,\n 're2': true,\n 'sharp': true,\n 'sqlite3': true,\n },\n enableGlobalVirtualStore: false, // FIXME: this does not work\n minimumReleaseAgeExclude: ['@w5s/*'],\n overrides: {},\n verifyDepsBeforeRun: 'warn', // FIXME: Causes infinite loop with prepare and pnpm run inside prepare/postinstall\n} satisfies PnpmUserConfig);\n","import type { PnpmConfig } from './PnpmConfig.js';\n\nexport type PnpmUserConfig = Partial<PnpmConfig>;\n\nfunction arrayMerge<T>(\n base: ReadonlyArray<T> | T | undefined,\n extension: ReadonlyArray<T> | T | undefined,\n): Array<T> | undefined {\n const baseArray = base == null ? [] : Array.isArray(base) ? base : [base];\n const extensionArray = extension == null ? [] : Array.isArray(extension) ? extension : [extension];\n return baseArray.length === 0 && extensionArray.length === 0 ? undefined : [...new Set([...baseArray, ...extensionArray])];\n}\n\nfunction objectMergeDefault<P extends string, V extends object>(\n base: Partial<Record<P, V>>,\n extension: Partial<Record<P, V>>,\n property: P,\n): undefined | V {\n return {\n ...base[property],\n ...extension[property],\n };\n}\n\nfunction objectMergeForce<P extends string, V extends object>(\n base: Partial<Record<P, V>>,\n extension: Partial<Record<P, V>>,\n property: P,\n): undefined | V {\n return {\n ...extension[property],\n ...base[property],\n };\n}\n\n/**\n * @namespace\n */\nexport const PnpmUserConfig = Object.freeze({\n /**\n * Merge two configs immutably. `extension` values win; `base` fills in\n * undefined slots. `allowBuilds` and `overrides` are deep-merged (extension\n * entries win). `minimumReleaseAgeExclude`, `hoistPattern`, and\n * `publicHoistPattern` are merged as deduplicated unions of both arrays\n * (base first, extension second — so pnpm `!`-negation entries in extension\n * can exclude org defaults).\n *\n * @param base\n * @param extension\n */\n merge(base: PnpmUserConfig, extension: PnpmUserConfig): PnpmUserConfig {\n return {\n ...extension,\n allowBuilds: objectMergeForce(base, extension, 'allowBuilds'),\n blockExoticSubdeps: extension.blockExoticSubdeps ?? base.blockExoticSubdeps,\n enableGlobalVirtualStore: extension.enableGlobalVirtualStore ?? base.enableGlobalVirtualStore,\n enablePrePostScripts: extension.enablePrePostScripts ?? base.enablePrePostScripts,\n hoistPattern: arrayMerge(base.hoistPattern, extension.hoistPattern),\n ignorePatchFailures: extension.ignorePatchFailures ?? base.ignorePatchFailures,\n minimumReleaseAge: extension.minimumReleaseAge ?? base.minimumReleaseAge,\n minimumReleaseAgeExclude: arrayMerge(\n base.minimumReleaseAgeExclude,\n extension.minimumReleaseAgeExclude,\n ),\n optimisticRepeatInstall: extension.optimisticRepeatInstall ?? base.optimisticRepeatInstall,\n overrides: objectMergeDefault(base, extension, 'overrides'),\n publicHoistPattern: arrayMerge(\n base.publicHoistPattern,\n extension.publicHoistPattern,\n ),\n resolutionMode: extension.resolutionMode ?? base.resolutionMode,\n trustPolicy: extension.trustPolicy ?? base.trustPolicy,\n trustPolicyIgnoreAfter: extension.trustPolicyIgnoreAfter ?? base.trustPolicyIgnoreAfter,\n verifyDepsBeforeRun: extension.verifyDepsBeforeRun ?? base.verifyDepsBeforeRun,\n } as PnpmUserConfig;\n },\n});\n","import type { PnpmHooks } from './PnpmHooks.js';\n\nimport { defaultConfig } from './defaultConfig.js';\nimport { PnpmUserConfig } from './PnpmUserConfig.js';\n\nexport const hooks = {\n updateConfig(config) {\n return PnpmUserConfig.merge(defaultConfig, config);\n },\n} satisfies PnpmHooks;\n","export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n buildNumber: (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n});\n"],"mappings":";;;;;;AAOA,MAAa,sBAAsB,OAAO,OAAO;CAC/C,oBAAoB;CACpB,0BAA0B;CAC1B,sBAAsB;CACtB,qBAAqB;CACrB,mBAAmB;CACnB,yBAAyB;CACzB,gBAAgB;CAChB,aAAa;CACb,wBAAwB;CACxB,qB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wBACZ;EACA,yBAAyB,UAAU,2BAA2B,KAAK;EACnE,WAAW,mBAAmB,MAAM,WAAW,WAAW;EAC1D,oBAAoB,WAClB,KAAK,oBACL,UAAU,kBACZ;EACA,gBAAgB,UAAU,kBAAkB,KAAK;EACjD,aAAa,UAAU,eAAe,KAAK;EAC3C,wBAAwB,UAAU,0BAA0B,KAAK;EACjE,qBAAqB,UAAU,uBAAuB,KAAK;CAC7D;AACF,EACF,CAAC;;;ACvED,MAAa,QAAQ,EACnB,aAAa,QAAQ;CACnB,OAAO,eAAe,MAAM,eAAe,MAAM;AACnD,EACF;;;ACTA,MAAa,OAAO,OAAO,OAAO;CAEhC,aAAA;CAEA,MAAA;CAEA,SAAA;AACF,CAAC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/internal/betterDefaultConfig.ts","../src/defaultConfig.ts","../src/PnpmUserConfig.ts","../src/hooks.ts","../src/meta.ts"],"sourcesContent":["import type { PnpmUserConfig } from '../PnpmUserConfig.js';\n\n/**\n * Curated defaults from [@pnpm/plugin-better-defaults](https://github.com/pnpm/plugin-better-defaults).\n *\n * @see https://github.com/pnpm/plugin-better-defaults\n */\nexport const betterDefaultConfig = Object.freeze({\n blockExoticSubdeps: true,\n enableGlobalVirtualStore: true,\n enablePrePostScripts: false,\n ignorePatchFailures: false,\n minimumReleaseAge: 1 * 24 * 60, // 1 day in minutes\n optimisticRepeatInstall: true,\n resolutionMode: 'lowest-direct',\n trustPolicy: 'no-downgrade',\n trustPolicyIgnoreAfter: 7 * 24 * 60, // 7 days in minutes\n verifyDepsBeforeRun: 'install',\n} satisfies PnpmUserConfig);\n","import type { PnpmUserConfig } from './PnpmUserConfig.js';\n\nimport { betterDefaultConfig } from './internal/betterDefaultConfig.js';\n\n// Opinionated defaults inspired by @pnpm/plugin-better-defaults, extended with org-specific settings.\nexport const defaultConfig = Object.freeze({\n ...betterDefaultConfig,\n allowBuilds: {\n '@parcel/watcher': true,\n '@swc/core': true,\n 'core-js': true,\n 'core-js-pure': true,\n 'electron': true,\n 'es5-ext': true,\n 'esbuild': true,\n 'lefthook': true,\n 'nx': true,\n 'protobufjs': true,\n 're2': true,\n 'sharp': true,\n 'sqlite3': true,\n },\n enableGlobalVirtualStore: false, // FIXME: this does not work\n minimumReleaseAgeExclude: ['@w5s/*'],\n overrides: {},\n verifyDepsBeforeRun: 'warn', // FIXME: Causes infinite loop with prepare and pnpm run inside prepare/postinstall\n} satisfies PnpmUserConfig);\n","import type { PnpmConfig } from './PnpmConfig.js';\n\nexport type PnpmUserConfig = Partial<PnpmConfig>;\n\nfunction arrayMerge<T>(\n base: ReadonlyArray<T> | T | undefined,\n extension: ReadonlyArray<T> | T | undefined,\n): Array<T> | undefined {\n const baseArray = base == null ? [] : Array.isArray(base) ? base : [base];\n const extensionArray = extension == null ? [] : Array.isArray(extension) ? extension : [extension];\n return baseArray.length === 0 && extensionArray.length === 0 ? undefined : [...new Set([...baseArray, ...extensionArray])];\n}\n\nfunction objectMergeDefault<P extends string, V extends object>(\n base: Partial<Record<P, V>>,\n extension: Partial<Record<P, V>>,\n property: P,\n): undefined | V {\n return {\n ...base[property],\n ...extension[property],\n };\n}\n\nfunction objectMergeForce<P extends string, V extends object>(\n base: Partial<Record<P, V>>,\n extension: Partial<Record<P, V>>,\n property: P,\n): undefined | V {\n return {\n ...extension[property],\n ...base[property],\n };\n}\n\n/**\n * @namespace\n */\nexport const PnpmUserConfig = Object.freeze({\n /**\n * Merge two configs immutably. `extension` values win; `base` fills in\n * undefined slots. `allowBuilds` and `overrides` are deep-merged (extension\n * entries win). `minimumReleaseAgeExclude`, `hoistPattern`, and\n * `publicHoistPattern` are merged as deduplicated unions of both arrays\n * (base first, extension second — so pnpm `!`-negation entries in extension\n * can exclude org defaults).\n *\n * @param base\n * @param extension\n */\n merge(base: PnpmUserConfig, extension: PnpmUserConfig): PnpmUserConfig {\n return {\n ...extension,\n allowBuilds: objectMergeForce(base, extension, 'allowBuilds'),\n blockExoticSubdeps: extension.blockExoticSubdeps ?? base.blockExoticSubdeps,\n enableGlobalVirtualStore: extension.enableGlobalVirtualStore ?? base.enableGlobalVirtualStore,\n enablePrePostScripts: extension.enablePrePostScripts ?? base.enablePrePostScripts,\n hoistPattern: arrayMerge(base.hoistPattern, extension.hoistPattern),\n ignorePatchFailures: extension.ignorePatchFailures ?? base.ignorePatchFailures,\n minimumReleaseAge: extension.minimumReleaseAge ?? base.minimumReleaseAge,\n minimumReleaseAgeExclude: arrayMerge(\n base.minimumReleaseAgeExclude,\n extension.minimumReleaseAgeExclude,\n ),\n optimisticRepeatInstall: extension.optimisticRepeatInstall ?? base.optimisticRepeatInstall,\n overrides: objectMergeDefault(base, extension, 'overrides'),\n publicHoistPattern: arrayMerge(\n base.publicHoistPattern,\n extension.publicHoistPattern,\n ),\n resolutionMode: extension.resolutionMode ?? base.resolutionMode,\n trustPolicy: extension.trustPolicy ?? base.trustPolicy,\n trustPolicyIgnoreAfter: extension.trustPolicyIgnoreAfter ?? base.trustPolicyIgnoreAfter,\n verifyDepsBeforeRun: extension.verifyDepsBeforeRun ?? base.verifyDepsBeforeRun,\n } as PnpmUserConfig;\n },\n});\n","import type { PnpmHooks } from './PnpmHooks.js';\n\nimport { defaultConfig } from './defaultConfig.js';\nimport { PnpmUserConfig } from './PnpmUserConfig.js';\n\nexport const hooks = {\n updateConfig(config) {\n return PnpmUserConfig.merge(defaultConfig, config);\n },\n} satisfies PnpmHooks;\n","export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n buildNumber: (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n});\n"],"mappings":";;;;;;AAOA,MAAa,sBAAsB,OAAO,OAAO;CAC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AK,cAAc,UAAU,YAAY;EAClE,qBAAqB,UAAU,uBAAuB,KAAK;EAC3D,mBAAmB,UAAU,qBAAqB,KAAK;EACvD,0BAA0B,WACxB,KAAK,0BACL,UAAU,wBACZ;EACA,yBAAyB,UAAU,2BAA2B,KAAK;EACnE,WAAW,mBAAmB,MAAM,WAAW,WAAW;EAC1D,oBAAoB,WAClB,KAAK,oBACL,UAAU,kBACZ;EACA,gBAAgB,UAAU,kBAAkB,KAAK;EACjD,aAAa,UAAU,eAAe,KAAK;EAC3C,wBAAwB,UAAU,0BAA0B,KAAK;EACjE,qBAAqB,UAAU,uBAAuB,KAAK;CAC7D;AACF,EACF,CAAC;;ACvED,MAAa,QAAQ,EACnB,aAAa,QAAQ;CACnB,OAAO,eAAe,MAAM,eAAe,MAAM;AACnD,EACF;;ACTA,MAAa,OAAO,OAAO,OAAO;CAEhC,aAAA;CAEA,MAAA;CAEA,SAAA;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/pnpm-plugin-config",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "description": "Shared pnpm configuration plugin with org defaults",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "7ea7f0176cdd3156d9b24af722a38b280aa99427"
44
+ "gitHead": "8c839f967fbc4477af3e767c4ecfa2d8a693eda0"
45
45
  }