@reliverse/dler 1.7.110 → 1.7.111

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.
@@ -4,6 +4,7 @@ import { dlerBuild } from "./impl.js";
4
4
  import { getConfigDler } from "../config/load.js";
5
5
  import { finalizeBuild } from "../utils/finalize.js";
6
6
  import { prepareReliverseEnvironment } from "../config/prepare.js";
7
+ import { createPerfTimer } from "../utils/utils-perf.js";
7
8
  export default defineCommand({
8
9
  meta: {
9
10
  name: "build",
@@ -28,7 +29,9 @@ export default defineCommand({
28
29
  await prepareReliverseEnvironment(isDev, "ts");
29
30
  relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
30
31
  const config = await getConfigDler();
31
- const { timer } = await dlerBuild(
32
+ const timer = createPerfTimer();
33
+ await dlerBuild(
34
+ timer,
32
35
  isDev,
33
36
  config,
34
37
  args.debugOnlyCopyNonBuildFiles,
@@ -1,10 +1,10 @@
1
- import type { DlerConfig } from "../types/mod.js";
1
+ import type { DlerConfig, PerfTimer } from "../types/mod.js";
2
2
  /**
3
3
  * Main entry point for the dler build process.
4
4
  * Handles building for both main project and libraries.
5
5
  * @see `src-ts/app/pub/impl.ts` for pub main function implementation.
6
6
  */
7
- export declare function dlerBuild(isDev: boolean, config?: DlerConfig, debugOnlyCopyNonBuildFiles?: boolean, debugDontCopyNonBuildFiles?: boolean, disableOwnSpinner?: boolean): Promise<{
8
- timer: any;
7
+ export declare function dlerBuild(timer: PerfTimer, isDev: boolean, config?: DlerConfig, debugOnlyCopyNonBuildFiles?: boolean, debugDontCopyNonBuildFiles?: boolean, disableOwnSpinner?: boolean): Promise<{
8
+ timer: PerfTimer;
9
9
  effectiveConfig: any;
10
10
  } | undefined>;
@@ -8,11 +8,9 @@ import { getConfigDler } from "../config/load.js";
8
8
  import { createSpinner } from "../utils/spinner.js";
9
9
  import { removeDistFolders } from "../utils/utils-clean.js";
10
10
  import { handleDlerError } from "../utils/utils-error-cwd.js";
11
- import { createPerfTimer } from "../utils/utils-perf.js";
12
11
  import { dlerPostBuild, wrapper_CopyNonBuildFiles } from "./postbuild.js";
13
12
  import { dlerPreBuild } from "./prebuild.js";
14
- export async function dlerBuild(isDev, config, debugOnlyCopyNonBuildFiles, debugDontCopyNonBuildFiles, disableOwnSpinner) {
15
- const timer = createPerfTimer();
13
+ export async function dlerBuild(timer, isDev, config, debugOnlyCopyNonBuildFiles, debugDontCopyNonBuildFiles, disableOwnSpinner) {
16
14
  let effectiveConfig = config;
17
15
  let shouldShowSpinner = false;
18
16
  let spinner = null;
@@ -1,5 +1,5 @@
1
1
  export declare const PROJECT_ROOT: string;
2
- export declare const cliVersion = "1.7.110";
2
+ export declare const cliVersion = "1.7.111";
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.110";
4
+ const version = "1.7.111";
5
5
  export const cliVersion = version;
6
6
  export const cliName = "@reliverse/rse";
7
7
  export const rseName = "@reliverse/rse";
@@ -3,6 +3,7 @@ import { defineArgs, defineCommand } from "@reliverse/rempts";
3
3
  import { dlerBuild } from "../build/impl.js";
4
4
  import { mkdist } from "../build/providers/mkdist/mkdist-impl/make.js";
5
5
  import { ensureReliverseConfig } from "../config/prepare.js";
6
+ import { createPerfTimer } from "../utils/utils-perf.js";
6
7
  export default defineCommand({
7
8
  meta: {
8
9
  name: "mkdist",
@@ -115,6 +116,7 @@ export default defineCommand({
115
116
  process.exit(0);
116
117
  }
117
118
  await ensureReliverseConfig(isDev, "ts");
118
- await dlerBuild(isDev);
119
+ const timer = createPerfTimer();
120
+ await dlerBuild(timer, isDev);
119
121
  }
120
122
  });
@@ -10,8 +10,8 @@ export type Database = z.infer<typeof DatabaseSchema>;
10
10
  export declare const ORMSchema: z.ZodEnum<{
11
11
  none: "none";
12
12
  drizzle: "drizzle";
13
- prisma: "prisma";
14
13
  mongoose: "mongoose";
14
+ prisma: "prisma";
15
15
  }>;
16
16
  export type ORM = z.infer<typeof ORMSchema>;
17
17
  export declare const BackendSchema: z.ZodEnum<{
@@ -25,33 +25,33 @@ 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
  }>;
33
33
  export type Runtime = z.infer<typeof RuntimeSchema>;
34
34
  export declare const FrontendSchema: z.ZodEnum<{
35
35
  none: "none";
36
+ svelte: "svelte";
37
+ nuxt: "nuxt";
38
+ solid: "solid";
36
39
  next: "next";
37
40
  "tanstack-router": "tanstack-router";
38
41
  "react-router": "react-router";
39
42
  "tanstack-start": "tanstack-start";
40
- nuxt: "nuxt";
41
43
  "native-nativewind": "native-nativewind";
42
44
  "native-unistyles": "native-unistyles";
43
- svelte: "svelte";
44
- solid: "solid";
45
45
  }>;
46
46
  export type Frontend = z.infer<typeof FrontendSchema>;
47
47
  export declare const AddonsSchema: z.ZodEnum<{
48
48
  biome: "biome";
49
49
  none: "none";
50
- pwa: "pwa";
51
50
  tauri: "tauri";
51
+ turborepo: "turborepo";
52
+ pwa: "pwa";
52
53
  starlight: "starlight";
53
54
  husky: "husky";
54
- turborepo: "turborepo";
55
55
  }>;
56
56
  export type Addons = z.infer<typeof AddonsSchema>;
57
57
  export declare const ExamplesSchema: z.ZodEnum<{
@@ -61,18 +61,18 @@ export declare const ExamplesSchema: z.ZodEnum<{
61
61
  }>;
62
62
  export type Examples = z.infer<typeof ExamplesSchema>;
63
63
  export declare const PackageManagerSchema: z.ZodEnum<{
64
- npm: "npm";
65
64
  bun: "bun";
65
+ npm: "npm";
66
66
  pnpm: "pnpm";
67
67
  }>;
68
68
  export type PackageManager = z.infer<typeof PackageManagerSchema>;
69
69
  export declare const DatabaseSetupSchema: z.ZodEnum<{
70
70
  none: "none";
71
- turso: "turso";
72
71
  neon: "neon";
72
+ supabase: "supabase";
73
+ turso: "turso";
73
74
  "prisma-postgres": "prisma-postgres";
74
75
  "mongodb-atlas": "mongodb-atlas";
75
- supabase: "supabase";
76
76
  }>;
77
77
  export type DatabaseSetup = z.infer<typeof DatabaseSetupSchema>;
78
78
  export declare const APISchema: z.ZodEnum<{
@@ -14,7 +14,7 @@ export type BrowserRepoOption = "reliverse/template-browser-extension" | "unknow
14
14
  export declare function configureBrowserExtension(): Promise<{
15
15
  displayName: string;
16
16
  description: string;
17
- features: ("webview" | "language" | "commands" | "themes")[];
17
+ features: ("commands" | "webview" | "language" | "themes")[];
18
18
  activation: "onCommand" | "onLanguage" | "startup";
19
19
  publisher: string;
20
20
  }>;
@@ -24,7 +24,7 @@ export declare function configureBrowserExtension(): Promise<{
24
24
  export declare function configureVSCodeExtension(): Promise<{
25
25
  displayName: string;
26
26
  description: string;
27
- features: ("webview" | "language" | "commands" | "themes")[];
27
+ features: ("commands" | "webview" | "language" | "themes")[];
28
28
  activation: "onCommand" | "onLanguage" | "startup";
29
29
  publisher: string;
30
30
  }>;
@@ -3,6 +3,7 @@ import { defineArgs, defineCommand } from "@reliverse/rempts";
3
3
  import { getConfigDler } from "../config/load.js";
4
4
  import { ensureReliverseConfig, prepareReliverseEnvironment } from "../config/prepare.js";
5
5
  import { dlerPub } from "./impl.js";
6
+ import { createPerfTimer } from "../utils/utils-perf.js";
6
7
  export default defineCommand({
7
8
  meta: {
8
9
  name: "pub",
@@ -20,6 +21,7 @@ export default defineCommand({
20
21
  relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
21
22
  await ensureReliverseConfig(isDev, "ts");
22
23
  const config = await getConfigDler();
23
- await dlerPub(isDev, config);
24
+ const timer = createPerfTimer();
25
+ await dlerPub(timer, isDev, config);
24
26
  }
25
27
  });
@@ -1,7 +1,7 @@
1
- import type { DlerConfig } from "../types/mod.js";
1
+ import type { DlerConfig, PerfTimer } from "../types/mod.js";
2
2
  /**
3
3
  * Main entry point for the dler build and publish process.
4
4
  * Handles building and publishing for both main project and libraries.
5
5
  * @see `src-ts/app/build/impl.ts` for build main function implementation.
6
6
  */
7
- export declare function dlerPub(isDev: boolean, config?: DlerConfig): Promise<void>;
7
+ export declare function dlerPub(timer: PerfTimer, isDev: boolean, config?: DlerConfig): Promise<void>;
@@ -6,7 +6,7 @@ import { getConfigDler } from "../config/load.js";
6
6
  import { finalizeBuild, finalizePub } from "../utils/finalize.js";
7
7
  import { createSpinner } from "../utils/spinner.js";
8
8
  import { handleDlerError } from "../utils/utils-error-cwd.js";
9
- export async function dlerPub(isDev, config) {
9
+ export async function dlerPub(timer, isDev, config) {
10
10
  let effectiveConfig = config;
11
11
  let shouldShowSpinner = false;
12
12
  let spinner = null;
@@ -30,7 +30,8 @@ export async function dlerPub(isDev, config) {
30
30
  throw new Error("[reliverse.ts] Failed to set bumpDisable to true");
31
31
  }
32
32
  }
33
- const { timer, effectiveConfig: buildConfig } = await dlerBuild(
33
+ const { effectiveConfig: buildConfig } = await dlerBuild(
34
+ timer,
34
35
  isDev,
35
36
  effectiveConfig,
36
37
  void 0,
package/bin/dler.js CHANGED
@@ -21,7 +21,7 @@ const MENU_CMDS = ["agg", "build", "pub", "update"];
21
21
  const main = defineCommand({
22
22
  meta: {
23
23
  name: "dler",
24
- version: "1.7.110",
24
+ version: "1.7.111",
25
25
  description: `Displays dler's command menu.
26
26
  To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
27
27
  Available menu commands: ${MENU_CMDS.join(", ")}`
package/package.json CHANGED
@@ -110,7 +110,7 @@
110
110
  "license": "MIT",
111
111
  "name": "@reliverse/dler",
112
112
  "type": "module",
113
- "version": "1.7.110",
113
+ "version": "1.7.111",
114
114
  "keywords": [
115
115
  "reliverse",
116
116
  "cli",