@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.
- package/bin/app/config/biome.js +1 -1
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/config/create.js +1 -1
- package/bin/app/config/path.d.ts +1 -1
- package/bin/app/config/path.js +3 -8
- package/bin/app/config/prepare.js +33 -33
- package/bin/app/config/prompts.js +5 -5
- package/bin/app/providers/better-t-stack/types.d.ts +3 -3
- package/bin/app/schema/gen.js +2 -2
- package/bin/app/schema/mod.d.ts +2 -2
- package/bin/app/schema/mod.js +1 -1
- package/bin/app/types/mod.d.ts +2 -2
- package/bin/mod.d.ts +1 -1
- package/bin/mod.js +1 -1
- package/package.json +1 -1
package/bin/app/config/biome.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
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";
|
package/bin/app/config/create.js
CHANGED
package/bin/app/config/path.d.ts
CHANGED
|
@@ -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,
|
|
8
|
+
export declare function getReliverseConfigPath(projectPath: string, isDev: boolean, _skipPrompt: boolean, customTsconfigPath?: string): Promise<{
|
|
9
9
|
configPath: string;
|
|
10
10
|
isTS: boolean;
|
|
11
11
|
}>;
|
package/bin/app/config/path.js
CHANGED
|
@@ -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,
|
|
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 [
|
|
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":
|
|
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":
|
|
141
|
-
"projectDeployService":
|
|
140
|
+
"projectGitService": "github",
|
|
141
|
+
"projectDeployService": "none",
|
|
142
142
|
"repoBranch": ${UNKNOWN_STRING},
|
|
143
143
|
"projectFramework": ${UNKNOWN_STRING},
|
|
144
|
-
"projectPackageManager":
|
|
145
|
-
"projectRuntime":
|
|
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":
|
|
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":
|
|
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":
|
|
209
|
-
"importOrRequire":
|
|
210
|
-
"quoteMark":
|
|
208
|
+
"typeOrInterface": "mixed",
|
|
209
|
+
"importOrRequire": "import",
|
|
210
|
+
"quoteMark": "double",
|
|
211
211
|
"semicolons": true,
|
|
212
212
|
"lineWidth": 80,
|
|
213
|
-
"indentStyle":
|
|
213
|
+
"indentStyle": "space",
|
|
214
214
|
"indentSize": 2,
|
|
215
215
|
"importSymbol": ${UNKNOWN_STRING},
|
|
216
|
-
"
|
|
216
|
+
"trailingCommas": "all",
|
|
217
217
|
"bracketSpacing": true,
|
|
218
|
-
"arrowParens":
|
|
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:
|
|
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:
|
|
447
|
-
` projectDeployService:
|
|
446
|
+
` projectGitService: "github",`,
|
|
447
|
+
` projectDeployService: "none",`,
|
|
448
448
|
` repoBranch: ${UNKNOWN_STRING},`,
|
|
449
449
|
` projectFramework: ${UNKNOWN_STRING},`,
|
|
450
|
-
` projectPackageManager:
|
|
451
|
-
` projectRuntime:
|
|
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:
|
|
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:
|
|
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:
|
|
515
|
-
` importOrRequire:
|
|
516
|
-
` quoteMark:
|
|
514
|
+
` typeOrInterface: "mixed",`,
|
|
515
|
+
` importOrRequire: "import",`,
|
|
516
|
+
` quoteMark: "double",`,
|
|
517
517
|
" semicolons: true,",
|
|
518
518
|
" lineWidth: 80,",
|
|
519
|
-
` indentStyle:
|
|
519
|
+
` indentStyle: "space",`,
|
|
520
520
|
" indentSize: 2,",
|
|
521
521
|
` importSymbol: ${UNKNOWN_STRING},`,
|
|
522
|
-
`
|
|
522
|
+
` trailingCommas: "all",`,
|
|
523
523
|
" bracketSpacing: true,",
|
|
524
|
-
` arrowParens:
|
|
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:
|
|
545
|
-
` depsBehavior:
|
|
546
|
-
` gitBehavior:
|
|
547
|
-
` i18nBehavior:
|
|
548
|
-
` scriptsBehavior:
|
|
549
|
-
` existingRepoBehavior:
|
|
550
|
-
` relinterConfirm:
|
|
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
|
|
5
|
-
content: "
|
|
4
|
+
title: "Please select a configuration file kind.",
|
|
5
|
+
content: "TypeScript is recommended for most projects.",
|
|
6
6
|
options: [
|
|
7
|
-
{ label: "TypeScript (
|
|
8
|
-
{ label: "JSONC
|
|
7
|
+
{ label: "TypeScript (recommended)", value: "ts" },
|
|
8
|
+
{ label: "JSONC", value: "jsonc" }
|
|
9
9
|
],
|
|
10
|
-
defaultValue: "
|
|
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<{
|
package/bin/app/schema/gen.js
CHANGED
|
@@ -76,7 +76,7 @@ export interface ReliverseConfig {
|
|
|
76
76
|
indentStyle?: "space" | "tab";
|
|
77
77
|
quoteMark?: "single" | "double";
|
|
78
78
|
semicolons?: boolean;
|
|
79
|
-
|
|
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
|
-
|
|
1327
|
+
trailingCommas: "all",
|
|
1328
1328
|
bracketSpacing: true,
|
|
1329
1329
|
arrowParens: "always",
|
|
1330
1330
|
tabWidth: 2,
|
package/bin/app/schema/mod.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export interface ReliverseConfig {
|
|
|
74
74
|
indentStyle?: "space" | "tab";
|
|
75
75
|
quoteMark?: "single" | "double";
|
|
76
76
|
semicolons?: boolean;
|
|
77
|
-
|
|
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
|
-
|
|
1005
|
+
trailingCommas?: "none" | "es5" | "all";
|
|
1006
1006
|
bracketSpacing?: boolean;
|
|
1007
1007
|
arrowParens?: "always" | "avoid";
|
|
1008
1008
|
tabWidth?: number;
|
package/bin/app/schema/mod.js
CHANGED
package/bin/app/types/mod.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export type BiomeConfigResult = {
|
|
|
71
71
|
indentWidth?: 2 | 4 | 8;
|
|
72
72
|
quoteMark?: "single" | "double";
|
|
73
73
|
semicolons?: boolean;
|
|
74
|
-
|
|
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
|
-
|
|
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 {
|