@git.zone/cli 2.19.1 → 2.19.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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@git.zone/cli',
6
- version: '2.19.1',
6
+ version: '2.19.2',
7
7
  description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxlQUFlO0lBQ3JCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSwrTEFBK0w7Q0FDN00sQ0FBQSJ9
@@ -1,12 +1,17 @@
1
1
  export interface IInstalledPackage {
2
2
  name: string;
3
3
  version: string;
4
+ globalDir?: string;
5
+ packagePath?: string;
6
+ legacy?: boolean;
4
7
  }
5
8
  export interface IPackageUpdateInfo {
6
9
  name: string;
7
10
  currentVersion: string;
8
11
  latestVersion: string;
9
12
  needsUpdate: boolean;
13
+ needsMigration?: boolean;
14
+ globalDir?: string;
10
15
  }
11
16
  export interface IPackageManagerInfo {
12
17
  available: boolean;
@@ -14,14 +19,44 @@ export interface IPackageManagerInfo {
14
19
  latestVersion: string | null;
15
20
  needsUpdate: boolean;
16
21
  }
22
+ export interface ILegacyGlobalRootInfo {
23
+ globalDir: string;
24
+ packages: IInstalledPackage[];
25
+ unmanagedPackageNames: string[];
26
+ safeToDelete: boolean;
27
+ }
28
+ export interface ILegacyCleanupResult {
29
+ globalDir: string;
30
+ deleted: boolean;
31
+ reason?: string;
32
+ }
33
+ export interface IShimSyncResult {
34
+ name: string;
35
+ action: "updated" | "removed" | "skipped";
36
+ reason?: string;
37
+ }
17
38
  export declare class PackageManagerUtil {
18
39
  private shell;
40
+ private pnpmCommand;
19
41
  detectPnpm(): Promise<boolean>;
20
42
  getPnpmVersionInfo(): Promise<IPackageManagerInfo>;
21
43
  getInstalledPackages(): Promise<IInstalledPackage[]>;
44
+ getLegacyGlobalRoots(): Promise<ILegacyGlobalRootInfo[]>;
45
+ cleanupLegacyGlobalRoots(): Promise<ILegacyCleanupResult[]>;
46
+ syncCurrentGlobalShims(): Promise<IShimSyncResult[]>;
22
47
  getLatestVersion(packageName: string, registries?: string[]): Promise<string | null>;
23
- installLatest(packageName: string): Promise<boolean>;
48
+ installLatest(packageName: string, version?: string): Promise<boolean>;
49
+ updatePnpm(targetVersion: string): Promise<boolean>;
24
50
  isNewerVersion(current: string, latest: string): boolean;
25
51
  private getCurrentPnpmVersion;
52
+ private getPnpmCommand;
53
+ private execPnpmSilent;
54
+ private getPnpmListProjects;
55
+ private getCurrentGlobalDir;
56
+ private getCurrentInstalledPackages;
57
+ private inspectGlobalRoot;
58
+ private getInstalledPackageVersion;
59
+ private getShimReferences;
60
+ private getPnpmShimDirs;
26
61
  private getLatestVersionFromRegistry;
27
62
  }