@reliverse/dler 1.7.150 → 1.7.151
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PROJECT_ROOT: string;
|
|
2
|
-
export declare const cliVersion = "1.7.
|
|
2
|
+
export declare const cliVersion = "1.7.151";
|
|
3
3
|
export declare const cliName = "@reliverse/rse";
|
|
4
4
|
export declare const rseName = "@reliverse/rse";
|
|
5
5
|
export declare const dlerName = "@reliverse/dler";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "@reliverse/pathkit";
|
|
3
3
|
export const PROJECT_ROOT = path.resolve(process.cwd());
|
|
4
|
-
const version = "1.7.
|
|
4
|
+
const version = "1.7.151";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -46,8 +46,8 @@ export declare const FrontendSchema: z.ZodEnum<{
|
|
|
46
46
|
export type Frontend = z.infer<typeof FrontendSchema>;
|
|
47
47
|
export declare const AddonsSchema: z.ZodEnum<{
|
|
48
48
|
none: "none";
|
|
49
|
-
tauri: "tauri";
|
|
50
49
|
biome: "biome";
|
|
50
|
+
tauri: "tauri";
|
|
51
51
|
starlight: "starlight";
|
|
52
52
|
turborepo: "turborepo";
|
|
53
53
|
pwa: "pwa";
|
package/bin/impl/update/impl.js
CHANGED
|
@@ -7,6 +7,7 @@ import { detectPackageManager } from "../utils/pm/pm-detect.js";
|
|
|
7
7
|
import {
|
|
8
8
|
checkPackageUpdate,
|
|
9
9
|
collectTargetDependencies,
|
|
10
|
+
isNonSemverSpecifier,
|
|
10
11
|
prepareDependenciesForUpdate,
|
|
11
12
|
runInstallCommand,
|
|
12
13
|
updatePackageJsonFile
|
|
@@ -114,7 +115,14 @@ export async function updateAllPackageJsonFiles(packageJsonFiles, toUpdate, save
|
|
|
114
115
|
try {
|
|
115
116
|
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf8"));
|
|
116
117
|
const { map: fileDepsMap } = collectTargetDependencies(packageJson);
|
|
117
|
-
const fileSpecificUpdates = toUpdate.filter((update) =>
|
|
118
|
+
const fileSpecificUpdates = toUpdate.filter((update) => {
|
|
119
|
+
const depInfo = fileDepsMap[update.package];
|
|
120
|
+
if (!depInfo) return false;
|
|
121
|
+
if (isNonSemverSpecifier(depInfo.versionSpec)) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
});
|
|
118
126
|
if (fileSpecificUpdates.length > 0) {
|
|
119
127
|
const updated = await updatePackageJsonFile(
|
|
120
128
|
packageJsonPath,
|
package/bin/impl/update/utils.js
CHANGED
|
@@ -270,9 +270,6 @@ export async function updatePackageJsonFile(packageJsonPath, dependencies, updat
|
|
|
270
270
|
const depInfo = dependencies[update.package];
|
|
271
271
|
if (!depInfo) continue;
|
|
272
272
|
const locations = depInfo.locations || /* @__PURE__ */ new Set();
|
|
273
|
-
if (isNonSemverSpecifier(depInfo.versionSpec)) {
|
|
274
|
-
continue;
|
|
275
|
-
}
|
|
276
273
|
const shouldIgnore = Array.from(locations).some(
|
|
277
274
|
(location) => fieldsToIgnore.includes(location)
|
|
278
275
|
);
|