@reliverse/dler 1.7.144 → 1.7.145

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/README.md CHANGED
@@ -4,6 +4,20 @@
4
4
 
5
5
  [Sponsor](https://github.com/sponsors/blefnk) — [Discord](https://discord.gg/Pb8uKbwpsJ) — [GitHub](https://github.com/reliverse/dler) — [NPM](https://npmjs.com/@reliverse/dler) — [Introduction](https://blefnk.reliverse.org/blog/articles/package-managers)
6
6
 
7
+ ## Installation
8
+
9
+ ```bash
10
+ bun add @reliverse/dler
11
+ ```
12
+
13
+ ## Usage Example
14
+
15
+ ```ts
16
+ import { installDependencies } from "@reliverse/dler";
17
+
18
+ await installDependencies({ cwd: ".", silent: true, packageManager: "bun" });
19
+ ```
20
+
7
21
  ## Documentation
8
22
 
9
23
  Visit [docs.reliverse.org/libraries/dler](https://docs.reliverse.org/libraries/dler) to learn how to install and use `@reliverse/dler` library.
@@ -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<"bun" | "npm" | "yarn" | "pnpm">;
168
+ export declare function getPackageManager(): Promise<"npm" | "pnpm" | "yarn" | "bun">;
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.144";
2
+ export declare const cliVersion = "1.7.145";
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.144";
4
+ const version = "1.7.145";
5
5
  export const cliVersion = version;
6
6
  export const cliName = "@reliverse/rse";
7
7
  export const rseName = "@reliverse/rse";
@@ -1,41 +1,41 @@
1
1
  import { z } from "zod";
2
2
  export declare const DatabaseSchema: z.ZodEnum<{
3
- none: "none";
4
3
  mysql: "mysql";
5
4
  sqlite: "sqlite";
6
5
  mongodb: "mongodb";
6
+ none: "none";
7
7
  postgres: "postgres";
8
8
  }>;
9
9
  export type Database = z.infer<typeof DatabaseSchema>;
10
10
  export declare const ORMSchema: z.ZodEnum<{
11
+ mongoose: "mongoose";
11
12
  none: "none";
12
13
  drizzle: "drizzle";
13
14
  prisma: "prisma";
14
- mongoose: "mongoose";
15
15
  }>;
16
16
  export type ORM = z.infer<typeof ORMSchema>;
17
17
  export declare const BackendSchema: z.ZodEnum<{
18
- none: "none";
19
18
  hono: "hono";
19
+ none: "none";
20
20
  next: "next";
21
+ convex: "convex";
21
22
  express: "express";
22
23
  fastify: "fastify";
23
- convex: "convex";
24
24
  elysia: "elysia";
25
25
  }>;
26
26
  export type Backend = z.infer<typeof BackendSchema>;
27
27
  export declare const RuntimeSchema: z.ZodEnum<{
28
- bun: "bun";
29
28
  none: "none";
29
+ bun: "bun";
30
30
  node: "node";
31
31
  workers: "workers";
32
32
  }>;
33
33
  export type Runtime = z.infer<typeof RuntimeSchema>;
34
34
  export declare const FrontendSchema: z.ZodEnum<{
35
- none: "none";
36
35
  svelte: "svelte";
37
36
  nuxt: "nuxt";
38
37
  solid: "solid";
38
+ none: "none";
39
39
  next: "next";
40
40
  "react-router": "react-router";
41
41
  "tanstack-router": "tanstack-router";
@@ -45,25 +45,25 @@ export declare const FrontendSchema: z.ZodEnum<{
45
45
  }>;
46
46
  export type Frontend = z.infer<typeof FrontendSchema>;
47
47
  export declare const AddonsSchema: z.ZodEnum<{
48
- biome: "biome";
49
- none: "none";
50
48
  tauri: "tauri";
49
+ biome: "biome";
51
50
  starlight: "starlight";
51
+ none: "none";
52
52
  turborepo: "turborepo";
53
- pwa: "pwa";
54
53
  husky: "husky";
54
+ pwa: "pwa";
55
55
  }>;
56
56
  export type Addons = z.infer<typeof AddonsSchema>;
57
57
  export declare const ExamplesSchema: z.ZodEnum<{
58
58
  none: "none";
59
- ai: "ai";
60
59
  todo: "todo";
60
+ ai: "ai";
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
63
63
  export declare const PackageManagerSchema: z.ZodEnum<{
64
- bun: "bun";
65
64
  npm: "npm";
66
65
  pnpm: "pnpm";
66
+ bun: "bun";
67
67
  }>;
68
68
  export type PackageManager = z.infer<typeof PackageManagerSchema>;
69
69
  export declare const DatabaseSetupSchema: z.ZodEnum<{
@@ -267,7 +267,12 @@ export async function updatePackageJsonFile(packageJsonPath, dependencies, updat
267
267
  const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf8"));
268
268
  const updatedPackageJson = { ...packageJson };
269
269
  for (const update of updatesToApply) {
270
- const locations = dependencies[update.package]?.locations || /* @__PURE__ */ new Set();
270
+ const depInfo = dependencies[update.package];
271
+ if (!depInfo) continue;
272
+ const locations = depInfo.locations || /* @__PURE__ */ new Set();
273
+ if (isNonSemverSpecifier(depInfo.versionSpec)) {
274
+ continue;
275
+ }
271
276
  const shouldIgnore = Array.from(locations).some(
272
277
  (location) => fieldsToIgnore.includes(location)
273
278
  );
@@ -1,29 +0,0 @@
1
- import type { ReliverseMemory } from "./schemaMemory";
2
- export declare const OctokitWithRest: typeof import("@octokit/core").Octokit & (new (...args: any[]) => import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types").RestEndpointMethods & import("@octokit/plugin-rest-endpoint-methods").Api & {
3
- paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
4
- }) & import("@octokit/core/dist-types/types").Constructor<import("@octokit/plugin-rest-endpoint-methods").Api>;
5
- export declare const octokitUserAgent: string;
6
- export type InstanceGithub = InstanceType<typeof OctokitWithRest>;
7
- /**
8
- * Ensures a valid GitHub token is available in rse's memory.
9
- *
10
- * If a token is already stored in memory, this function validates it by fetching the
11
- * authenticated user's information. If the token is missing or invalid, the user is prompted
12
- * to input one. The new token is then saved persistently.
13
- *
14
- * @param memory - The rse memory object.
15
- * @param maskInput - A flag or the string "prompt" that determines if input should be masked.
16
- * @returns The valid GitHub token.
17
- */
18
- export declare function ensureGithubToken(memory: ReliverseMemory, maskInput: "prompt" | boolean): Promise<string>;
19
- /**
20
- * Initializes a GitHub SDK instance and returns the GitHub token along with the Octokit instance.
21
- *
22
- * This function is analogous to the Vercel SDK init function; it ensures that a valid GitHub token is
23
- * available (prompting for one if necessary), initializes Octokit with the token, and returns both.
24
- *
25
- * @param memory - The rse memory object.
26
- * @param maskInput - A flag or "prompt" to determine if the token input should be masked.
27
- * @returns A tuple containing the GitHub token and works as the wrapper for the Octokit instance.
28
- */
29
- export declare function initGithubSDK(memory: ReliverseMemory, frontendUsername: string, maskInput: "prompt" | boolean): Promise<[string, InstanceGithub, string]>;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "dependencies": {
3
- "@ai-sdk/openai": "^2.0.23",
3
+ "@ai-sdk/openai": "^2.0.49",
4
4
  "@babel/preset-react": "^7.27.1",
5
5
  "@babel/preset-typescript": "^7.27.1",
6
- "@hookform/resolvers": "^5.2.1",
7
- "@libsql/client": "^0.15.14",
8
- "@mendable/firecrawl-js": "^4.3.3",
6
+ "@hookform/resolvers": "^5.2.2",
7
+ "@libsql/client": "^0.15.15",
8
+ "@mendable/firecrawl-js": "^4.3.8",
9
9
  "@mrleebo/prisma-ast": "^0.13.0",
10
- "@octokit/plugin-rest-endpoint-methods": "^16.0.0",
11
- "@octokit/request-error": "^7.0.0",
10
+ "@octokit/plugin-rest-endpoint-methods": "^16.1.0",
11
+ "@octokit/request-error": "^7.0.1",
12
12
  "@octokit/rest": "^22.0.0",
13
13
  "@radix-ui/react-label": "^2.1.7",
14
14
  "@radix-ui/react-select": "^2.2.6",
@@ -20,26 +20,26 @@
20
20
  "@reliverse/relifso": "^1.4.5",
21
21
  "@reliverse/relinka": "^1.6.1",
22
22
  "@reliverse/rematch": "^1.1.0",
23
- "@reliverse/rempts": "^1.7.64",
23
+ "@reliverse/rempts": "^1.7.66",
24
24
  "@reliverse/runtime": "^1.0.3",
25
25
  "@rollup/plugin-alias": "^5.1.1",
26
26
  "@rollup/plugin-commonjs": "^28.0.6",
27
27
  "@rollup/plugin-json": "^6.1.0",
28
- "@rollup/plugin-node-resolve": "^16.0.1",
28
+ "@rollup/plugin-node-resolve": "^16.0.2",
29
29
  "@rollup/plugin-replace": "^6.0.2",
30
- "@rollup/pluginutils": "^5.2.0",
31
- "@uploadcare/upload-client": "^6.17.0",
32
- "@vercel/sdk": "^1.10.7",
30
+ "@rollup/pluginutils": "^5.3.0",
31
+ "@uploadcare/upload-client": "^6.18.0",
32
+ "@vercel/sdk": "^1.13.8",
33
33
  "@volar/typescript": "^2.4.23",
34
- "@vue/language-core": "^3.0.6",
34
+ "@vue/language-core": "^3.1.1",
35
35
  "@vue/language-core2.0": "npm:@vue/language-core@2.0.29",
36
- "ai": "^5.0.30",
36
+ "ai": "^5.0.68",
37
37
  "async-listen": "^3.1.0",
38
38
  "autoprefixer": "^10.4.21",
39
- "better-auth": "^1.3.7",
40
- "better-sqlite3": "^12.2.0",
41
- "bun-plugin-tailwind": "^0.0.15",
42
- "c12": "^3.2.0",
39
+ "better-auth": "^1.3.27",
40
+ "better-sqlite3": "^12.4.1",
41
+ "bun-plugin-tailwind": "^0.1.2",
42
+ "c12": "^3.3.0",
43
43
  "class-variance-authority": "^0.7.1",
44
44
  "clsx": "^2.1.1",
45
45
  "confbox": "^0.2.2",
@@ -47,35 +47,35 @@
47
47
  "defu": "^6.1.4",
48
48
  "destr": "^2.0.5",
49
49
  "detect-package-manager": "^3.0.2",
50
- "drizzle-kit": "^0.31.4",
51
- "drizzle-orm": "^0.44.5",
50
+ "drizzle-kit": "^0.31.5",
51
+ "drizzle-orm": "^0.44.6",
52
52
  "enquirer": "^2.4.1",
53
- "esbuild": "^0.25.9",
53
+ "esbuild": "^0.25.10",
54
54
  "escape-string-regexp": "^5.0.0",
55
55
  "execa": "^9.6.0",
56
56
  "file-type": "^21.0.0",
57
57
  "fix-dts-default-cjs-exports": "^1.0.1",
58
- "globby": "^14.1.0",
59
- "gpt-tokenizer": "^3.0.1",
58
+ "globby": "^15.0.0",
59
+ "gpt-tokenizer": "^3.2.0",
60
60
  "gradient-string": "^3.0.0",
61
61
  "handlebars": "^4.7.8",
62
62
  "hookable": "^5.5.3",
63
63
  "https-proxy-agent": "^7.0.6",
64
- "jiti": "^2.5.1",
65
- "jsonrepair": "^3.13.0",
66
- "ky": "^1.9.1",
64
+ "jiti": "^2.6.1",
65
+ "jsonrepair": "^3.13.1",
66
+ "ky": "^1.11.0",
67
67
  "lookpath": "^1.2.3",
68
- "lucide-react": "^0.542.0",
69
- "magic-string": "^0.30.18",
68
+ "lucide-react": "^0.545.0",
69
+ "magic-string": "^0.30.19",
70
70
  "magicast": "^0.3.5",
71
71
  "mlly": "^1.8.0",
72
- "mysql2": "^3.14.4",
73
- "nanoid": "^5.1.5",
74
- "nypm": "^0.6.1",
72
+ "mysql2": "^3.15.2",
73
+ "nanoid": "^5.1.6",
74
+ "nypm": "^0.6.2",
75
75
  "octokit": "^5.0.3",
76
76
  "ofetch": "^1.4.1",
77
77
  "open": "^10.2.0",
78
- "p-all": "^5.0.0",
78
+ "p-all": "^5.0.1",
79
79
  "p-limit": "^7.1.1",
80
80
  "p-map": "^7.0.3",
81
81
  "path-key": "^4.0.0",
@@ -83,47 +83,47 @@
83
83
  "postcss": "^8.5.6",
84
84
  "postcss-nested": "^7.0.2",
85
85
  "postgres": "^3.4.7",
86
- "posthog-node": "^5.8.1",
87
- "pretty-bytes": "^7.0.1",
88
- "pretty-ms": "^9.2.0",
86
+ "posthog-node": "^5.9.5",
87
+ "pretty-bytes": "^7.1.0",
88
+ "pretty-ms": "^9.3.0",
89
89
  "querystring": "^0.2.1",
90
90
  "random-words": "^2.0.1",
91
- "react": "^19.1.1",
92
- "react-dom": "^19.1.1",
93
- "react-hook-form": "^7.62.0",
91
+ "react": "^19.2.0",
92
+ "react-dom": "^19.2.0",
93
+ "react-hook-form": "^7.65.0",
94
94
  "registry-auth-token": "^5.1.0",
95
95
  "registry-url": "^7.2.0",
96
- "rollup": "^4.50.0",
96
+ "rollup": "^4.52.4",
97
97
  "rollup-plugin-dts": "^6.2.3",
98
- "sass": "^1.92.0",
98
+ "sass": "^1.93.2",
99
99
  "scule": "^1.3.0",
100
- "semver": "^7.7.2",
100
+ "semver": "^7.7.3",
101
101
  "shebang-command": "^2.0.0",
102
102
  "simple-git": "^3.28.0",
103
103
  "strip-json-comments": "^5.0.3",
104
104
  "tailwind-merge": "^3.3.1",
105
- "tailwindcss": "^4.1.12",
105
+ "tailwindcss": "^4.1.14",
106
106
  "tailwindcss-animate": "^1.0.7",
107
- "tar": "^7.4.3",
107
+ "tar": "^7.5.1",
108
108
  "tar-stream": "^3.1.7",
109
- "tinyglobby": "^0.2.14",
110
- "ts-morph": "^26.0.0",
109
+ "tinyglobby": "^0.2.15",
110
+ "ts-morph": "^27.0.0",
111
111
  "uncrypto": "^0.1.3",
112
112
  "untyped": "^2.0.0",
113
113
  "uploadthing": "^7.7.4",
114
- "vue": "^3.5.21",
115
- "vue-sfc-transformer": "^0.1.16",
116
- "vue-tsc": "^3.0.6",
114
+ "vue": "^3.5.22",
115
+ "vue-sfc-transformer": "^0.1.17",
116
+ "vue-tsc": "^3.1.1",
117
117
  "vue-tsc1": "npm:vue-tsc@1.8.27",
118
118
  "vue-tsc2.0": "npm:vue-tsc@2.0.29",
119
- "zod": "^4.1.5"
119
+ "zod": "^4.1.12"
120
120
  },
121
121
  "description": "dler (prev. relidler) is a flexible, unified, and fully automated bundler for TypeScript and JavaScript projects, as well as an NPM and JSR publishing tool.",
122
122
  "homepage": "https://docs.reliverse.org/cli",
123
123
  "license": "MIT",
124
124
  "name": "@reliverse/dler",
125
125
  "type": "module",
126
- "version": "1.7.144",
126
+ "version": "1.7.145",
127
127
  "author": "reliverse",
128
128
  "bugs": {
129
129
  "email": "blefnk@gmail.com",