@reliverse/dler 1.7.115 → 1.7.117

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.
@@ -18,7 +18,7 @@ export async function getBiomeConfig(projectPath) {
18
18
  indentWidth: config.formatter?.indentWidth ?? 2,
19
19
  quoteMark: config.javascript?.formatter?.quoteStyle ?? "double",
20
20
  semicolons: config.javascript?.formatter?.semicolons === "always",
21
- trailingComma: config.javascript?.formatter?.trailingComma === "all"
21
+ trailingCommas: config.javascript?.formatter?.trailingCommas === "all"
22
22
  };
23
23
  return cachedBiomeConfig;
24
24
  }
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_ROOT: string;
2
- export declare const cliVersion = "1.7.115";
2
+ export declare const cliVersion = "1.7.117";
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.115";
4
+ const version = "1.7.117";
5
5
  export const cliVersion = version;
6
6
  export const cliName = "@reliverse/rse";
7
7
  export const rseName = "@reliverse/rse";
@@ -215,7 +215,7 @@ export async function generateReliverseConfig({
215
215
  indentStyle: "space",
216
216
  indentSize: 2,
217
217
  importSymbol: "~",
218
- trailingComma: "all",
218
+ trailingCommas: "all",
219
219
  bracketSpacing: true,
220
220
  arrowParens: "always",
221
221
  tabWidth: 2,
@@ -5,7 +5,7 @@
5
5
  * - Honors a custom tsconfig.json path if provided.
6
6
  * - Caches results by projectPath.
7
7
  */
8
- export declare function getReliverseConfigPath(projectPath: string, isDev: boolean, skipPrompt: boolean, customTsconfigPath?: string): Promise<{
8
+ export declare function getReliverseConfigPath(projectPath: string, isDev: boolean, _skipPrompt: boolean, customTsconfigPath?: string): Promise<{
9
9
  configPath: string;
10
10
  isTS: boolean;
11
11
  }>;
@@ -1,9 +1,8 @@
1
1
  import path from "@reliverse/pathkit";
2
2
  import fs from "@reliverse/relifso";
3
3
  import { tsconfigJson } from "./constants.js";
4
- import { askReliverseConfigType } from "./prompts.js";
5
4
  const configPathCache = /* @__PURE__ */ new Map();
6
- export async function getReliverseConfigPath(projectPath, isDev, skipPrompt, customTsconfigPath) {
5
+ export async function getReliverseConfigPath(projectPath, isDev, _skipPrompt, customTsconfigPath) {
7
6
  const cached = configPathCache.get(projectPath);
8
7
  if (cached) {
9
8
  return cached;
@@ -12,7 +11,7 @@ export async function getReliverseConfigPath(projectPath, isDev, skipPrompt, cus
12
11
  const configDir = path.join(projectPath, ".config");
13
12
  const rseJsonc = path.join(configDir, "reliverse.jsonc");
14
13
  const rseTs = path.join(configDir, "reliverse.ts");
15
- const [tsconfigExists, jsoncExists, tsExists] = await Promise.all([
14
+ const [_tsconfigExists, _jsoncExists, tsExists] = await Promise.all([
16
15
  fs.pathExists(finalTsconfigPath),
17
16
  fs.pathExists(rseJsonc),
18
17
  fs.pathExists(rseTs)
@@ -22,12 +21,8 @@ export async function getReliverseConfigPath(projectPath, isDev, skipPrompt, cus
22
21
  result = { configPath: rseTs, isTS: true };
23
22
  } else if (tsExists) {
24
23
  result = { configPath: rseTs, isTS: true };
25
- } else if (tsconfigExists && !jsoncExists && !skipPrompt) {
26
- const choice = await askReliverseConfigType();
27
- result = choice === "ts" ? { configPath: rseTs, isTS: true } : { configPath: rseJsonc, isTS: false };
28
- } else {
29
- result = { configPath: rseJsonc, isTS: false };
30
24
  }
25
+ result = { configPath: rseTs, isTS: true };
31
26
  configPathCache.set(projectPath, result);
32
27
  return result;
33
28
  }
@@ -128,7 +128,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
128
128
  "projectDescription": ${JSON.stringify(coreDescriptionValue)},
129
129
  "version": ${UNKNOWN_STRING},
130
130
  "projectLicense": ${UNKNOWN_STRING},
131
- "projectState": ${UNKNOWN_STRING},
131
+ "projectState": "created",
132
132
  "projectRepository": ${UNKNOWN_STRING},
133
133
  "projectDomain": ${UNKNOWN_STRING},
134
134
  "projectCategory": ${UNKNOWN_STRING},
@@ -137,12 +137,12 @@ function generateJsoncConfig(isDev, pkgDescription) {
137
137
  "projectTemplateDate": ${UNKNOWN_STRING},
138
138
  "projectArchitecture": ${UNKNOWN_STRING},
139
139
  "repoPrivacy": ${UNKNOWN_STRING},
140
- "projectGitService": ${UNKNOWN_STRING},
141
- "projectDeployService": ${UNKNOWN_STRING},
140
+ "projectGitService": "github",
141
+ "projectDeployService": "none",
142
142
  "repoBranch": ${UNKNOWN_STRING},
143
143
  "projectFramework": ${UNKNOWN_STRING},
144
- "projectPackageManager": ${UNKNOWN_STRING},
145
- "projectRuntime": ${UNKNOWN_STRING},
144
+ "projectPackageManager": "bun",
145
+ "projectRuntime": "node",
146
146
  "preferredLibraries": {
147
147
  "stateManagement": ${UNKNOWN_STRING},
148
148
  "formManagement": ${UNKNOWN_STRING},
@@ -181,7 +181,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
181
181
  "routing": ""
182
182
  },
183
183
  "monorepo": {
184
- "type": ${UNKNOWN_STRING},
184
+ "type": "none",
185
185
  "packages": [],
186
186
  "sharedPackages": []
187
187
  },
@@ -190,7 +190,7 @@ function generateJsoncConfig(isDev, pkgDescription) {
190
190
  "features": {
191
191
  "i18n": false,
192
192
  "analytics": false,
193
- "themeMode": ${UNKNOWN_STRING},
193
+ "themeMode": "light",
194
194
  "authentication": false,
195
195
  "api": false,
196
196
  "database": false,
@@ -205,17 +205,17 @@ function generateJsoncConfig(isDev, pkgDescription) {
205
205
  "codeStyle": {
206
206
  "dontRemoveComments": false,
207
207
  "shouldAddComments": false,
208
- "typeOrInterface": ${UNKNOWN_STRING},
209
- "importOrRequire": ${UNKNOWN_STRING},
210
- "quoteMark": ${UNKNOWN_STRING},
208
+ "typeOrInterface": "mixed",
209
+ "importOrRequire": "import",
210
+ "quoteMark": "double",
211
211
  "semicolons": true,
212
212
  "lineWidth": 80,
213
- "indentStyle": ${UNKNOWN_STRING},
213
+ "indentStyle": "space",
214
214
  "indentSize": 2,
215
215
  "importSymbol": ${UNKNOWN_STRING},
216
- "trailingComma": ${UNKNOWN_STRING},
216
+ "trailingCommas": "all",
217
217
  "bracketSpacing": true,
218
- "arrowParens": ${UNKNOWN_STRING},
218
+ "arrowParens": "always",
219
219
  "tabWidth": 2,
220
220
  "jsToTs": false,
221
221
  "cjsToEsm": false,
@@ -434,7 +434,7 @@ function generateConfig(isDev, pkgDescription, configKind = "ts") {
434
434
  " projectDescription: " + JSON.stringify(coreDescriptionValue) + ",",
435
435
  ` version: ${UNKNOWN_STRING},`,
436
436
  ` projectLicense: ${UNKNOWN_STRING},`,
437
- ` projectState: ${UNKNOWN_STRING},`,
437
+ ` projectState: "created",`,
438
438
  ` projectRepository: ${UNKNOWN_STRING},`,
439
439
  ` projectDomain: ${UNKNOWN_STRING},`,
440
440
  ` projectCategory: ${UNKNOWN_STRING},`,
@@ -443,12 +443,12 @@ function generateConfig(isDev, pkgDescription, configKind = "ts") {
443
443
  ` projectTemplateDate: ${UNKNOWN_STRING},`,
444
444
  ` projectArchitecture: ${UNKNOWN_STRING},`,
445
445
  ` repoPrivacy: ${UNKNOWN_STRING},`,
446
- ` projectGitService: ${UNKNOWN_STRING},`,
447
- ` projectDeployService: ${UNKNOWN_STRING},`,
446
+ ` projectGitService: "github",`,
447
+ ` projectDeployService: "none",`,
448
448
  ` repoBranch: ${UNKNOWN_STRING},`,
449
449
  ` projectFramework: ${UNKNOWN_STRING},`,
450
- ` projectPackageManager: ${UNKNOWN_STRING},`,
451
- ` projectRuntime: ${UNKNOWN_STRING},`,
450
+ ` projectPackageManager: "bun",`,
451
+ ` projectRuntime: "node",`,
452
452
  " preferredLibraries: {",
453
453
  ` stateManagement: ${UNKNOWN_STRING},`,
454
454
  ` formManagement: ${UNKNOWN_STRING},`,
@@ -487,7 +487,7 @@ function generateConfig(isDev, pkgDescription, configKind = "ts") {
487
487
  ` routing: ${UNKNOWN_STRING},`,
488
488
  " },",
489
489
  " monorepo: {",
490
- ` type: ${UNKNOWN_STRING},`,
490
+ ` type: "none",`,
491
491
  " packages: [],",
492
492
  " sharedPackages: [],",
493
493
  " },",
@@ -496,7 +496,7 @@ function generateConfig(isDev, pkgDescription, configKind = "ts") {
496
496
  " features: {",
497
497
  " i18n: false,",
498
498
  " analytics: false,",
499
- ` themeMode: ${UNKNOWN_STRING},`,
499
+ ` themeMode: "light",`,
500
500
  " authentication: false,",
501
501
  " api: false,",
502
502
  " database: false,",
@@ -511,17 +511,17 @@ function generateConfig(isDev, pkgDescription, configKind = "ts") {
511
511
  " codeStyle: {",
512
512
  " dontRemoveComments: false,",
513
513
  " shouldAddComments: false,",
514
- ` typeOrInterface: ${UNKNOWN_STRING},`,
515
- ` importOrRequire: ${UNKNOWN_STRING},`,
516
- ` quoteMark: ${UNKNOWN_STRING},`,
514
+ ` typeOrInterface: "mixed",`,
515
+ ` importOrRequire: "import",`,
516
+ ` quoteMark: "double",`,
517
517
  " semicolons: true,",
518
518
  " lineWidth: 80,",
519
- ` indentStyle: ${UNKNOWN_STRING},`,
519
+ ` indentStyle: "space",`,
520
520
  " indentSize: 2,",
521
521
  ` importSymbol: ${UNKNOWN_STRING},`,
522
- ` trailingComma: ${UNKNOWN_STRING},`,
522
+ ` trailingCommas: "all",`,
523
523
  " bracketSpacing: true,",
524
- ` arrowParens: ${UNKNOWN_STRING},`,
524
+ ` arrowParens: "always",`,
525
525
  " tabWidth: 2,",
526
526
  " jsToTs: false,",
527
527
  " cjsToEsm: false,",
@@ -541,13 +541,13 @@ function generateConfig(isDev, pkgDescription, configKind = "ts") {
541
541
  " customReposOnNewProject: false,",
542
542
  " envComposerOpenBrowser: true,",
543
543
  " skipPromptsUseAutoBehavior: false,",
544
- ` deployBehavior: ${UNKNOWN_STRING},`,
545
- ` depsBehavior: ${UNKNOWN_STRING},`,
546
- ` gitBehavior: ${UNKNOWN_STRING},`,
547
- ` i18nBehavior: ${UNKNOWN_STRING},`,
548
- ` scriptsBehavior: ${UNKNOWN_STRING},`,
549
- ` existingRepoBehavior: ${UNKNOWN_STRING},`,
550
- ` relinterConfirm: ${UNKNOWN_STRING},`,
544
+ ` deployBehavior: "prompt",`,
545
+ ` depsBehavior: "prompt",`,
546
+ ` gitBehavior: "prompt",`,
547
+ ` i18nBehavior: "prompt",`,
548
+ ` scriptsBehavior: "prompt",`,
549
+ ` existingRepoBehavior: "prompt",`,
550
+ ` relinterConfirm: "promptEachFile",`,
551
551
  "",
552
552
  " // Bump configuration",
553
553
  " bumpDisable: " + DEFAULT_CONFIG_RELIVERSE.bumpDisable + ",",
@@ -1,12 +1,12 @@
1
1
  import { selectPrompt } from "@reliverse/rempts";
2
2
  export async function askReliverseConfigType() {
3
3
  return await selectPrompt({
4
- title: "Please select a rseonfiguration file type. JSONC is recommended for most projects.",
5
- content: "A tsconfig.json file was detected. You can use the TypeScript config type for this project; however, it requires @reliverse/rse to be installed (as a dev dependency); without it, the rse CLI may not run correctly when using the TS config type.",
4
+ title: "Please select a configuration file kind.",
5
+ content: "TypeScript is recommended for most projects.",
6
6
  options: [
7
- { label: "TypeScript (rse) (recommended)", value: "ts" },
8
- { label: "JSONC (rse)", value: "jsonc" }
7
+ { label: "TypeScript (recommended)", value: "ts" },
8
+ { label: "JSONC", value: "jsonc" }
9
9
  ],
10
- defaultValue: "jsonc"
10
+ defaultValue: "ts"
11
11
  });
12
12
  }
@@ -25,8 +25,8 @@ export declare const BackendSchema: z.ZodEnum<{
25
25
  }>;
26
26
  export type Backend = z.infer<typeof BackendSchema>;
27
27
  export declare const RuntimeSchema: z.ZodEnum<{
28
- none: "none";
29
28
  bun: "bun";
29
+ none: "none";
30
30
  node: "node";
31
31
  workers: "workers";
32
32
  }>;
@@ -45,8 +45,8 @@ 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
- none: "none";
49
48
  biome: "biome";
49
+ none: "none";
50
50
  tauri: "tauri";
51
51
  starlight: "starlight";
52
52
  turborepo: "turborepo";
@@ -55,9 +55,9 @@ export declare const AddonsSchema: z.ZodEnum<{
55
55
  }>;
56
56
  export type Addons = z.infer<typeof AddonsSchema>;
57
57
  export declare const ExamplesSchema: z.ZodEnum<{
58
+ ai: "ai";
58
59
  none: "none";
59
60
  todo: "todo";
60
- ai: "ai";
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
63
63
  export declare const PackageManagerSchema: z.ZodEnum<{
@@ -76,7 +76,7 @@ export interface ReliverseConfig {
76
76
  indentStyle?: "space" | "tab";
77
77
  quoteMark?: "single" | "double";
78
78
  semicolons?: boolean;
79
- trailingComma?: "none" | "es5" | "all";
79
+ trailingCommas?: "none" | "es5" | "all";
80
80
  bracketSpacing?: boolean;
81
81
  arrowParens?: "always" | "avoid";
82
82
  tabWidth?: number;
@@ -1324,7 +1324,7 @@ export const DEFAULT_CONFIG_RELIVERSE: ReliverseConfig = {
1324
1324
  indentStyle: "space",
1325
1325
  indentSize: 2,
1326
1326
  importSymbol: "~",
1327
- trailingComma: "all",
1327
+ trailingCommas: "all",
1328
1328
  bracketSpacing: true,
1329
1329
  arrowParens: "always",
1330
1330
  tabWidth: 2,
@@ -74,7 +74,7 @@ export interface ReliverseConfig {
74
74
  indentStyle?: "space" | "tab";
75
75
  quoteMark?: "single" | "double";
76
76
  semicolons?: boolean;
77
- trailingComma?: "none" | "es5" | "all";
77
+ trailingCommas?: "none" | "es5" | "all";
78
78
  bracketSpacing?: boolean;
79
79
  arrowParens?: "always" | "avoid";
80
80
  tabWidth?: number;
@@ -1002,7 +1002,7 @@ export declare const defineConfig: (userConfig?: Partial<ReliverseConfig>) => {
1002
1002
  indentStyle?: "space" | "tab";
1003
1003
  quoteMark?: "single" | "double";
1004
1004
  semicolons?: boolean;
1005
- trailingComma?: "none" | "es5" | "all";
1005
+ trailingCommas?: "none" | "es5" | "all";
1006
1006
  bracketSpacing?: boolean;
1007
1007
  arrowParens?: "always" | "avoid";
1008
1008
  tabWidth?: number;
@@ -269,7 +269,7 @@ export const DEFAULT_CONFIG_RELIVERSE = {
269
269
  indentStyle: "space",
270
270
  indentSize: 2,
271
271
  importSymbol: "~",
272
- trailingComma: "all",
272
+ trailingCommas: "all",
273
273
  bracketSpacing: true,
274
274
  arrowParens: "always",
275
275
  tabWidth: 2,
@@ -71,7 +71,7 @@ export type BiomeConfigResult = {
71
71
  indentWidth?: 2 | 4 | 8;
72
72
  quoteMark?: "single" | "double";
73
73
  semicolons?: boolean;
74
- trailingComma?: boolean;
74
+ trailingCommas?: boolean;
75
75
  } | null;
76
76
  export interface BaseConfig {
77
77
  version: string;
@@ -96,7 +96,7 @@ export type BiomeConfig = BaseConfig & {
96
96
  };
97
97
  javascript?: {
98
98
  formatter: {
99
- trailingComma?: "all" | "es5" | "none";
99
+ trailingCommas?: "all" | "es5" | "none";
100
100
  quoteStyle?: "single" | "double";
101
101
  semicolons?: "always" | "never";
102
102
  };
package/bin/mod.d.ts CHANGED
@@ -128,7 +128,6 @@ export { migrateReliverseConfig } from "./app/config/migrate";
128
128
  export { getReliverseConfigPath } from "./app/config/path";
129
129
  export type { ConfigKind } from "./app/config/prepare";
130
130
  export { ensureReliverseConfig, prepareReliverseEnvironment } from "./app/config/prepare";
131
- export { askReliverseConfigType } from "./app/config/prompts";
132
131
  export { readReliverseConfig, readRseTs } from "./app/config/read";
133
132
  export { fixLineByLine, parseAndFixReliverseConfig, repairAndParseJSON, } from "./app/config/repair";
134
133
  export { loadrse, watchrse } from "./app/config/unstable";
@@ -337,6 +336,7 @@ export { replaceImportSymbol } from "./app/utils/codemods/replaceImportSymbol";
337
336
  export { replaceWithModern } from "./app/utils/codemods/replaceWithModern";
338
337
  export type { CommentMapping, CommentStyle, FileExtension } from "./app/utils/comments";
339
338
  export { COMMENT_MAP, DEFAULT_COMMENT, getCommentPrefix } from "./app/utils/comments";
339
+ export { commonEndActions, commonStartActions } from "./app/utils/common";
340
340
  export { createPackageJSON } from "./app/utils/createPackageJSON";
341
341
  export { decide } from "./app/utils/decideHelper";
342
342
  export type { DetectionSource, DetectOptions, PkgManagerInfo, } from "./app/utils/dependencies/getUserPkgManager";
package/bin/mod.js CHANGED
@@ -255,7 +255,6 @@ export { getConfigBunfig, getConfigDler } from "./app/config/load.js";
255
255
  export { migrateReliverseConfig } from "./app/config/migrate.js";
256
256
  export { getReliverseConfigPath } from "./app/config/path.js";
257
257
  export { ensureReliverseConfig, prepareReliverseEnvironment } from "./app/config/prepare.js";
258
- export { askReliverseConfigType } from "./app/config/prompts.js";
259
258
  export { readReliverseConfig, readRseTs } from "./app/config/read.js";
260
259
  export {
261
260
  fixLineByLine,
@@ -764,6 +763,7 @@ export { getUnusedDependencies } from "./app/utils/codemods/removeUnusedDeps.js"
764
763
  export { replaceImportSymbol } from "./app/utils/codemods/replaceImportSymbol.js";
765
764
  export { replaceWithModern } from "./app/utils/codemods/replaceWithModern.js";
766
765
  export { COMMENT_MAP, DEFAULT_COMMENT, getCommentPrefix } from "./app/utils/comments.js";
766
+ export { commonEndActions, commonStartActions } from "./app/utils/common.js";
767
767
  export { createPackageJSON } from "./app/utils/createPackageJSON.js";
768
768
  export { decide } from "./app/utils/decideHelper.js";
769
769
  export {
package/package.json CHANGED
@@ -124,7 +124,7 @@
124
124
  "license": "MIT",
125
125
  "name": "@reliverse/dler",
126
126
  "type": "module",
127
- "version": "1.7.115",
127
+ "version": "1.7.117",
128
128
  "keywords": [
129
129
  "reliverse",
130
130
  "cli",