@reliverse/dler 1.7.4 → 1.7.5

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/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { re } from "@reliverse/relico";
1
2
  import { relinka } from "@reliverse/relinka";
2
3
  import {
3
4
  runMain,
@@ -10,6 +11,7 @@ import {
10
11
  import { promptAggCommand } from "./app/agg/run.js";
11
12
  import { getBuildCmd, getPubCmd, getInitCmd, getRenameCmd } from "./app/cmds.js";
12
13
  import { showEndPrompt, showStartPrompt } from "./libs/sdk/sdk-impl/cfg/info.js";
14
+ import { ensureDlerConfig } from "./libs/sdk/sdk-impl/cfg/init.js";
13
15
  const INTERACTIVE_CMDS = ["agg", "build", "pub"];
14
16
  async function runCmd(cmdPromise, args) {
15
17
  const cmd = await cmdPromise;
@@ -39,6 +41,7 @@ Available interactive commands: ${INTERACTIVE_CMDS.join(", ")}`
39
41
  async run({ args }) {
40
42
  const isDev = args.dev;
41
43
  relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
44
+ await ensureDlerConfig(args.dev);
42
45
  const isCI = process.env.CI === "true";
43
46
  const isNonInteractive = !process.stdout.isTTY;
44
47
  if (isCI || isNonInteractive) {
@@ -53,21 +56,21 @@ Available interactive commands: ${INTERACTIVE_CMDS.join(", ")}`
53
56
  const cmdToRun = await selectPrompt({
54
57
  title: "Select a command to run",
55
58
  options: [
56
- { value: "agg", label: "agg" },
57
- { value: "build", label: "build" },
58
- { value: "pub", label: "pub" },
59
- { value: "copy", label: "copy" },
60
- {
61
- value: "init",
62
- label: "Initialize files"
63
- },
59
+ { value: "build", label: "build project" },
60
+ { value: "pub", label: "publish project" },
61
+ { value: "agg", label: "aggregate files" },
62
+ { separator: true },
63
+ { value: "utils", label: re.bold("UTILS"), disabled: true },
64
+ { separator: true },
65
+ { value: "copy", label: "copy files" },
66
+ { value: "init", label: "init files" },
64
67
  {
65
68
  value: "rename-prepare",
66
- label: "My project is a bootstrapper CLI (apply rename optimizations)"
69
+ label: "[experimental] my project is a bootstrapper cli (apply rename optimizations)"
67
70
  },
68
71
  {
69
72
  value: "rename-prepare-revert",
70
- label: "Revert rename CLI files optimizations"
73
+ label: "[experimental] revert rename cli files optimizations"
71
74
  }
72
75
  ]
73
76
  });
@@ -32,8 +32,8 @@ import {
32
32
  createJsrJSON,
33
33
  renameTsxFiles
34
34
  } from "../utils/utils-jsr-json.js";
35
- import { getElapsedPerfTime } from "../utils/utils-perf.js";
36
35
  import { library_createPackageJSON } from "../utils/utils-package-json-libraries.js";
36
+ import { getElapsedPerfTime } from "../utils/utils-perf.js";
37
37
  const BIN_DIR_NAME = "bin";
38
38
  const REPLACEMENT_MARKER = "// dler-replace-me";
39
39
  const TYPES_REPLACEMENT_PATH = "src/types.ts";
@@ -25,8 +25,8 @@ import {
25
25
  createJsrJSON,
26
26
  renameTsxFiles
27
27
  } from "../utils/utils-jsr-json.js";
28
- import { getElapsedPerfTime } from "../utils/utils-perf.js";
29
28
  import { regular_createPackageJSON } from "../utils/utils-package-json-regular.js";
29
+ import { getElapsedPerfTime } from "../utils/utils-perf.js";
30
30
  const ALIAS_PREFIX_TO_CONVERT = "~";
31
31
  export async function regular_buildJsrDist(isDev, isJsr, coreIsCLI, coreEntrySrcDir, distJsrDirName, distJsrBuilder, coreEntryFile, transpileTarget, transpileFormat, transpileSplitting, transpileMinify, transpileSourcemap, transpilePublicPath, unifiedBundlerOutExt, config, timer, transpileStub, transpileWatch, distJsrGenTsconfig, coreDeclarations) {
32
32
  const outDirRoot = path.join(process.cwd(), distJsrDirName);
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.4";
2
+ const version = "1.7.5";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "license": "MIT",
40
40
  "name": "@reliverse/dler",
41
41
  "type": "module",
42
- "version": "1.7.4",
42
+ "version": "1.7.5",
43
43
  "keywords": [
44
44
  "reliverse",
45
45
  "cli",