@reliverse/dler 1.7.149 → 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.
@@ -146,8 +146,8 @@ export declare const optionsSchema: z.ZodObject<{
146
146
  cwd: z.ZodString;
147
147
  config: z.ZodOptional<z.ZodString>;
148
148
  database: z.ZodOptional<z.ZodEnum<{
149
- mysql: "mysql";
150
149
  sqlite: "sqlite";
150
+ mysql: "mysql";
151
151
  mongodb: "mongodb";
152
152
  postgres: "postgres";
153
153
  mssql: "mssql";
@@ -165,7 +165,7 @@ export declare const optionsSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export declare const outroText = "\uD83E\uDD73 All Done, Happy Hacking!";
167
167
  export declare function getLatestNpmVersion(packageName: string): Promise<string>;
168
- export declare function getPackageManager(): Promise<"npm" | "pnpm" | "yarn" | "bun">;
168
+ export declare function getPackageManager(): Promise<"bun" | "npm" | "yarn" | "pnpm">;
169
169
  export declare function getEnvFiles(cwd: string): Promise<string[]>;
170
170
  export declare function updateEnvs({ envs, files, isCommented, }: {
171
171
  /**
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_ROOT: string;
2
- export declare const cliVersion = "1.7.149";
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.149";
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";
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const DatabaseSchema: z.ZodEnum<{
3
3
  none: "none";
4
- mysql: "mysql";
5
4
  sqlite: "sqlite";
5
+ mysql: "mysql";
6
6
  mongodb: "mongodb";
7
7
  postgres: "postgres";
8
8
  }>;
@@ -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";
@@ -61,9 +61,9 @@ export declare const ExamplesSchema: z.ZodEnum<{
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
63
63
  export declare const PackageManagerSchema: z.ZodEnum<{
64
+ bun: "bun";
64
65
  npm: "npm";
65
66
  pnpm: "pnpm";
66
- bun: "bun";
67
67
  }>;
68
68
  export type PackageManager = z.infer<typeof PackageManagerSchema>;
69
69
  export declare const DatabaseSetupSchema: z.ZodEnum<{
@@ -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) => fileDepsMap[update.package]);
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,
@@ -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
  );
package/package.json CHANGED
@@ -123,7 +123,7 @@
123
123
  "license": "MIT",
124
124
  "name": "@reliverse/dler",
125
125
  "type": "module",
126
- "version": "1.7.149",
126
+ "version": "1.7.151",
127
127
  "author": "reliverse",
128
128
  "bugs": {
129
129
  "email": "blefnk@gmail.com",