@reliverse/dler 1.7.139 → 1.7.141
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/bin/impl/config/constants.d.ts +1 -1
- package/bin/impl/config/constants.js +1 -1
- package/bin/impl/config/prepare.js +2 -2
- package/bin/impl/providers/better-t-stack/types.d.ts +3 -3
- package/bin/impl/providers/reliverse-stack/rs-impl.d.ts +2 -2
- package/bin/impl/update/impl.d.ts +8 -30
- package/bin/impl/update/impl.js +88 -298
- package/bin/impl/update/utils.d.ts +5 -52
- package/bin/impl/update/utils.js +97 -655
- package/bin/mod.d.ts +3 -3
- package/bin/mod.js +4 -30
- package/package.json +2 -1
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { type PackageManager } from "../utils/dependencies/getUserPkgManager.js";
|
|
2
|
-
export interface UpgradeResult {
|
|
3
|
-
tool: string;
|
|
4
|
-
status: "upgraded" | "up-to-date" | "not-found" | "error";
|
|
5
|
-
message?: string;
|
|
6
|
-
}
|
|
7
2
|
export interface UpdateResult {
|
|
8
3
|
package: string;
|
|
9
4
|
currentVersion: string;
|
|
@@ -22,11 +17,6 @@ export interface PackageCheckOptions {
|
|
|
22
17
|
savePrefix: string;
|
|
23
18
|
concurrency: number;
|
|
24
19
|
}
|
|
25
|
-
export declare const versionCache: Map<string, {
|
|
26
|
-
version: string;
|
|
27
|
-
timestamp: number;
|
|
28
|
-
}>;
|
|
29
|
-
export declare const CACHE_TTL: number;
|
|
30
20
|
/**
|
|
31
21
|
* Check if a dependency is an npm alias (e.g., "npm:package-name@version")
|
|
32
22
|
*/
|
|
@@ -43,31 +33,22 @@ export declare function isNonSemverSpecifier(versionSpec: string): boolean;
|
|
|
43
33
|
*/
|
|
44
34
|
export declare function isSemverCompatible(currentVersionRange: string, latestVersion: string): boolean;
|
|
45
35
|
/**
|
|
46
|
-
* Collect dependencies from package.json
|
|
36
|
+
* Collect ALL dependencies from package.json.
|
|
47
37
|
* Returns a map of dependency name to its version and all locations where it appears.
|
|
48
38
|
*/
|
|
49
|
-
export declare function collectTargetDependencies(pkg: any
|
|
39
|
+
export declare function collectTargetDependencies(pkg: any): {
|
|
50
40
|
map: Record<string, DependencyInfo>;
|
|
51
41
|
};
|
|
52
42
|
/**
|
|
53
43
|
* Apply a version update into all relevant places in package.json for a dependency.
|
|
54
44
|
*/
|
|
55
45
|
export declare function applyVersionUpdate(pkg: any, depName: string, newVersion: string, locations: Set<string>): void;
|
|
56
|
-
export declare function findWorkspacePackageJsons(cwd: string): Promise<string[]>;
|
|
57
|
-
/**
|
|
58
|
-
* Check if we're in a monorepo by detecting workspace configuration
|
|
59
|
-
*/
|
|
60
|
-
export declare function isMonorepo(cwd: string): Promise<boolean>;
|
|
61
|
-
/**
|
|
62
|
-
* Recursively find ALL package.json files in the directory tree
|
|
63
|
-
*/
|
|
64
|
-
export declare function findAllPackageJsons(cwd: string): Promise<string[]>;
|
|
65
46
|
/**
|
|
66
47
|
* Fallback function to fetch package version directly from npm registry
|
|
67
48
|
*/
|
|
68
49
|
export declare function fetchVersionFromRegistry(packageName: string): Promise<string>;
|
|
69
50
|
/**
|
|
70
|
-
* Get latest version
|
|
51
|
+
* Get latest version of a package
|
|
71
52
|
*/
|
|
72
53
|
export declare function getLatestVersion(packageName: string): Promise<string>;
|
|
73
54
|
/**
|
|
@@ -81,41 +62,21 @@ export declare function getLatestVersion(packageName: string): Promise<string>;
|
|
|
81
62
|
*/
|
|
82
63
|
export declare function checkPackageUpdate(packageName: string, versionSpec: string, locations: Set<string>, options: PackageCheckOptions): Promise<UpdateResult>;
|
|
83
64
|
/**
|
|
84
|
-
* Filter and prepare dependencies for updating
|
|
65
|
+
* Filter and prepare dependencies for updating with glob pattern support
|
|
85
66
|
*/
|
|
86
67
|
export declare function prepareDependenciesForUpdate(allDepsMap: Record<string, DependencyInfo>, args: any): string[];
|
|
87
68
|
/**
|
|
88
69
|
* Update a single package.json file with new dependency versions
|
|
89
70
|
*/
|
|
90
71
|
export declare function updatePackageJsonFile(packageJsonPath: string, dependencies: Record<string, DependencyInfo>, updatesToApply: UpdateResult[], savePrefix: string): Promise<number>;
|
|
91
|
-
/**
|
|
92
|
-
* Update dependencies across all workspace packages
|
|
93
|
-
*/
|
|
94
|
-
export declare function updateWorkspacePackages(workspacePaths: string[], args: any, options: PackageCheckOptions): Promise<number>;
|
|
95
72
|
/**
|
|
96
73
|
* Display update results in a formatted way
|
|
97
74
|
*/
|
|
98
75
|
export declare function displayUpdateResults(results: UpdateResult[]): void;
|
|
99
|
-
/**
|
|
100
|
-
* Get globally installed packages for different package managers
|
|
101
|
-
*/
|
|
102
|
-
export declare function getGlobalPackages(packageManager: string): Promise<Record<string, string>>;
|
|
103
76
|
/**
|
|
104
77
|
* Run install command for the detected package manager
|
|
105
78
|
*/
|
|
106
|
-
export declare function runInstallCommand(packageManager: any
|
|
107
|
-
/**
|
|
108
|
-
* Run install command with filter arguments for monorepo support
|
|
109
|
-
*/
|
|
110
|
-
export declare function runInstallCommandWithFilter(packageManager: any, linker?: string, filterArgs?: string[]): Promise<void>;
|
|
111
|
-
/**
|
|
112
|
-
* Update global packages for different package managers
|
|
113
|
-
*/
|
|
114
|
-
export declare function updateGlobalPackage(packageManager: string, packageName: string): Promise<boolean>;
|
|
115
|
-
/**
|
|
116
|
-
* Handle global package updates
|
|
117
|
-
*/
|
|
118
|
-
export declare function handleGlobalUpdates(args: any): Promise<void>;
|
|
79
|
+
export declare function runInstallCommand(packageManager: any): Promise<void>;
|
|
119
80
|
export declare function getPmOptions(): Promise<{
|
|
120
81
|
pmOptions: {
|
|
121
82
|
label: string;
|
|
@@ -124,11 +85,3 @@ export declare function getPmOptions(): Promise<{
|
|
|
124
85
|
}[];
|
|
125
86
|
defaultValue: any;
|
|
126
87
|
}>;
|
|
127
|
-
export declare function upgradeDlerLocal(): Promise<UpgradeResult>;
|
|
128
|
-
export declare function upgradeDlerGlobal(): Promise<UpgradeResult>;
|
|
129
|
-
export declare function upgradeGit(): Promise<UpgradeResult>;
|
|
130
|
-
export declare function upgradeNode(): Promise<UpgradeResult>;
|
|
131
|
-
export declare function upgradeNpm(): Promise<UpgradeResult>;
|
|
132
|
-
export declare function upgradeBun(): Promise<UpgradeResult>;
|
|
133
|
-
export declare function upgradeYarn(): Promise<UpgradeResult>;
|
|
134
|
-
export declare function upgradePnpm(): Promise<UpgradeResult>;
|