@reliverse/dler 1.7.114 → 1.7.115
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/add/add-local/core/templates.d.ts +3 -3
- package/bin/app/add/add-local/core/templates.js +8 -8
- package/bin/app/add/cmd.js +2 -2
- package/bin/app/ai/ai-impl/ai-chat.d.ts +2 -2
- package/bin/app/ai/ai-impl/ai-types.d.ts +2 -2
- package/bin/app/ai/ai-impl/relinter/relinter.d.ts +2 -2
- package/bin/app/ai/ai-menu.d.ts +2 -2
- package/bin/app/ai/cmd.js +4 -4
- package/bin/app/better/auth/cmd.js +1 -6
- package/bin/app/build/build-library.d.ts +5 -4
- package/bin/app/build/build-regular.d.ts +4 -3
- package/bin/app/build/cmd.d.ts +10 -0
- package/bin/app/build/cmd.js +29 -12
- package/bin/app/build/impl.d.ts +3 -2
- package/bin/app/build/library-flow.d.ts +5 -4
- package/bin/app/build/postbuild.d.ts +2 -2
- package/bin/app/build/postbuild.js +0 -6
- package/bin/app/build/prebuild.d.ts +2 -2
- package/bin/app/build/prebuild.js +0 -6
- package/bin/app/build/regular-flow.d.ts +4 -3
- package/bin/app/check/cmd.js +2 -2
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/config/content.d.ts +1 -1
- package/bin/app/config/content.js +2 -2
- package/bin/app/config/core-cfg.d.ts +5 -5
- package/bin/app/config/core-cfg.js +27 -16
- package/bin/app/config/create.d.ts +6 -5
- package/bin/app/config/create.js +13 -22
- package/bin/app/config/def-utils.d.ts +3 -3
- package/bin/app/config/def-utils.js +10 -8
- package/bin/app/config/detect.d.ts +4 -2
- package/bin/app/config/detect.js +36 -6
- package/bin/app/config/gen-cfg.js +4 -4
- package/bin/app/config/load.d.ts +2 -2
- package/bin/app/config/load.js +1 -1
- package/bin/app/config/migrate.d.ts +1 -1
- package/bin/app/config/migrate.js +7 -3
- package/bin/app/config/path.d.ts +1 -1
- package/bin/app/config/path.js +3 -3
- package/bin/app/config/prepare.d.ts +1 -1
- package/bin/app/config/prepare.js +83 -81
- package/bin/app/config/prompts.d.ts +1 -1
- package/bin/app/config/prompts.js +1 -1
- package/bin/app/config/read.d.ts +3 -3
- package/bin/app/config/read.js +13 -35
- package/bin/app/config/repair.d.ts +2 -2
- package/bin/app/config/repair.js +12 -12
- package/bin/app/config/unstable.d.ts +3 -3
- package/bin/app/config/unstable.js +2 -14
- package/bin/app/config/update.d.ts +3 -3
- package/bin/app/config/update.js +41 -48
- package/bin/app/env/env-impl.js +2 -2
- package/bin/app/init/cmd-2.js +2 -2
- package/bin/app/init/init-utils/init-utils.js +7 -7
- package/bin/app/init/init-utils/mm-deprecated/editor-menu.d.ts +3 -2
- package/bin/app/init/init-utils/mm-deprecated/editor-menu.js +1 -6
- package/bin/app/init/use-template/cp-impl.d.ts +5 -4
- package/bin/app/init/use-template/cp-mod.d.ts +3 -3
- package/bin/app/init/use-template/cp-mod.js +5 -5
- package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/compose-env-file/cef-impl.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/compose-env-file/cef-mod.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/deploy.d.ts +4 -3
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/gdp-mod.d.ts +5 -4
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/git.d.ts +6 -5
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/github.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.js +6 -3
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.d.ts +3 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.js +4 -4
- package/bin/app/invoke/cmd.js +2 -2
- package/bin/app/mrse/cmd.js +2 -2
- package/bin/app/mrse/mrse-impl.js +2 -2
- package/bin/app/providers/better-t-stack/types.d.ts +5 -5
- package/bin/app/providers/package.json +3 -0
- package/bin/app/providers/reliverse-stack/reliverse-stack-mod.js +2 -2
- package/bin/app/providers/reliverse-stack/rs-impl.d.ts +4 -4
- package/bin/app/pub/cmd.d.ts +10 -0
- package/bin/app/pub/cmd.js +27 -12
- package/bin/app/pub/impl.d.ts +3 -2
- package/bin/app/rempts/cmd.js +2 -2
- package/bin/app/rules/reliverse/dler-config-health/dler-config-health.d.ts +1 -1
- package/bin/app/rules/reliverse/dler-config-health/dler-config-health.js +1 -1
- package/bin/app/schema/cmd.js +3 -3
- package/bin/app/{config/reltypes-content.js → schema/gen.js} +475 -229
- package/bin/app/schema/mod.d.ts +1224 -0
- package/bin/app/schema/mod.js +329 -0
- package/bin/app/{config/reltypes-utils.js → schema/utils.js} +6 -3
- package/bin/app/toolbox/cmd.js +2 -2
- package/bin/app/toolbox/toolbox-impl.d.ts +3 -2
- package/bin/app/types/mod.d.ts +10 -1518
- package/bin/app/types/mod.js +0 -161
- package/bin/app/update/impl.d.ts +1 -0
- package/bin/app/update/impl.js +102 -1
- package/bin/app/utils/common.d.ts +3 -0
- package/bin/app/utils/common.js +28 -0
- package/bin/app/utils/decideHelper.d.ts +2 -2
- package/bin/app/utils/downloading/downloadRepo.d.ts +2 -2
- package/bin/app/utils/downloading/downloadRepo.js +3 -3
- package/bin/app/utils/downloading/handleDownload.d.ts +2 -2
- package/bin/app/utils/finalize.d.ts +2 -1
- package/bin/app/utils/handlers/handleCleanup.js +2 -2
- package/bin/app/utils/handlers/handleCodemods.d.ts +2 -2
- package/bin/app/utils/projectRepository.d.ts +3 -4
- package/bin/app/utils/prompts/askUsernameFrontend.d.ts +2 -2
- package/bin/app/utils/prompts/askUsernameFrontend.js +3 -3
- package/bin/app/utils/resolve-cross-libs.js +2 -2
- package/bin/app/utils/schemaMemory.d.ts +1 -1
- package/bin/app/utils/startEndPrompts.d.ts +8 -2
- package/bin/app/utils/startEndPrompts.js +43 -12
- package/bin/app/utils/utils-build.d.ts +2 -2
- package/bin/app/utils/utils-clean.d.ts +1 -1
- package/bin/app/utils/utils-deps.d.ts +2 -2
- package/bin/app/utils/utils-determine.d.ts +1 -1
- package/bin/app/utils/utils-jsr-json.d.ts +2 -2
- package/bin/app/utils/utils-package-json-libraries.d.ts +3 -3
- package/bin/app/utils/utils-package-json-regular.d.ts +2 -2
- package/bin/dler.js +2 -92
- package/bin/mod.d.ts +431 -438
- package/bin/mod.js +36 -27
- package/package.json +10 -10
- package/bin/app/agg/cmd.d.ts +0 -72
- package/bin/app/agg/cmd.js +0 -128
- package/bin/app/cli/cmd.d.ts +0 -12
- package/bin/app/cli/cmd.js +0 -56
- package/bin/app/cli/impl.d.ts +0 -3
- package/bin/app/cli/impl.js +0 -88
- package/bin/app/config/default-cfg.d.ts +0 -3
- package/bin/app/config/default-cfg.js +0 -155
- package/bin/app/config/default.d.ts +0 -6
- package/bin/app/config/default.js +0 -159
- package/bin/app/config/schema.d.ts +0 -130
- package/bin/app/config/schema.js +0 -443
- package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.d.ts +0 -12
- package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.js +0 -69
- package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.d.ts +0 -2
- package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js +0 -26
- package/bin/app/schema/schema-impl.d.ts +0 -2
- package/bin/app/schema/schema-impl.js +0 -24
- package/bin/app/update/cmd.d.ts +0 -103
- package/bin/app/update/cmd.js +0 -299
- package/bin/app/utils/native-cli/nc-impl.d.ts +0 -15
- package/bin/app/utils/native-cli/nc-impl.js +0 -154
- package/bin/app/utils/native-cli/nc-mod.d.ts +0 -3
- package/bin/app/utils/native-cli/nc-mod.js +0 -44
- package/bin/app/web/README.md +0 -149
- package/bin/app/web/cmd.d.ts +0 -2
- package/bin/app/web/cmd.js +0 -11
- package/bin/dler-go +0 -4
- package/bin/dler-rust +0 -4
- /package/bin/app/{config/reltypes-content.d.ts → schema/gen.d.ts} +0 -0
- /package/bin/app/{config/reltypes-utils.d.ts → schema/utils.d.ts} +0 -0
- /package/bin/app/utils/{hasOnlyRseConfig.d.ts → hasOnlyReliverseConfig.d.ts} +0 -0
- /package/bin/app/utils/{hasOnlyRseConfig.js → hasOnlyReliverseConfig.js} +0 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
export const DEFAULT_CONFIG_RELIVERSE = {
|
|
2
|
+
// RSE CONFIG (https://docs.reliverse.org/cli)
|
|
3
|
+
// Restart the CLI to apply your config changes
|
|
4
|
+
$schema: "./schema.json",
|
|
5
|
+
// General project information
|
|
6
|
+
projectName: "@reliverse/dler",
|
|
7
|
+
projectAuthor: "reliverse",
|
|
8
|
+
projectDescription: "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.",
|
|
9
|
+
version: "1.7.114",
|
|
10
|
+
projectLicense: "MIT",
|
|
11
|
+
// Bump version
|
|
12
|
+
bumpDisable: false,
|
|
13
|
+
bumpFilter: ["package.json", "reliverse.ts"],
|
|
14
|
+
bumpMode: "patch",
|
|
15
|
+
bumpSet: "",
|
|
16
|
+
// Build & Publishing
|
|
17
|
+
commonPubPause: true,
|
|
18
|
+
commonPubRegistry: "npm",
|
|
19
|
+
commonVerbose: false,
|
|
20
|
+
displayBuildPubLogs: true,
|
|
21
|
+
coreDeclarations: true,
|
|
22
|
+
coreDescription: "",
|
|
23
|
+
coreEntryFile: "mod.ts",
|
|
24
|
+
coreEntrySrcDir: "src",
|
|
25
|
+
coreBuildOutDir: "bin",
|
|
26
|
+
coreIsCLI: { enabled: false, scripts: {} },
|
|
27
|
+
distJsrAllowDirty: true,
|
|
28
|
+
distJsrBuilder: "jsr",
|
|
29
|
+
distJsrDirName: "dist-jsr",
|
|
30
|
+
distJsrDryRun: false,
|
|
31
|
+
distJsrFailOnWarn: false,
|
|
32
|
+
distJsrGenTsconfig: false,
|
|
33
|
+
distJsrOutFilesExt: "ts",
|
|
34
|
+
distJsrSlowTypes: true,
|
|
35
|
+
distNpmBuilder: "mkdist",
|
|
36
|
+
distNpmDirName: "dist-npm",
|
|
37
|
+
distNpmOutFilesExt: "js",
|
|
38
|
+
libsActMode: "main-project-only",
|
|
39
|
+
libsDirDist: "dist-libs",
|
|
40
|
+
libsDirSrc: "src/libs",
|
|
41
|
+
libsList: {},
|
|
42
|
+
logsFileName: ".logs/relinka.log",
|
|
43
|
+
logsFreshFile: true,
|
|
44
|
+
// Dependency filtering
|
|
45
|
+
filterDepsPatterns: {
|
|
46
|
+
global: ["@types", "biome", "eslint", "knip", "prettier", "typescript", "@reliverse/dler"],
|
|
47
|
+
"dist-npm": [],
|
|
48
|
+
"dist-jsr": [],
|
|
49
|
+
"dist-libs": {}
|
|
50
|
+
},
|
|
51
|
+
// Code quality tools
|
|
52
|
+
runBeforeBuild: [],
|
|
53
|
+
// tsc, eslint, biome, knip, dler-check
|
|
54
|
+
runAfterBuild: [],
|
|
55
|
+
// dler-check
|
|
56
|
+
// Build hooks
|
|
57
|
+
hooksBeforeBuild: [
|
|
58
|
+
// async () => {
|
|
59
|
+
// await someAsyncOperation();
|
|
60
|
+
// }
|
|
61
|
+
],
|
|
62
|
+
hooksAfterBuild: [
|
|
63
|
+
// async () => {
|
|
64
|
+
// await someAsyncOperation();
|
|
65
|
+
// }
|
|
66
|
+
],
|
|
67
|
+
postBuildSettings: {
|
|
68
|
+
deleteDistTmpAfterBuild: true
|
|
69
|
+
},
|
|
70
|
+
// Build setup
|
|
71
|
+
transpileFailOnWarn: false,
|
|
72
|
+
transpileEsbuild: "es2023",
|
|
73
|
+
transpileFormat: "esm",
|
|
74
|
+
transpileMinify: true,
|
|
75
|
+
transpilePublicPath: "/",
|
|
76
|
+
transpileSourcemap: "none",
|
|
77
|
+
transpileSplitting: false,
|
|
78
|
+
transpileStub: false,
|
|
79
|
+
transpileTarget: "node",
|
|
80
|
+
transpileWatch: false,
|
|
81
|
+
// Publish artifacts configuration
|
|
82
|
+
publishArtifacts: {
|
|
83
|
+
global: ["package.json", "README.md", "LICENSE"],
|
|
84
|
+
"dist-jsr": [],
|
|
85
|
+
"dist-npm": [],
|
|
86
|
+
"dist-libs": {}
|
|
87
|
+
},
|
|
88
|
+
// Files with these extensions will be built
|
|
89
|
+
// Any other files will be copied as-is to dist
|
|
90
|
+
buildPreExtensions: ["ts", "js"],
|
|
91
|
+
// If you need to exclude some ts/js files from being built,
|
|
92
|
+
// you can store them in the dirs with buildTemplatesDir name
|
|
93
|
+
buildTemplatesDir: "templates",
|
|
94
|
+
// Integrated relinka logger configuration
|
|
95
|
+
relinka: {
|
|
96
|
+
verbose: false,
|
|
97
|
+
dirs: {
|
|
98
|
+
maxLogFiles: 5
|
|
99
|
+
},
|
|
100
|
+
disableColors: false,
|
|
101
|
+
logFile: {
|
|
102
|
+
outputPath: "logs.log",
|
|
103
|
+
nameWithDate: "disable",
|
|
104
|
+
freshLogFile: true
|
|
105
|
+
},
|
|
106
|
+
saveLogsToFile: true,
|
|
107
|
+
timestamp: {
|
|
108
|
+
enabled: false,
|
|
109
|
+
format: "HH:mm:ss"
|
|
110
|
+
},
|
|
111
|
+
cleanupInterval: 1e4,
|
|
112
|
+
// 10 seconds
|
|
113
|
+
bufferSize: 4096,
|
|
114
|
+
// 4KB
|
|
115
|
+
maxBufferAge: 5e3,
|
|
116
|
+
// 5 seconds
|
|
117
|
+
levels: {
|
|
118
|
+
success: {
|
|
119
|
+
symbol: "\u2713",
|
|
120
|
+
fallbackSymbol: "[OK]",
|
|
121
|
+
color: "greenBright",
|
|
122
|
+
spacing: 3
|
|
123
|
+
},
|
|
124
|
+
info: {
|
|
125
|
+
symbol: "i",
|
|
126
|
+
fallbackSymbol: "[i]",
|
|
127
|
+
color: "cyanBright",
|
|
128
|
+
spacing: 3
|
|
129
|
+
},
|
|
130
|
+
error: {
|
|
131
|
+
symbol: "\u2716",
|
|
132
|
+
fallbackSymbol: "[ERR]",
|
|
133
|
+
color: "redBright",
|
|
134
|
+
spacing: 3
|
|
135
|
+
},
|
|
136
|
+
warn: {
|
|
137
|
+
symbol: "\u26A0",
|
|
138
|
+
fallbackSymbol: "[WARN]",
|
|
139
|
+
color: "yellowBright",
|
|
140
|
+
spacing: 3
|
|
141
|
+
},
|
|
142
|
+
fatal: {
|
|
143
|
+
symbol: "\u203C",
|
|
144
|
+
fallbackSymbol: "[FATAL]",
|
|
145
|
+
color: "redBright",
|
|
146
|
+
spacing: 3
|
|
147
|
+
},
|
|
148
|
+
verbose: {
|
|
149
|
+
symbol: "\u2727",
|
|
150
|
+
fallbackSymbol: "[VERBOSE]",
|
|
151
|
+
color: "gray",
|
|
152
|
+
spacing: 3
|
|
153
|
+
},
|
|
154
|
+
internal: {
|
|
155
|
+
symbol: "\u2699",
|
|
156
|
+
fallbackSymbol: "[INTERNAL]",
|
|
157
|
+
color: "magentaBright",
|
|
158
|
+
spacing: 3
|
|
159
|
+
},
|
|
160
|
+
log: { symbol: "\u2502", fallbackSymbol: "|", color: "dim", spacing: 3 },
|
|
161
|
+
message: {
|
|
162
|
+
symbol: "\u{1F7A0}",
|
|
163
|
+
fallbackSymbol: "[MSG]",
|
|
164
|
+
color: "cyan",
|
|
165
|
+
spacing: 3
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
// Project configuration
|
|
170
|
+
projectState: "creating",
|
|
171
|
+
projectRepository: "https://github.com/reliverse/rse",
|
|
172
|
+
projectDomain: "https://docs.reliverse.org/cli",
|
|
173
|
+
projectCategory: "unknown",
|
|
174
|
+
projectSubcategory: "unknown",
|
|
175
|
+
projectTemplate: "unknown",
|
|
176
|
+
projectTemplateDate: "unknown",
|
|
177
|
+
projectArchitecture: "unknown",
|
|
178
|
+
repoPrivacy: "unknown",
|
|
179
|
+
projectGitService: "github",
|
|
180
|
+
projectDeployService: "vercel",
|
|
181
|
+
repoBranch: "main",
|
|
182
|
+
// Primary tech stack/framework
|
|
183
|
+
projectFramework: "rempts",
|
|
184
|
+
projectPackageManager: "bun",
|
|
185
|
+
projectRuntime: "bun",
|
|
186
|
+
preferredLibraries: {
|
|
187
|
+
stateManagement: "unknown",
|
|
188
|
+
formManagement: "unknown",
|
|
189
|
+
styling: "unknown",
|
|
190
|
+
uiComponents: "unknown",
|
|
191
|
+
testing: "unknown",
|
|
192
|
+
authentication: "unknown",
|
|
193
|
+
databaseLibrary: "drizzle",
|
|
194
|
+
databaseProvider: "sqlite",
|
|
195
|
+
api: "trpc",
|
|
196
|
+
linting: "unknown",
|
|
197
|
+
formatting: "unknown",
|
|
198
|
+
payment: "unknown",
|
|
199
|
+
analytics: "unknown",
|
|
200
|
+
monitoring: "unknown",
|
|
201
|
+
logging: "unknown",
|
|
202
|
+
forms: "unknown",
|
|
203
|
+
notifications: "unknown",
|
|
204
|
+
search: "unknown",
|
|
205
|
+
uploads: "unknown",
|
|
206
|
+
validation: "zod",
|
|
207
|
+
documentation: "unknown",
|
|
208
|
+
icons: "unknown",
|
|
209
|
+
mail: "unknown",
|
|
210
|
+
cache: "unknown",
|
|
211
|
+
storage: "unknown",
|
|
212
|
+
cdn: "unknown",
|
|
213
|
+
cms: "unknown",
|
|
214
|
+
i18n: "unknown",
|
|
215
|
+
seo: "unknown",
|
|
216
|
+
motion: "unknown",
|
|
217
|
+
charts: "unknown",
|
|
218
|
+
dates: "unknown",
|
|
219
|
+
markdown: "unknown",
|
|
220
|
+
security: "unknown",
|
|
221
|
+
routing: "unknown"
|
|
222
|
+
},
|
|
223
|
+
monorepo: {
|
|
224
|
+
type: "none",
|
|
225
|
+
packages: [],
|
|
226
|
+
sharedPackages: []
|
|
227
|
+
},
|
|
228
|
+
// List dependencies to exclude from checks
|
|
229
|
+
ignoreDependencies: [],
|
|
230
|
+
// Provide custom rules for Reliverse AI
|
|
231
|
+
// You can use any json type here in {}
|
|
232
|
+
customRules: {},
|
|
233
|
+
// Project features
|
|
234
|
+
features: {
|
|
235
|
+
i18n: false,
|
|
236
|
+
analytics: false,
|
|
237
|
+
themeMode: "dark-light",
|
|
238
|
+
authentication: true,
|
|
239
|
+
api: true,
|
|
240
|
+
database: true,
|
|
241
|
+
testing: false,
|
|
242
|
+
docker: false,
|
|
243
|
+
ci: false,
|
|
244
|
+
commands: [
|
|
245
|
+
"pub",
|
|
246
|
+
"example",
|
|
247
|
+
"db",
|
|
248
|
+
"latest",
|
|
249
|
+
"check",
|
|
250
|
+
"dev:cli",
|
|
251
|
+
"dev:add",
|
|
252
|
+
"dev:ai",
|
|
253
|
+
"dev:clone",
|
|
254
|
+
"dev:cmod"
|
|
255
|
+
],
|
|
256
|
+
webview: ["react-native"],
|
|
257
|
+
language: ["typescript"],
|
|
258
|
+
themes: ["default", "eslint", "biome", "sonner", "uploadthing", "zod", "typebox", "lucide"]
|
|
259
|
+
},
|
|
260
|
+
// Code style preferences
|
|
261
|
+
codeStyle: {
|
|
262
|
+
dontRemoveComments: true,
|
|
263
|
+
shouldAddComments: true,
|
|
264
|
+
typeOrInterface: "type",
|
|
265
|
+
importOrRequire: "import",
|
|
266
|
+
quoteMark: "double",
|
|
267
|
+
semicolons: true,
|
|
268
|
+
lineWidth: 80,
|
|
269
|
+
indentStyle: "space",
|
|
270
|
+
indentSize: 2,
|
|
271
|
+
importSymbol: "~",
|
|
272
|
+
trailingComma: "all",
|
|
273
|
+
bracketSpacing: true,
|
|
274
|
+
arrowParens: "always",
|
|
275
|
+
tabWidth: 2,
|
|
276
|
+
jsToTs: false,
|
|
277
|
+
cjsToEsm: false,
|
|
278
|
+
modernize: {
|
|
279
|
+
replaceFs: false,
|
|
280
|
+
replacePath: false,
|
|
281
|
+
replaceHttp: false,
|
|
282
|
+
replaceProcess: false,
|
|
283
|
+
replaceConsole: false,
|
|
284
|
+
replaceEvents: false
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
// Settings for cloning an existing repo
|
|
288
|
+
multipleRepoCloneMode: false,
|
|
289
|
+
customUserFocusedRepos: [],
|
|
290
|
+
customDevsFocusedRepos: [],
|
|
291
|
+
hideRepoSuggestions: false,
|
|
292
|
+
customReposOnNewProject: false,
|
|
293
|
+
// Set to false to disable opening the browser during env composing
|
|
294
|
+
envComposerOpenBrowser: true,
|
|
295
|
+
// Enable auto-answering for prompts to skip manual confirmations.
|
|
296
|
+
// Make sure you have unknown values configured above.
|
|
297
|
+
skipPromptsUseAutoBehavior: false,
|
|
298
|
+
// Prompt behavior for deployment
|
|
299
|
+
// Options: prompt | autoYes | autoNo
|
|
300
|
+
deployBehavior: "prompt",
|
|
301
|
+
depsBehavior: "prompt",
|
|
302
|
+
gitBehavior: "prompt",
|
|
303
|
+
i18nBehavior: "prompt",
|
|
304
|
+
scriptsBehavior: "prompt",
|
|
305
|
+
// Behavior for existing GitHub repos during project creation
|
|
306
|
+
// Options: prompt | autoYes | autoYesSkipCommit | autoNo
|
|
307
|
+
existingRepoBehavior: "prompt",
|
|
308
|
+
// Behavior for Reliverse AI chat and agent mode
|
|
309
|
+
// Options: promptOnce | promptEachFile | autoYes
|
|
310
|
+
relinterConfirm: "promptOnce",
|
|
311
|
+
// Remdn Configuration
|
|
312
|
+
remdn: {
|
|
313
|
+
title: "Directory Comparison",
|
|
314
|
+
output: "docs/files.html",
|
|
315
|
+
dirs: {
|
|
316
|
+
src: {},
|
|
317
|
+
"dist-npm/bin": {},
|
|
318
|
+
"dist-jsr/bin": {},
|
|
319
|
+
"dist-libs/sdk/npm/bin": {}
|
|
320
|
+
},
|
|
321
|
+
"ext-map": {
|
|
322
|
+
ts: ["ts", "js-d.ts", "ts"]
|
|
323
|
+
// [<main>, <dist-npm/bin | dist-libs's * npm/bin>, <dist-jsr | dist-libs's * jsr/bin>]
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
export const defineConfig = (userConfig = {}) => {
|
|
328
|
+
return { ...DEFAULT_CONFIG_RELIVERSE, ...userConfig };
|
|
329
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
2
|
import fs from "@reliverse/relifso";
|
|
3
3
|
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { generateReltypesContent } from "./
|
|
5
|
-
const LAST_UPDATED = "2025-08-
|
|
4
|
+
import { generateReltypesContent } from "./gen.js";
|
|
5
|
+
const LAST_UPDATED = "2025-08-26";
|
|
6
6
|
export async function checkIfRegenerationNeeded(reltypesPath) {
|
|
7
7
|
try {
|
|
8
8
|
const content = await fs.readFile(reltypesPath, "utf8");
|
|
@@ -11,11 +11,14 @@ export async function checkIfRegenerationNeeded(reltypesPath) {
|
|
|
11
11
|
if (!firstLine) {
|
|
12
12
|
return true;
|
|
13
13
|
}
|
|
14
|
-
const dateMatch = firstLine.match(
|
|
14
|
+
const dateMatch = firstLine.match(/^\/\/ reliverse\.ts types version (\d{4}-\d{2}-\d{2})\b/);
|
|
15
15
|
if (!dateMatch || !dateMatch[1]) {
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
18
18
|
const fileDate = new Date(dateMatch[1]);
|
|
19
|
+
if (Number.isNaN(fileDate.getTime())) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
19
22
|
const lastUpdated = new Date(LAST_UPDATED);
|
|
20
23
|
return fileDate < lastUpdated;
|
|
21
24
|
} catch {
|
package/bin/app/toolbox/cmd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineCommand } from "@reliverse/rempts";
|
|
2
|
-
import {
|
|
2
|
+
import { getOrCreateReliverseConfig } from "../config/core-cfg.js";
|
|
3
3
|
import { showDevToolsMenu } from "./toolbox-impl.js";
|
|
4
4
|
import { getOrCreateReliverseMemory } from "../utils/reliverseMemory.js";
|
|
5
5
|
import { getCurrentWorkingDirectory } from "../utils/terminalHelpers.js";
|
|
@@ -18,7 +18,7 @@ export default defineCommand({
|
|
|
18
18
|
run: async ({ args }) => {
|
|
19
19
|
const isDev = args.dev;
|
|
20
20
|
const cwd = getCurrentWorkingDirectory();
|
|
21
|
-
const { config } = await
|
|
21
|
+
const { config } = await getOrCreateReliverseConfig({
|
|
22
22
|
projectPath: cwd,
|
|
23
23
|
isDev,
|
|
24
24
|
overrides: {}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReliverseConfig } from "../schema/mod.js";
|
|
2
|
+
import type { ParamsOmitReli } from "../types/mod.js";
|
|
2
3
|
import type { RepoOption } from "../utils/projectRepository.js";
|
|
3
4
|
import type { ReliverseMemory } from "../utils/schemaMemory.js";
|
|
4
5
|
export declare function rmTestsRuntime(cwd: string): Promise<void>;
|
|
5
|
-
export declare function downloadRepoOption(template: RepoOption, config:
|
|
6
|
+
export declare function downloadRepoOption(template: RepoOption, config: ReliverseConfig, memory: ReliverseMemory, isDev: boolean, cwd: string, skipPrompts: boolean): Promise<void>;
|
|
6
7
|
export declare function showDevToolsMenu(params: ParamsOmitReli): Promise<void>;
|