@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
package/bin/mod.js
CHANGED
|
@@ -186,7 +186,6 @@ export {
|
|
|
186
186
|
} from "./app/build/providers/utils.js";
|
|
187
187
|
export { validateDependencies, validatePackage } from "./app/build/providers/validate.js";
|
|
188
188
|
export { regular_buildFlow, regular_pubFlow } from "./app/build/regular-flow.js";
|
|
189
|
-
export { app, showWebUiMenu } from "./app/cli/impl.js";
|
|
190
189
|
export { useFirecrawl } from "./app/clone/firecrawl/firecrawl-mod.js";
|
|
191
190
|
export { runCodemods } from "./app/cmod/cmod-impl.js";
|
|
192
191
|
export { getBiomeConfig } from "./app/config/biome.js";
|
|
@@ -232,31 +231,39 @@ export {
|
|
|
232
231
|
} from "./app/config/constants.js";
|
|
233
232
|
export { getProjectContent } from "./app/config/content.js";
|
|
234
233
|
export { ensureConfigMod } from "./app/config/core.js";
|
|
235
|
-
export {
|
|
236
|
-
export {
|
|
237
|
-
|
|
238
|
-
|
|
234
|
+
export { getOrCreateReliverseConfig } from "./app/config/core-cfg.js";
|
|
235
|
+
export {
|
|
236
|
+
createReliverseConfig,
|
|
237
|
+
generateReliverseConfig,
|
|
238
|
+
writeReliverseConfig
|
|
239
|
+
} from "./app/config/create.js";
|
|
240
|
+
export {
|
|
241
|
+
generateDefaultRulesForProject,
|
|
242
|
+
getDefaultReliverseConfig
|
|
243
|
+
} from "./app/config/def-utils.js";
|
|
239
244
|
export {
|
|
240
245
|
detectFeatures,
|
|
241
246
|
detectProject,
|
|
242
247
|
detectProjectFramework,
|
|
243
|
-
|
|
248
|
+
detectProjectsWithReliverseConfig,
|
|
244
249
|
getPackageJson,
|
|
245
|
-
getPackageJsonSafe
|
|
250
|
+
getPackageJsonSafe,
|
|
251
|
+
PROJECT_FRAMEWORK_FILES
|
|
246
252
|
} from "./app/config/detect.js";
|
|
247
253
|
export { generateConfigFiles, generateProjectConfigs } from "./app/config/gen-cfg.js";
|
|
248
254
|
export { getConfigBunfig, getConfigDler } from "./app/config/load.js";
|
|
249
|
-
export {
|
|
250
|
-
export {
|
|
255
|
+
export { migrateReliverseConfig } from "./app/config/migrate.js";
|
|
256
|
+
export { getReliverseConfigPath } from "./app/config/path.js";
|
|
251
257
|
export { ensureReliverseConfig, prepareReliverseEnvironment } from "./app/config/prepare.js";
|
|
252
|
-
export {
|
|
253
|
-
export {
|
|
254
|
-
export {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
+
export { askReliverseConfigType } from "./app/config/prompts.js";
|
|
259
|
+
export { readReliverseConfig, readRseTs } from "./app/config/read.js";
|
|
260
|
+
export {
|
|
261
|
+
fixLineByLine,
|
|
262
|
+
parseAndFixReliverseConfig,
|
|
263
|
+
repairAndParseJSON
|
|
264
|
+
} from "./app/config/repair.js";
|
|
258
265
|
export { loadrse, watchrse } from "./app/config/unstable.js";
|
|
259
|
-
export { mergeWithDefaults,
|
|
266
|
+
export { mergeWithDefaults, updateReliverseConfig } from "./app/config/update.js";
|
|
260
267
|
export {
|
|
261
268
|
atomicWriteFile,
|
|
262
269
|
cleanGitHubUrl,
|
|
@@ -339,13 +346,8 @@ export {
|
|
|
339
346
|
showSuccessAndNextSteps
|
|
340
347
|
} from "./app/init/use-template/cp-impl.js";
|
|
341
348
|
export { createMobileProject, createWebProject } from "./app/init/use-template/cp-mod.js";
|
|
342
|
-
export { getMainMenuOptions } from "./app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.js";
|
|
343
349
|
export { showCloneProjectMenu } from "./app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.js";
|
|
344
350
|
export { showAnykeyPrompt } from "./app/init/use-template/cp-modules/cli-main-modules/modules/showAnykeyPrompt.js";
|
|
345
|
-
export {
|
|
346
|
-
showEndPrompt,
|
|
347
|
-
showStartPrompt
|
|
348
|
-
} from "./app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js";
|
|
349
351
|
export {
|
|
350
352
|
copyFromExisting,
|
|
351
353
|
ensureEnvExists,
|
|
@@ -611,7 +613,7 @@ export { dlerPub } from "./app/pub/impl.js";
|
|
|
611
613
|
export { library_publishLibrary } from "./app/pub/pub-library.js";
|
|
612
614
|
export { regular_pubToJsr, regular_pubToNpm } from "./app/pub/pub-regular.js";
|
|
613
615
|
export { scanDirectories } from "./app/remdn/cmd.js";
|
|
614
|
-
export {
|
|
616
|
+
export { checkReliverseConfigHealth } from "./app/rules/reliverse/dler-config-health/dler-config-health.js";
|
|
615
617
|
export { checkFileExtensions } from "./app/rules/reliverse/file-extensions/file-extensions.js";
|
|
616
618
|
export { analyzeDependencies } from "./app/rules/reliverse/missing-deps/analyzer.js";
|
|
617
619
|
export { checkMissingDependencies } from "./app/rules/reliverse/missing-deps/deps-mod.js";
|
|
@@ -641,6 +643,9 @@ export {
|
|
|
641
643
|
} from "./app/rules/rules-consts.js";
|
|
642
644
|
export { displayCheckResults } from "./app/rules/rules-mod.js";
|
|
643
645
|
export { getAllFiles, getLineNumber, shouldIgnoreFile } from "./app/rules/rules-utils.js";
|
|
646
|
+
export { generateReltypesContent } from "./app/schema/gen.js";
|
|
647
|
+
export { DEFAULT_CONFIG_RELIVERSE, defineConfig } from "./app/schema/mod.js";
|
|
648
|
+
export { checkIfRegenerationNeeded, ensureReltypesFile } from "./app/schema/utils.js";
|
|
644
649
|
export { getAllSourceFiles, splitLargeFileByLines, splitLargeFunctions } from "./app/split/impl.js";
|
|
645
650
|
export {
|
|
646
651
|
downloadRepoOption,
|
|
@@ -671,7 +676,6 @@ export {
|
|
|
671
676
|
update,
|
|
672
677
|
wrapWith
|
|
673
678
|
} from "./app/transform/transform-impl-mod.js";
|
|
674
|
-
export { DEFAULT_CONFIG_DLER, defineConfig } from "./app/types/mod.js";
|
|
675
679
|
export {
|
|
676
680
|
checkPackageUpdates,
|
|
677
681
|
displayUpdateSummary,
|
|
@@ -680,6 +684,7 @@ export {
|
|
|
680
684
|
handleInstallation,
|
|
681
685
|
handleInteractiveSelection,
|
|
682
686
|
handleRecursiveUpdates,
|
|
687
|
+
handleToolUpgrades,
|
|
683
688
|
handleWorkspaceUpdates,
|
|
684
689
|
prepareUpdateCandidates,
|
|
685
690
|
updateRootPackageJson,
|
|
@@ -812,7 +817,7 @@ export {
|
|
|
812
817
|
THEMES,
|
|
813
818
|
updateComponent
|
|
814
819
|
} from "./app/utils/handlers/shadcn.js";
|
|
815
|
-
export { hasOnlyRse } from "./app/utils/
|
|
820
|
+
export { hasOnlyRse } from "./app/utils/hasOnlyReliverseConfig.js";
|
|
816
821
|
export {
|
|
817
822
|
CONTENT_CREATE_MODES,
|
|
818
823
|
DEST_FILE_EXISTS_BEHAVIOURS,
|
|
@@ -835,8 +840,6 @@ export {
|
|
|
835
840
|
export { askVercelToken, initVercelSDK } from "./app/utils/instanceVercel.js";
|
|
836
841
|
export { getMaxHeightSize, sleep } from "./app/utils/microHelpers.js";
|
|
837
842
|
export { hasConfigFiles, isMrseProject } from "./app/utils/mrseHelpers.js";
|
|
838
|
-
export { downloadJsrDist } from "./app/utils/native-cli/nc-impl.js";
|
|
839
|
-
export { showNativeCliMenu } from "./app/utils/native-cli/nc-mod.js";
|
|
840
843
|
export { checkScriptExists } from "./app/utils/pkgJsonHelpers.js";
|
|
841
844
|
export {
|
|
842
845
|
addDependency,
|
|
@@ -907,7 +910,13 @@ export {
|
|
|
907
910
|
shouldRegenerateSchema
|
|
908
911
|
} from "./app/utils/schemaTemplate.js";
|
|
909
912
|
export { createSpinner, SimpleSpinner } from "./app/utils/spinner.js";
|
|
910
|
-
export {
|
|
913
|
+
export {
|
|
914
|
+
getPkgName,
|
|
915
|
+
getPkgVersion,
|
|
916
|
+
readPackageJSON,
|
|
917
|
+
showEndPrompt,
|
|
918
|
+
showStartPrompt
|
|
919
|
+
} from "./app/utils/startEndPrompts.js";
|
|
911
920
|
export {
|
|
912
921
|
cd,
|
|
913
922
|
getCurrentWorkingDirectory,
|
package/package.json
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"@reliverse/bleump": "^1.1.6",
|
|
17
17
|
"@reliverse/pathkit": "^1.3.4",
|
|
18
18
|
"@reliverse/reglob": "^1.0.0",
|
|
19
|
-
"@reliverse/relico": "^1.3.
|
|
19
|
+
"@reliverse/relico": "^1.3.8",
|
|
20
20
|
"@reliverse/relifso": "^1.4.5",
|
|
21
|
-
"@reliverse/relinka": "^1.
|
|
22
|
-
"@reliverse/rempts": "^1.7.
|
|
21
|
+
"@reliverse/relinka": "^1.6.0",
|
|
22
|
+
"@reliverse/rempts": "^1.7.56",
|
|
23
23
|
"@reliverse/runtime": "^1.0.3",
|
|
24
24
|
"@rollup/plugin-alias": "^5.1.1",
|
|
25
25
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
@@ -81,21 +81,21 @@
|
|
|
81
81
|
"p-map": "^7.0.3",
|
|
82
82
|
"path-key": "^4.0.0",
|
|
83
83
|
"pkg-types": "^2.3.0",
|
|
84
|
-
"postcss-nested": "^7.0.2",
|
|
85
84
|
"postcss": "^8.5.6",
|
|
85
|
+
"postcss-nested": "^7.0.2",
|
|
86
86
|
"postgres": "^3.4.7",
|
|
87
87
|
"posthog-node": "^5.7.0",
|
|
88
88
|
"pretty-bytes": "^7.0.1",
|
|
89
89
|
"pretty-ms": "^9.2.0",
|
|
90
90
|
"querystring": "^0.2.1",
|
|
91
91
|
"random-words": "^2.0.1",
|
|
92
|
+
"react": "^19.1.1",
|
|
92
93
|
"react-dom": "^19.1.1",
|
|
93
94
|
"react-hook-form": "^7.62.0",
|
|
94
|
-
"react": "^19.1.1",
|
|
95
95
|
"registry-auth-token": "^5.1.0",
|
|
96
96
|
"registry-url": "^7.2.0",
|
|
97
|
-
"rollup-plugin-dts": "^6.2.3",
|
|
98
97
|
"rollup": "^4.48.1",
|
|
98
|
+
"rollup-plugin-dts": "^6.2.3",
|
|
99
99
|
"sass": "^1.90.0",
|
|
100
100
|
"scule": "^1.3.0",
|
|
101
101
|
"semver": "^7.7.2",
|
|
@@ -103,20 +103,20 @@
|
|
|
103
103
|
"simple-git": "^3.28.0",
|
|
104
104
|
"strip-json-comments": "^5.0.3",
|
|
105
105
|
"tailwind-merge": "^3.3.1",
|
|
106
|
-
"tailwindcss-animate": "^1.0.7",
|
|
107
106
|
"tailwindcss": "^4.1.12",
|
|
108
|
-
"
|
|
107
|
+
"tailwindcss-animate": "^1.0.7",
|
|
109
108
|
"tar": "^7.4.3",
|
|
109
|
+
"tar-stream": "^3.1.7",
|
|
110
110
|
"tinyglobby": "^0.2.14",
|
|
111
111
|
"ts-morph": "^26.0.0",
|
|
112
112
|
"uncrypto": "^0.1.3",
|
|
113
113
|
"untyped": "^2.0.0",
|
|
114
114
|
"uploadthing": "^7.7.4",
|
|
115
|
+
"vue": "^3.5.20",
|
|
115
116
|
"vue-sfc-transformer": "^0.1.16",
|
|
116
117
|
"vue-tsc": "^3.0.6",
|
|
117
118
|
"vue-tsc1": "npm:vue-tsc@1.8.27",
|
|
118
119
|
"vue-tsc2.0": "npm:vue-tsc@2.0.29",
|
|
119
|
-
"vue": "^3.5.20",
|
|
120
120
|
"zod": "^4.1.1"
|
|
121
121
|
},
|
|
122
122
|
"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.",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"license": "MIT",
|
|
125
125
|
"name": "@reliverse/dler",
|
|
126
126
|
"type": "module",
|
|
127
|
-
"version": "1.7.
|
|
127
|
+
"version": "1.7.115",
|
|
128
128
|
"keywords": [
|
|
129
129
|
"reliverse",
|
|
130
130
|
"cli",
|
package/bin/app/agg/cmd.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@reliverse/rempts").Command<{
|
|
2
|
-
imports: {
|
|
3
|
-
description: string;
|
|
4
|
-
type: "boolean";
|
|
5
|
-
};
|
|
6
|
-
input: {
|
|
7
|
-
description: string;
|
|
8
|
-
type: "string";
|
|
9
|
-
};
|
|
10
|
-
named: {
|
|
11
|
-
description: string;
|
|
12
|
-
type: "boolean";
|
|
13
|
-
default: true;
|
|
14
|
-
};
|
|
15
|
-
out: {
|
|
16
|
-
description: string;
|
|
17
|
-
type: "string";
|
|
18
|
-
};
|
|
19
|
-
recursive: {
|
|
20
|
-
description: string;
|
|
21
|
-
type: "boolean";
|
|
22
|
-
default: true;
|
|
23
|
-
};
|
|
24
|
-
strip: {
|
|
25
|
-
description: string;
|
|
26
|
-
type: "string";
|
|
27
|
-
};
|
|
28
|
-
sort: {
|
|
29
|
-
description: string;
|
|
30
|
-
type: "boolean";
|
|
31
|
-
};
|
|
32
|
-
header: {
|
|
33
|
-
description: string;
|
|
34
|
-
type: "string";
|
|
35
|
-
};
|
|
36
|
-
verbose: {
|
|
37
|
-
description: string;
|
|
38
|
-
type: "boolean";
|
|
39
|
-
};
|
|
40
|
-
includeInternal: {
|
|
41
|
-
description: string;
|
|
42
|
-
type: "boolean";
|
|
43
|
-
};
|
|
44
|
-
internalMarker: {
|
|
45
|
-
description: string;
|
|
46
|
-
type: "string";
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
override: {
|
|
50
|
-
description: string;
|
|
51
|
-
type: "boolean";
|
|
52
|
-
};
|
|
53
|
-
extensions: {
|
|
54
|
-
description: string;
|
|
55
|
-
type: "string";
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
separateTypesFile: {
|
|
59
|
-
description: string;
|
|
60
|
-
type: "boolean";
|
|
61
|
-
};
|
|
62
|
-
typesOut: {
|
|
63
|
-
description: string;
|
|
64
|
-
type: "string";
|
|
65
|
-
};
|
|
66
|
-
nonInteractive: {
|
|
67
|
-
description: string;
|
|
68
|
-
type: "boolean";
|
|
69
|
-
default: false;
|
|
70
|
-
};
|
|
71
|
-
}>;
|
|
72
|
-
export default _default;
|
package/bin/app/agg/cmd.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import path from "@reliverse/pathkit";
|
|
2
|
-
import { defineArgs, defineCommand, inputPrompt } from "@reliverse/rempts";
|
|
3
|
-
import { useAggregator } from "../utils/agg/agg-2.js";
|
|
4
|
-
export default defineCommand({
|
|
5
|
-
args: defineArgs({
|
|
6
|
-
imports: {
|
|
7
|
-
description: "If true, produce import lines instead of export lines",
|
|
8
|
-
type: "boolean"
|
|
9
|
-
},
|
|
10
|
-
input: {
|
|
11
|
-
description: "Directory containing .ts/.js files (--input <directory>)",
|
|
12
|
-
type: "string"
|
|
13
|
-
},
|
|
14
|
-
named: {
|
|
15
|
-
description: "Parse each file for named exports (function/class/const/let)",
|
|
16
|
-
type: "boolean",
|
|
17
|
-
default: true
|
|
18
|
-
},
|
|
19
|
-
out: {
|
|
20
|
-
description: "Output aggregator file path (--out <fileName>)",
|
|
21
|
-
type: "string"
|
|
22
|
-
},
|
|
23
|
-
recursive: {
|
|
24
|
-
description: "Recursively scan subdirectories (default true) (false means only scan the files in the current directory and not subdirectories)",
|
|
25
|
-
type: "boolean",
|
|
26
|
-
default: true
|
|
27
|
-
},
|
|
28
|
-
strip: {
|
|
29
|
-
description: "Remove specified path prefix from final imports/exports",
|
|
30
|
-
type: "string"
|
|
31
|
-
},
|
|
32
|
-
sort: {
|
|
33
|
-
description: "Sort aggregated lines alphabetically",
|
|
34
|
-
type: "boolean"
|
|
35
|
-
},
|
|
36
|
-
header: {
|
|
37
|
-
description: "Add a header comment to the aggregator output",
|
|
38
|
-
type: "string"
|
|
39
|
-
},
|
|
40
|
-
verbose: {
|
|
41
|
-
description: "Enable verbose logging",
|
|
42
|
-
type: "boolean"
|
|
43
|
-
},
|
|
44
|
-
includeInternal: {
|
|
45
|
-
description: "Include files marked as internal (starting with #)",
|
|
46
|
-
type: "boolean"
|
|
47
|
-
},
|
|
48
|
-
internalMarker: {
|
|
49
|
-
description: "Marker for internal files (default: #)",
|
|
50
|
-
type: "string",
|
|
51
|
-
default: "#"
|
|
52
|
-
},
|
|
53
|
-
override: {
|
|
54
|
-
description: "Override entire file instead of updating only the aggregator block",
|
|
55
|
-
type: "boolean"
|
|
56
|
-
},
|
|
57
|
-
extensions: {
|
|
58
|
-
description: "Comma-separated list of file extensions to process (default: .ts,.js,.mts,.cts,.mjs,.cjs)",
|
|
59
|
-
type: "string",
|
|
60
|
-
default: ".ts,.js,.mts,.cts,.mjs,.cjs"
|
|
61
|
-
},
|
|
62
|
-
separateTypesFile: {
|
|
63
|
-
description: "Create a separate file for type exports",
|
|
64
|
-
type: "boolean"
|
|
65
|
-
},
|
|
66
|
-
typesOut: {
|
|
67
|
-
description: "Output file path for types (used when separateTypesFile is true)",
|
|
68
|
-
type: "string"
|
|
69
|
-
},
|
|
70
|
-
nonInteractive: {
|
|
71
|
-
description: "Disable interactive prompts and require all arguments to be provided via flags",
|
|
72
|
-
type: "boolean",
|
|
73
|
-
default: false
|
|
74
|
-
}
|
|
75
|
-
}),
|
|
76
|
-
async run({ args }) {
|
|
77
|
-
const resolvedArgs = { ...args };
|
|
78
|
-
if (!args.nonInteractive) {
|
|
79
|
-
if (!args.input) {
|
|
80
|
-
resolvedArgs.input = await inputPrompt({
|
|
81
|
-
title: "Enter input directory containing .ts/.js files:",
|
|
82
|
-
defaultValue: ""
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
if (!args.out) {
|
|
86
|
-
resolvedArgs.out = await inputPrompt({
|
|
87
|
-
title: "Enter output aggregator file path:",
|
|
88
|
-
defaultValue: ""
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
if (args.separateTypesFile && !args.typesOut) {
|
|
92
|
-
resolvedArgs.typesOut = await inputPrompt({
|
|
93
|
-
title: "Enter output file path for types:",
|
|
94
|
-
defaultValue: resolvedArgs.out.replace(/\.(ts|js)$/, ".types.$1")
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
} else {
|
|
98
|
-
if (!args.input) {
|
|
99
|
-
throw new Error("Missing required argument: --input");
|
|
100
|
-
}
|
|
101
|
-
if (!args.out) {
|
|
102
|
-
throw new Error("Missing required argument: --out");
|
|
103
|
-
}
|
|
104
|
-
if (args.separateTypesFile && !args.typesOut) {
|
|
105
|
-
throw new Error(
|
|
106
|
-
"Missing required argument: --typesOut (required when --separateTypesFile is true)"
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
await useAggregator({
|
|
111
|
-
inputDir: path.resolve(resolvedArgs.input),
|
|
112
|
-
isRecursive: !!resolvedArgs.recursive,
|
|
113
|
-
outFile: path.resolve(resolvedArgs.out),
|
|
114
|
-
stripPrefix: resolvedArgs.strip ? path.resolve(resolvedArgs.strip) : "",
|
|
115
|
-
useImport: !!resolvedArgs.imports,
|
|
116
|
-
useNamed: !!resolvedArgs.named,
|
|
117
|
-
sortLines: !!resolvedArgs.sort,
|
|
118
|
-
headerComment: resolvedArgs.header || "",
|
|
119
|
-
verbose: !!resolvedArgs.verbose,
|
|
120
|
-
includeInternal: !!resolvedArgs.includeInternal,
|
|
121
|
-
internalMarker: resolvedArgs.internalMarker,
|
|
122
|
-
overrideFile: !!resolvedArgs.override,
|
|
123
|
-
fileExtensions: resolvedArgs.extensions.split(",").map((ext) => ext.trim()),
|
|
124
|
-
separateTypesFile: !!resolvedArgs.separateTypesFile,
|
|
125
|
-
typesOutFile: resolvedArgs.typesOut ? path.resolve(resolvedArgs.typesOut) : void 0
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
});
|
package/bin/app/cli/cmd.d.ts
DELETED
package/bin/app/cli/cmd.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import fs, { ensuredir } from "@reliverse/relifso";
|
|
2
|
-
import { relinka } from "@reliverse/relinka";
|
|
3
|
-
import { defineCommand } from "@reliverse/rempts";
|
|
4
|
-
import { cliName, useLocalhost } from "../config/constants.js";
|
|
5
|
-
import { getOrCreateRseConfig } from "../config/core-cfg.js";
|
|
6
|
-
import { showStartPrompt } from "../init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js";
|
|
7
|
-
import { authCheck } from "../login/login-impl.js";
|
|
8
|
-
import { getOrCreateReliverseMemory } from "../utils/reliverseMemory.js";
|
|
9
|
-
import { getCurrentWorkingDirectory } from "../utils/terminalHelpers.js";
|
|
10
|
-
import { app } from "./impl.js";
|
|
11
|
-
export default defineCommand({
|
|
12
|
-
meta: {
|
|
13
|
-
name: "cli",
|
|
14
|
-
description: `Runs the ${cliName}`
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
dev: {
|
|
18
|
-
type: "boolean",
|
|
19
|
-
description: "Runs the CLI in dev mode"
|
|
20
|
-
},
|
|
21
|
-
cwd: {
|
|
22
|
-
type: "string",
|
|
23
|
-
description: "The working directory to run the CLI in",
|
|
24
|
-
required: false
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
run: async ({ args }) => {
|
|
28
|
-
const isDev = args.dev;
|
|
29
|
-
await showStartPrompt(isDev, false);
|
|
30
|
-
if (!process.versions.bun) {
|
|
31
|
-
relinka.warn(
|
|
32
|
-
"Rse is currently optimized for Bun only. Unexpected behavior may occur with other runtimes."
|
|
33
|
-
);
|
|
34
|
-
relinka.warn("To avoid issues, it's strongly recommended to install Bun: https://bun.sh/get");
|
|
35
|
-
}
|
|
36
|
-
let cwd;
|
|
37
|
-
if (args.cwd) {
|
|
38
|
-
cwd = args.cwd;
|
|
39
|
-
if (!await fs.pathExists(cwd)) {
|
|
40
|
-
await ensuredir(cwd);
|
|
41
|
-
}
|
|
42
|
-
} else {
|
|
43
|
-
cwd = getCurrentWorkingDirectory();
|
|
44
|
-
}
|
|
45
|
-
const memory = await getOrCreateReliverseMemory();
|
|
46
|
-
const { config, mrse } = await getOrCreateRseConfig({
|
|
47
|
-
projectPath: cwd,
|
|
48
|
-
isDev,
|
|
49
|
-
overrides: {}
|
|
50
|
-
});
|
|
51
|
-
await authCheck(isDev, memory, useLocalhost);
|
|
52
|
-
const updatedMemory = await getOrCreateReliverseMemory();
|
|
53
|
-
await app({ cwd, isDev, config, memory: updatedMemory, mrse });
|
|
54
|
-
process.exit(0);
|
|
55
|
-
}
|
|
56
|
-
});
|
package/bin/app/cli/impl.d.ts
DELETED
package/bin/app/cli/impl.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { callCmd, selectPrompt } from "@reliverse/rempts";
|
|
2
|
-
import { generate } from "random-words";
|
|
3
|
-
import { aiMenu } from "../ai/ai-menu.js";
|
|
4
|
-
import { cliJsrPath, UNKNOWN_VALUE } from "../config/constants.js";
|
|
5
|
-
import { detectProject } from "../config/detect.js";
|
|
6
|
-
import { ad, getRandomMessage, getWelcomeTitle, premium } from "../db/messages.js";
|
|
7
|
-
import { showManualBuilderMenu } from "../init/init-utils/init-impl.js";
|
|
8
|
-
import { getMainMenuOptions } from "../init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.js";
|
|
9
|
-
import { showCloneProjectMenu } from "../init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.js";
|
|
10
|
-
import { showEndPrompt } from "../init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js";
|
|
11
|
-
import {
|
|
12
|
-
showNewProjectMenu,
|
|
13
|
-
showOpenProjectMenu
|
|
14
|
-
} from "../providers/reliverse-stack/reliverse-stack-mod.js";
|
|
15
|
-
import { showDevToolsMenu } from "../toolbox/toolbox-impl.js";
|
|
16
|
-
import { showNativeCliMenu } from "../utils/native-cli/nc-mod.js";
|
|
17
|
-
import { default as webCmd } from "../web/cmd.js";
|
|
18
|
-
export async function app(params) {
|
|
19
|
-
const { cwd, isDev, mrse, memory, config } = params;
|
|
20
|
-
const skipPrompts = config.skipPromptsUseAutoBehavior ?? false;
|
|
21
|
-
const frontendUsername = memory.name !== "" ? memory.name : UNKNOWN_VALUE;
|
|
22
|
-
const projectName = isDev ? generate({ exactly: 2, join: "-" }) : config.projectName ?? UNKNOWN_VALUE;
|
|
23
|
-
if (!isDev) {
|
|
24
|
-
await detectProject(cwd, isDev);
|
|
25
|
-
}
|
|
26
|
-
const options = await getMainMenuOptions(cwd, isDev, mrse);
|
|
27
|
-
const mainMenuOption = await selectPrompt({
|
|
28
|
-
options,
|
|
29
|
-
title: frontendUsername ? getWelcomeTitle(frontendUsername) : getRandomMessage("welcome"),
|
|
30
|
-
content: `[Ad] ${ad}
|
|
31
|
-
${premium}`,
|
|
32
|
-
titleColor: "retroGradient",
|
|
33
|
-
displayInstructions: true,
|
|
34
|
-
endTitle: "\u270B User pressed Ctrl+C, exiting..."
|
|
35
|
-
});
|
|
36
|
-
if (mainMenuOption === "create") {
|
|
37
|
-
await showNewProjectMenu({
|
|
38
|
-
projectName,
|
|
39
|
-
cwd,
|
|
40
|
-
isDev,
|
|
41
|
-
memory,
|
|
42
|
-
config,
|
|
43
|
-
mrse,
|
|
44
|
-
skipPrompts
|
|
45
|
-
});
|
|
46
|
-
} else if (mainMenuOption === "clone") {
|
|
47
|
-
await showCloneProjectMenu({ isDev, cwd, config, memory });
|
|
48
|
-
} else if (mainMenuOption === "native-cli") {
|
|
49
|
-
const outputDir = cliJsrPath;
|
|
50
|
-
await showNativeCliMenu({ outputDir });
|
|
51
|
-
} else if (mainMenuOption === "manual") {
|
|
52
|
-
await showManualBuilderMenu({
|
|
53
|
-
projectName,
|
|
54
|
-
cwd,
|
|
55
|
-
isDev,
|
|
56
|
-
memory,
|
|
57
|
-
config,
|
|
58
|
-
skipPrompts
|
|
59
|
-
});
|
|
60
|
-
} else if (mainMenuOption === "detected-projects") {
|
|
61
|
-
await showOpenProjectMenu({
|
|
62
|
-
projectName,
|
|
63
|
-
cwd,
|
|
64
|
-
isDev,
|
|
65
|
-
memory,
|
|
66
|
-
config,
|
|
67
|
-
mrse,
|
|
68
|
-
skipPrompts
|
|
69
|
-
});
|
|
70
|
-
} else if (mainMenuOption === "isDevTools") {
|
|
71
|
-
await showDevToolsMenu({
|
|
72
|
-
projectName,
|
|
73
|
-
cwd,
|
|
74
|
-
isDev,
|
|
75
|
-
config,
|
|
76
|
-
memory,
|
|
77
|
-
skipPrompts
|
|
78
|
-
});
|
|
79
|
-
} else if (mainMenuOption === "ai") {
|
|
80
|
-
await aiMenu(config, false, memory);
|
|
81
|
-
} else if (mainMenuOption === "web-ui") {
|
|
82
|
-
await showWebUiMenu();
|
|
83
|
-
}
|
|
84
|
-
await showEndPrompt();
|
|
85
|
-
}
|
|
86
|
-
export async function showWebUiMenu() {
|
|
87
|
-
await callCmd(webCmd, {});
|
|
88
|
-
}
|