@reliverse/dler 1.7.26 → 1.7.27

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.
Files changed (134) hide show
  1. package/README.md +2 -2
  2. package/bin/app/agg/cmd.d.ts +5 -2
  3. package/bin/app/agg/cmd.js +56 -20
  4. package/bin/app/agg/impl.js +1 -0
  5. package/bin/app/build/cmd.js +5 -10
  6. package/bin/app/build/impl.d.ts +6 -3
  7. package/bin/app/build/impl.js +9 -28
  8. package/bin/app/build/postbuild.d.ts +1 -0
  9. package/bin/app/build/postbuild.js +57 -0
  10. package/bin/app/build/ppb-utils.d.ts +16 -0
  11. package/bin/app/build/ppb-utils.js +99 -0
  12. package/bin/app/build/prebuild.d.ts +2 -0
  13. package/bin/app/build/prebuild.js +50 -0
  14. package/bin/app/check/cmd.d.ts +8 -0
  15. package/bin/app/check/cmd.js +63 -53
  16. package/bin/app/magic/cmd.d.ts +4 -0
  17. package/bin/app/magic/cmd.js +37 -26
  18. package/bin/app/pub/cmd.js +2 -9
  19. package/bin/app/pub/impl.js +17 -71
  20. package/bin/app/remdn/cmd.d.ts +43 -0
  21. package/bin/app/remdn/cmd.js +592 -0
  22. package/bin/cli.js +36 -25
  23. package/bin/libs/cfg/{constants.d.ts → cfg-impl/cfg-consts.d.ts} +15 -11
  24. package/bin/libs/cfg/{constants.js → cfg-impl/cfg-consts.js} +16 -0
  25. package/bin/libs/cfg/{types.d.ts → cfg-impl/cfg-types.d.ts} +58 -0
  26. package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-define.d.ts +13 -13
  27. package/bin/libs/cfg/cfg-mod.d.ts +24 -24
  28. package/bin/libs/cfg/cfg-mod.js +35 -21
  29. package/bin/libs/sdk/sdk-impl/build/build-library.d.ts +1 -1
  30. package/bin/libs/sdk/sdk-impl/build/build-regular.d.ts +1 -1
  31. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/auto.d.ts +1 -1
  32. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/build.d.ts +1 -1
  33. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/copy/copy-mod.d.ts +1 -1
  34. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/loader.d.ts +1 -1
  35. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/loaders/js.d.ts +1 -1
  36. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/loaders/loaders-mod.d.ts +1 -1
  37. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/loaders/postcss.d.ts +1 -1
  38. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/loaders/sass.d.ts +1 -1
  39. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/loaders/vue.d.ts +1 -1
  40. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/make.d.ts +1 -1
  41. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/utils/dts.d.ts +1 -1
  42. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-impl/utils/vue-dts.d.ts +1 -1
  43. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist-mod.d.ts +1 -1
  44. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/build.d.ts +1 -1
  45. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/config.d.ts +1 -1
  46. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/cjs.d.ts +1 -1
  47. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/esbuild.d.ts +1 -1
  48. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/stub.d.ts +1 -1
  49. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/utils.d.ts +1 -1
  50. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/watch.d.ts +1 -1
  51. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/untyped/untyped-mod.d.ts +1 -1
  52. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/utils.d.ts +1 -1
  53. package/bin/libs/sdk/sdk-impl/build/bundlers/unified/validate.d.ts +1 -1
  54. package/bin/libs/sdk/sdk-impl/config/default.js +14 -0
  55. package/bin/libs/sdk/sdk-impl/config/info.js +1 -1
  56. package/bin/libs/sdk/sdk-impl/config/init.js +16 -0
  57. package/bin/libs/sdk/sdk-impl/config/types.d.ts +58 -0
  58. package/bin/libs/sdk/sdk-impl/library-flow.d.ts +14 -7
  59. package/bin/libs/sdk/sdk-impl/library-flow.js +59 -13
  60. package/bin/libs/sdk/sdk-impl/pub/pub-library.d.ts +1 -1
  61. package/bin/libs/sdk/sdk-impl/pub/pub-regular.d.ts +1 -1
  62. package/bin/libs/sdk/sdk-impl/regular-flow.d.ts +7 -3
  63. package/bin/libs/sdk/sdk-impl/regular-flow.js +40 -19
  64. package/bin/libs/sdk/sdk-impl/rules/reliverse/dler-config-health/dler-config-health.d.ts +1 -1
  65. package/bin/libs/sdk/sdk-impl/rules/reliverse/file-extensions/file-extensions.d.ts +1 -1
  66. package/bin/libs/sdk/sdk-impl/rules/reliverse/missing-deps/deps-mod.d.ts +1 -1
  67. package/bin/libs/sdk/sdk-impl/rules/reliverse/no-dynamic-imports/no-dynamic-imports.d.ts +8 -2
  68. package/bin/libs/sdk/sdk-impl/rules/reliverse/no-dynamic-imports/no-dynamic-imports.js +50 -2
  69. package/bin/libs/sdk/sdk-impl/rules/reliverse/no-index-files/no-index-files.d.ts +1 -1
  70. package/bin/libs/sdk/sdk-impl/rules/reliverse/package-json-health/package-json-health.d.ts +1 -1
  71. package/bin/libs/sdk/sdk-impl/rules/reliverse/path-extensions/path-extensions.d.ts +1 -1
  72. package/bin/libs/sdk/sdk-impl/rules/reliverse/self-include/self-include.d.ts +1 -1
  73. package/bin/libs/sdk/sdk-impl/rules/reliverse/tsconfig-health/tsconfig-health.d.ts +1 -1
  74. package/bin/libs/sdk/sdk-impl/rules/rules-mod.d.ts +1 -1
  75. package/bin/libs/sdk/sdk-impl/rules/rules-utils.d.ts +0 -1
  76. package/bin/libs/sdk/sdk-impl/rules/rules-utils.js +1 -8
  77. package/bin/libs/sdk/{sdk-types.d.ts → sdk-impl/sdk-types.d.ts} +1 -1
  78. package/bin/libs/sdk/sdk-impl/utils/finalize.d.ts +6 -2
  79. package/bin/libs/sdk/sdk-impl/utils/finalize.js +25 -17
  80. package/bin/libs/sdk/sdk-impl/utils/pack-unpack/pu-file-utils.d.ts +1 -1
  81. package/bin/libs/sdk/sdk-impl/utils/pack-unpack/pu-file-utils.js +2 -2
  82. package/bin/libs/sdk/sdk-impl/utils/utils-fs.d.ts +1 -0
  83. package/bin/libs/sdk/sdk-impl/utils/utils-fs.js +8 -0
  84. package/bin/libs/sdk/sdk-impl/utils/utils-perf.d.ts +1 -1
  85. package/bin/libs/sdk/sdk-impl/utils/utils-security.d.ts +0 -1
  86. package/bin/libs/sdk/sdk-impl/utils/utils-security.js +0 -8
  87. package/bin/libs/sdk/sdk-mod.d.ts +16 -11
  88. package/bin/libs/sdk/sdk-mod.js +53 -7
  89. package/package.json +5 -4
  90. /package/bin/libs/cfg/{rse/rse-impl/rse-types.js → cfg-impl/cfg-types.js} +0 -0
  91. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-biome.d.ts +0 -0
  92. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-biome.js +0 -0
  93. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-comments.d.ts +0 -0
  94. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-comments.js +0 -0
  95. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-consts.d.ts +0 -0
  96. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-consts.js +0 -0
  97. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-content.d.ts +0 -0
  98. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-content.js +0 -0
  99. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-core.d.ts +0 -0
  100. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-core.js +0 -0
  101. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-create.d.ts +0 -0
  102. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-create.js +0 -0
  103. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-def-utils.d.ts +0 -0
  104. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-def-utils.js +0 -0
  105. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-default.d.ts +0 -0
  106. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-default.js +0 -0
  107. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-define.js +0 -0
  108. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-detect.d.ts +0 -0
  109. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-detect.js +0 -0
  110. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-gen-cfg.d.ts +0 -0
  111. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-gen-cfg.js +0 -0
  112. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-migrate.d.ts +0 -0
  113. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-migrate.js +0 -0
  114. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-path.d.ts +0 -0
  115. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-path.js +0 -0
  116. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-prompts.d.ts +0 -0
  117. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-prompts.js +0 -0
  118. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-read.d.ts +0 -0
  119. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-read.js +0 -0
  120. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-repair.d.ts +0 -0
  121. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-repair.js +0 -0
  122. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-schema.d.ts +0 -0
  123. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-schema.js +0 -0
  124. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-types.d.ts +0 -0
  125. /package/bin/libs/cfg/{types.js → cfg-impl/rse-config/rse-impl/rse-types.js} +0 -0
  126. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-unstable.d.ts +0 -0
  127. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-unstable.js +0 -0
  128. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-update.d.ts +0 -0
  129. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-update.js +0 -0
  130. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-utils.d.ts +0 -0
  131. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-impl/rse-utils.js +0 -0
  132. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-mod.d.ts +0 -0
  133. /package/bin/libs/cfg/{rse → cfg-impl/rse-config}/rse-mod.js +0 -0
  134. /package/bin/libs/sdk/{sdk-types.js → sdk-impl/sdk-types.js} +0 -0
@@ -1,4 +1,4 @@
1
- import type { DlerConfig } from "./types";
1
+ import type { DlerConfig } from "./cfg-types";
2
2
  /**
3
3
  * Default configuration for the build and publish logic.
4
4
  */
@@ -6,7 +6,7 @@ export declare const DEFAULT_CONFIG_DLER: DlerConfig;
6
6
  export declare const defineConfigDler: (userConfig?: Partial<DlerConfig>) => {
7
7
  bumpDisable: boolean;
8
8
  bumpFilter: string[];
9
- bumpMode: import("./types").BumpMode;
9
+ bumpMode: import("./cfg-types").BumpMode;
10
10
  bumpSet: string;
11
11
  commonPubPause: boolean;
12
12
  commonPubRegistry: "jsr" | "npm" | "npm-jsr";
@@ -21,20 +21,20 @@ export declare const defineConfigDler: (userConfig?: Partial<DlerConfig>) => {
21
21
  };
22
22
  coreDescription: string;
23
23
  distJsrAllowDirty: boolean;
24
- distJsrBuilder: import("./types").BundlerName;
24
+ distJsrBuilder: import("./cfg-types").BundlerName;
25
25
  distJsrDirName: string;
26
26
  distJsrDryRun: boolean;
27
27
  distJsrFailOnWarn: boolean;
28
28
  distJsrGenTsconfig: boolean;
29
- distJsrOutFilesExt: import("./types").NpmOutExt;
29
+ distJsrOutFilesExt: import("./cfg-types").NpmOutExt;
30
30
  distJsrSlowTypes: boolean;
31
- distNpmBuilder: import("./types").BundlerName;
31
+ distNpmBuilder: import("./cfg-types").BundlerName;
32
32
  distNpmDirName: string;
33
- distNpmOutFilesExt: import("./types").NpmOutExt;
33
+ distNpmOutFilesExt: import("./cfg-types").NpmOutExt;
34
34
  libsActMode: "libs-only" | "main-and-libs" | "main-project-only";
35
35
  libsDirDist: string;
36
36
  libsDirSrc: string;
37
- libsList: Record<string, import("./types").LibConfig>;
37
+ libsList: Record<string, import("./cfg-types").LibConfig>;
38
38
  logsFileName: string;
39
39
  logsFreshFile: boolean;
40
40
  filterDepsPatterns: {
@@ -46,15 +46,19 @@ export declare const defineConfigDler: (userConfig?: Partial<DlerConfig>) => {
46
46
  jsr: string[];
47
47
  }>;
48
48
  };
49
+ runBeforeBuild: ("tsc" | "eslint" | "biome" | "knip" | "dler-check")[];
50
+ runAfterBuild: "dler-check"[];
51
+ hooksBeforeBuild: (() => Promise<void>)[];
52
+ hooksAfterBuild: (() => Promise<void>)[];
49
53
  transpileFailOnWarn: boolean;
50
- transpileEsbuild: import("./types").Esbuild;
51
- transpileFormat: import("./types").transpileFormat;
54
+ transpileEsbuild: import("./cfg-types").Esbuild;
55
+ transpileFormat: import("./cfg-types").transpileFormat;
52
56
  transpileMinify: boolean;
53
57
  transpilePublicPath: string;
54
- transpileSourcemap: import("./types").Sourcemap;
58
+ transpileSourcemap: import("./cfg-types").Sourcemap;
55
59
  transpileSplitting: boolean;
56
60
  transpileStub: boolean;
57
- transpileTarget: import("./types").transpileTarget;
61
+ transpileTarget: import("./cfg-types").transpileTarget;
58
62
  transpileWatch: boolean;
59
63
  publishArtifacts?: {
60
64
  global: string[];
@@ -36,6 +36,22 @@ export const DEFAULT_CONFIG_DLER = {
36
36
  "dist-jsr": [],
37
37
  "dist-libs": {}
38
38
  },
39
+ // Code quality tools
40
+ runBeforeBuild: [],
41
+ // tsc, eslint, biome, knip, dler-check
42
+ runAfterBuild: [],
43
+ // dler-check
44
+ // Build hooks
45
+ hooksBeforeBuild: [
46
+ // async () => {
47
+ // await someAsyncOperation();
48
+ // }
49
+ ],
50
+ hooksAfterBuild: [
51
+ // async () => {
52
+ // await someAsyncOperation();
53
+ // }
54
+ ],
39
55
  // Build setup
40
56
  transpileFailOnWarn: false,
41
57
  transpileEsbuild: "es2023",
@@ -305,6 +305,64 @@ export interface DlerConfig {
305
305
  jsr: string[];
306
306
  }>;
307
307
  };
308
+ /**
309
+ * List of tools to run before the build process starts.
310
+ * Available options: "tsc", "eslint", "biome", "knip", "dler-check"
311
+ * Each tool will only run if it's installed in the system.
312
+ *
313
+ * @default []
314
+ */
315
+ runBeforeBuild: ("tsc" | "eslint" | "biome" | "knip" | "dler-check")[];
316
+ /**
317
+ * List of tools to run after the build process completes.
318
+ * Currently only supports "dler-check".
319
+ * Each tool will only run if it's installed in the system.
320
+ *
321
+ * @default []
322
+ */
323
+ runAfterBuild: "dler-check"[];
324
+ /**
325
+ * Array of functions to be executed before the build process starts.
326
+ * These hooks will be called in sequence before any build steps.
327
+ *
328
+ * If you are a dler plugin developer, tell your users to
329
+ * call your plugin's `beforeBuild`-related function here.
330
+ *
331
+ * @example
332
+ * hooksBeforeBuild: [
333
+ * async () => {
334
+ * // Custom pre-build logic
335
+ * await someAsyncOperation();
336
+ *
337
+ * // dler-plugin-my-plugin-name
338
+ * await myPluginName_beforeBuild();
339
+ * }
340
+ * ]
341
+ *
342
+ * @default []
343
+ */
344
+ hooksBeforeBuild: (() => Promise<void>)[];
345
+ /**
346
+ * Array of functions to be executed after the build process completes.
347
+ * These hooks will be called in sequence after all build steps.
348
+ *
349
+ * If you are a dler plugin developer, tell your users to
350
+ * call your plugin's `afterBuild`-related function here.
351
+ *
352
+ * @example
353
+ * hooksAfterBuild: [
354
+ * async () => {
355
+ * // Custom post-build logic
356
+ * await someAsyncOperation();
357
+ *
358
+ * // dler-plugin-my-plugin-name
359
+ * await myPluginName_afterBuild();
360
+ * }
361
+ * ]
362
+ *
363
+ * @default []
364
+ */
365
+ hooksAfterBuild: (() => Promise<void>)[];
308
366
  /**
309
367
  * When `true`, fails the build if warnings are detected.
310
368
  * Use with caution, as it may lead to inconsistent published versions.
@@ -1,20 +1,20 @@
1
1
  import type { RseConfig } from "./rse-types";
2
2
  export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
3
+ version?: string | undefined;
3
4
  $schema?: "./schema.json" | "https://reliverse.org/schema.json" | undefined;
4
5
  projectName?: string | undefined;
5
6
  projectAuthor?: string | undefined;
6
7
  projectDescription?: string | undefined;
7
- version?: string | undefined;
8
8
  projectLicense?: string | undefined;
9
9
  projectRepository?: string | undefined;
10
10
  projectDomain?: string | undefined;
11
11
  projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
12
12
  projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
13
- projectPackageManager?: "npm" | "pnpm" | "bun" | "yarn" | undefined;
14
- projectState?: "creating" | "created" | undefined;
15
- projectCategory?: "cli" | "unknown" | "website" | "vscode" | "browser" | "library" | "mobile" | undefined;
13
+ projectPackageManager?: "bun" | "npm" | "yarn" | "pnpm" | undefined;
14
+ projectState?: "created" | "creating" | undefined;
15
+ projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
16
16
  projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
17
- projectFramework?: "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "vue" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "rempts" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | "npm-jsr" | undefined;
17
+ projectFramework?: "npm-jsr" | "rempts" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "vue" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
18
18
  projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
19
19
  projectTemplateDate?: string | undefined;
20
20
  features?: {
@@ -33,17 +33,18 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
33
33
  themes?: string[] | undefined;
34
34
  } | undefined;
35
35
  preferredLibraries?: {
36
+ search?: "unknown" | "algolia" | undefined;
36
37
  i18n?: "unknown" | "next-intl" | undefined;
37
38
  analytics?: "unknown" | "vercel" | undefined;
38
39
  authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
39
- api?: "unknown" | "hono" | "trpc" | "graphql" | "rest" | undefined;
40
- testing?: "unknown" | "bun" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
40
+ api?: "rest" | "unknown" | "hono" | "trpc" | "graphql" | undefined;
41
+ testing?: "bun" | "unknown" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
41
42
  stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
42
43
  formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
43
44
  styling?: "unknown" | "tailwind" | "styled-components" | "css-modules" | "sass" | undefined;
44
45
  uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
45
46
  databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
46
- databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
47
+ databaseProvider?: "sqlite" | "unknown" | "pg" | "mysql" | "mongodb" | undefined;
47
48
  linting?: "eslint" | "unknown" | undefined;
48
49
  formatting?: "biome" | "unknown" | undefined;
49
50
  payment?: "unknown" | "stripe" | undefined;
@@ -51,7 +52,6 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
51
52
  logging?: "unknown" | "axiom" | undefined;
52
53
  forms?: "unknown" | "react-hook-form" | undefined;
53
54
  notifications?: "unknown" | "sonner" | undefined;
54
- search?: "unknown" | "algolia" | undefined;
55
55
  uploads?: "unknown" | "uploadthing" | undefined;
56
56
  validation?: "unknown" | "zod" | "typebox" | "valibot" | undefined;
57
57
  documentation?: "unknown" | "starlight" | "nextra" | undefined;
@@ -75,7 +75,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
75
75
  indentStyle?: "space" | "tab" | undefined;
76
76
  quoteMark?: "single" | "double" | undefined;
77
77
  semicolons?: boolean | undefined;
78
- trailingComma?: "none" | "es5" | "all" | undefined;
78
+ trailingComma?: "all" | "none" | "es5" | undefined;
79
79
  bracketSpacing?: boolean | undefined;
80
80
  arrowParens?: "always" | "avoid" | undefined;
81
81
  tabWidth?: number | undefined;
@@ -83,7 +83,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
83
83
  dontRemoveComments?: boolean | undefined;
84
84
  shouldAddComments?: boolean | undefined;
85
85
  typeOrInterface?: "type" | "interface" | "mixed" | undefined;
86
- importOrRequire?: "mixed" | "import" | "require" | undefined;
86
+ importOrRequire?: "require" | "mixed" | "import" | undefined;
87
87
  cjsToEsm?: boolean | undefined;
88
88
  modernize?: {
89
89
  replaceFs?: boolean | undefined;
@@ -96,7 +96,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
96
96
  importSymbol?: string | undefined;
97
97
  } | undefined;
98
98
  monorepo?: {
99
- type?: "none" | "turborepo" | "nx" | "pnpm" | "bun" | undefined;
99
+ type?: "bun" | "pnpm" | "none" | "turborepo" | "nx" | undefined;
100
100
  packages?: string[] | undefined;
101
101
  sharedPackages?: string[] | undefined;
102
102
  } | undefined;
@@ -113,7 +113,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
113
113
  repoBranch?: string | undefined;
114
114
  repoPrivacy?: "unknown" | "public" | "private" | undefined;
115
115
  projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
116
- projectRuntime?: "node" | "bun" | "deno" | undefined;
116
+ projectRuntime?: "bun" | "node" | "deno" | undefined;
117
117
  skipPromptsUseAutoBehavior?: boolean | undefined;
118
118
  deployBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
119
119
  depsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
@@ -1,24 +1,24 @@
1
- export { DEFAULT_CONFIG_DLER, defineConfigDler } from "./constants.js";
2
- export { getBiomeConfig } from "./rse/rse-impl/rse-biome.js";
3
- export { PROJECT_ROOT, rseName, tsconfigJson, cliConfigJsonc, cliConfigJsoncTmp, cliConfigJsoncBak, cliConfigTs, cliConfigTsTmp, cliConfigTsBak, rseOrg, rseOrgBase, cliDomainRoot, cliDomainDocs, cliDomainEnv, homeDir, cliHomeDir, cliHomeTmp, cliHomeRepos, memoryPath, cliJsrPath, useLocalhost, DEFAULT_CLI_USERNAME, endTitle, UNKNOWN_VALUE, DEFAULT_DOMAIN, RSE_SCHEMA_DEV, RSE_SCHEMA_URL, FALLBACK_ENV_EXAMPLE_URL, CONFIG_CATEGORIES, } from "./rse/rse-impl/rse-consts.js";
4
- export type { RequiredProjectContent } from "./rse/rse-impl/rse-content.js";
5
- export { getProjectContent } from "./rse/rse-impl/rse-content.js";
6
- export { getOrCreateRseConfig } from "./rse/rse-impl/rse-core.js";
7
- export { writeRseConfig, createRseConfig, generateRseConfig } from "./rse/rse-impl/rse-create.js";
8
- export { getDefaultRseConfig, generateDefaultRulesForProject, } from "./rse/rse-impl/rse-def-utils.js";
9
- export { DEFAULT_CONFIG_RSE, PROJECT_FRAMEWORK_FILES } from "./rse/rse-impl/rse-default.js";
10
- export { defineConfigRse } from "./rse/rse-impl/rse-define.js";
11
- export { detectProjectFramework, getPackageJson, getPackageJsonSafe, detectProject, detectProjectsWithRseConfig, detectFeatures, } from "./rse/rse-impl/rse-detect.js";
12
- export { generateConfigFiles, generateProjectConfigs } from "./rse/rse-impl/rse-gen-cfg.js";
13
- export { injectSectionComments } from "./rse/rse-impl/rse-comments.js";
14
- export { migrateRseConfig } from "./rse/rse-impl/rse-migrate.js";
15
- export { getRseConfigPath } from "./rse/rse-impl/rse-path.js";
16
- export { askRseConfigType } from "./rse/rse-impl/rse-prompts.js";
17
- export { readRseTs, readRseConfig } from "./rse/rse-impl/rse-read.js";
18
- export { repairAndParseJSON, fixLineByLine, parseAndFixRseConfig, } from "./rse/rse-impl/rse-repair.js";
19
- export { rseSchema, generateJsonSchema, generateSchemaFile } from "./rse/rse-impl/rse-schema.js";
20
- export type { RseConfig, ProjectCategory, ProjectSubcategory, ProjectFramework, ProjectArchitecture, RelinterConfirm, IterableError, DetectedProject, BiomeConfigResult, BaseConfig, BiomeConfig, DeploymentService, VSCodeSettings, } from "./rse/rse-impl/rse-types.js";
21
- export { loadrse, watchrse } from "./rse/rse-impl/rse-unstable.js";
22
- export { updateRseConfig, mergeWithDefaults } from "./rse/rse-impl/rse-update.js";
23
- export { cleanGitHubUrl, objectToCodeString, updateTsConfigInclude, getBackupAndTempPaths, atomicWriteFile, } from "./rse/rse-impl/rse-utils.js";
24
- export type { DlerConfig, BumpMode, BundlerName, NpmOutExt, LibConfig, Esbuild, transpileFormat, Sourcemap, transpileTarget, } from "./types.js";
1
+ export { DEFAULT_CONFIG_DLER, defineConfigDler } from "./cfg-impl/cfg-consts.js";
2
+ export type { DlerConfig, BumpMode, BundlerName, NpmOutExt, LibConfig, Esbuild, transpileFormat, Sourcemap, transpileTarget, } from "./cfg-impl/cfg-types.js";
3
+ export { getBiomeConfig } from "./cfg-impl/rse-config/rse-impl/rse-biome.js";
4
+ export { injectSectionComments } from "./cfg-impl/rse-config/rse-impl/rse-comments.js";
5
+ export { PROJECT_ROOT, rseName, tsconfigJson, cliConfigJsonc, cliConfigJsoncTmp, cliConfigJsoncBak, cliConfigTs, cliConfigTsTmp, cliConfigTsBak, rseOrg, rseOrgBase, cliDomainRoot, cliDomainDocs, cliDomainEnv, homeDir, cliHomeDir, cliHomeTmp, cliHomeRepos, memoryPath, cliJsrPath, useLocalhost, DEFAULT_CLI_USERNAME, endTitle, UNKNOWN_VALUE, DEFAULT_DOMAIN, RSE_SCHEMA_DEV, RSE_SCHEMA_URL, FALLBACK_ENV_EXAMPLE_URL, CONFIG_CATEGORIES, } from "./cfg-impl/rse-config/rse-impl/rse-consts.js";
6
+ export type { RequiredProjectContent } from "./cfg-impl/rse-config/rse-impl/rse-content.js";
7
+ export { getProjectContent } from "./cfg-impl/rse-config/rse-impl/rse-content.js";
8
+ export { getOrCreateRseConfig } from "./cfg-impl/rse-config/rse-impl/rse-core.js";
9
+ export { writeRseConfig, createRseConfig, generateRseConfig, } from "./cfg-impl/rse-config/rse-impl/rse-create.js";
10
+ export { getDefaultRseConfig, generateDefaultRulesForProject, } from "./cfg-impl/rse-config/rse-impl/rse-def-utils.js";
11
+ export { DEFAULT_CONFIG_RSE, PROJECT_FRAMEWORK_FILES, } from "./cfg-impl/rse-config/rse-impl/rse-default.js";
12
+ export { defineConfigRse } from "./cfg-impl/rse-config/rse-impl/rse-define.js";
13
+ export { detectProjectFramework, getPackageJson, getPackageJsonSafe, detectProject, detectProjectsWithRseConfig, detectFeatures, } from "./cfg-impl/rse-config/rse-impl/rse-detect.js";
14
+ export { generateConfigFiles, generateProjectConfigs, } from "./cfg-impl/rse-config/rse-impl/rse-gen-cfg.js";
15
+ export { migrateRseConfig } from "./cfg-impl/rse-config/rse-impl/rse-migrate.js";
16
+ export { getRseConfigPath } from "./cfg-impl/rse-config/rse-impl/rse-path.js";
17
+ export { askRseConfigType } from "./cfg-impl/rse-config/rse-impl/rse-prompts.js";
18
+ export { readRseTs, readRseConfig } from "./cfg-impl/rse-config/rse-impl/rse-read.js";
19
+ export { repairAndParseJSON, fixLineByLine, parseAndFixRseConfig, } from "./cfg-impl/rse-config/rse-impl/rse-repair.js";
20
+ export { rseSchema, generateJsonSchema, generateSchemaFile, } from "./cfg-impl/rse-config/rse-impl/rse-schema.js";
21
+ export type { RseConfig, ProjectCategory, ProjectSubcategory, ProjectFramework, ProjectArchitecture, RelinterConfirm, IterableError, DetectedProject, BiomeConfigResult, BaseConfig, BiomeConfig, DeploymentService, VSCodeSettings, } from "./cfg-impl/rse-config/rse-impl/rse-types.js";
22
+ export { loadrse, watchrse } from "./cfg-impl/rse-config/rse-impl/rse-unstable.js";
23
+ export { updateRseConfig, mergeWithDefaults } from "./cfg-impl/rse-config/rse-impl/rse-update.js";
24
+ export { cleanGitHubUrl, objectToCodeString, updateTsConfigInclude, getBackupAndTempPaths, atomicWriteFile, } from "./cfg-impl/rse-config/rse-impl/rse-utils.js";
@@ -1,5 +1,6 @@
1
- export { DEFAULT_CONFIG_DLER, defineConfigDler } from "./constants.js";
2
- export { getBiomeConfig } from "./rse/rse-impl/rse-biome.js";
1
+ export { DEFAULT_CONFIG_DLER, defineConfigDler } from "./cfg-impl/cfg-consts.js";
2
+ export { getBiomeConfig } from "./cfg-impl/rse-config/rse-impl/rse-biome.js";
3
+ export { injectSectionComments } from "./cfg-impl/rse-config/rse-impl/rse-comments.js";
3
4
  export {
4
5
  PROJECT_ROOT,
5
6
  rseName,
@@ -30,16 +31,23 @@ export {
30
31
  RSE_SCHEMA_URL,
31
32
  FALLBACK_ENV_EXAMPLE_URL,
32
33
  CONFIG_CATEGORIES
33
- } from "./rse/rse-impl/rse-consts.js";
34
- export { getProjectContent } from "./rse/rse-impl/rse-content.js";
35
- export { getOrCreateRseConfig } from "./rse/rse-impl/rse-core.js";
36
- export { writeRseConfig, createRseConfig, generateRseConfig } from "./rse/rse-impl/rse-create.js";
34
+ } from "./cfg-impl/rse-config/rse-impl/rse-consts.js";
35
+ export { getProjectContent } from "./cfg-impl/rse-config/rse-impl/rse-content.js";
36
+ export { getOrCreateRseConfig } from "./cfg-impl/rse-config/rse-impl/rse-core.js";
37
+ export {
38
+ writeRseConfig,
39
+ createRseConfig,
40
+ generateRseConfig
41
+ } from "./cfg-impl/rse-config/rse-impl/rse-create.js";
37
42
  export {
38
43
  getDefaultRseConfig,
39
44
  generateDefaultRulesForProject
40
- } from "./rse/rse-impl/rse-def-utils.js";
41
- export { DEFAULT_CONFIG_RSE, PROJECT_FRAMEWORK_FILES } from "./rse/rse-impl/rse-default.js";
42
- export { defineConfigRse } from "./rse/rse-impl/rse-define.js";
45
+ } from "./cfg-impl/rse-config/rse-impl/rse-def-utils.js";
46
+ export {
47
+ DEFAULT_CONFIG_RSE,
48
+ PROJECT_FRAMEWORK_FILES
49
+ } from "./cfg-impl/rse-config/rse-impl/rse-default.js";
50
+ export { defineConfigRse } from "./cfg-impl/rse-config/rse-impl/rse-define.js";
43
51
  export {
44
52
  detectProjectFramework,
45
53
  getPackageJson,
@@ -47,25 +55,31 @@ export {
47
55
  detectProject,
48
56
  detectProjectsWithRseConfig,
49
57
  detectFeatures
50
- } from "./rse/rse-impl/rse-detect.js";
51
- export { generateConfigFiles, generateProjectConfigs } from "./rse/rse-impl/rse-gen-cfg.js";
52
- export { injectSectionComments } from "./rse/rse-impl/rse-comments.js";
53
- export { migrateRseConfig } from "./rse/rse-impl/rse-migrate.js";
54
- export { getRseConfigPath } from "./rse/rse-impl/rse-path.js";
55
- export { askRseConfigType } from "./rse/rse-impl/rse-prompts.js";
56
- export { readRseTs, readRseConfig } from "./rse/rse-impl/rse-read.js";
58
+ } from "./cfg-impl/rse-config/rse-impl/rse-detect.js";
59
+ export {
60
+ generateConfigFiles,
61
+ generateProjectConfigs
62
+ } from "./cfg-impl/rse-config/rse-impl/rse-gen-cfg.js";
63
+ export { migrateRseConfig } from "./cfg-impl/rse-config/rse-impl/rse-migrate.js";
64
+ export { getRseConfigPath } from "./cfg-impl/rse-config/rse-impl/rse-path.js";
65
+ export { askRseConfigType } from "./cfg-impl/rse-config/rse-impl/rse-prompts.js";
66
+ export { readRseTs, readRseConfig } from "./cfg-impl/rse-config/rse-impl/rse-read.js";
57
67
  export {
58
68
  repairAndParseJSON,
59
69
  fixLineByLine,
60
70
  parseAndFixRseConfig
61
- } from "./rse/rse-impl/rse-repair.js";
62
- export { rseSchema, generateJsonSchema, generateSchemaFile } from "./rse/rse-impl/rse-schema.js";
63
- export { loadrse, watchrse } from "./rse/rse-impl/rse-unstable.js";
64
- export { updateRseConfig, mergeWithDefaults } from "./rse/rse-impl/rse-update.js";
71
+ } from "./cfg-impl/rse-config/rse-impl/rse-repair.js";
72
+ export {
73
+ rseSchema,
74
+ generateJsonSchema,
75
+ generateSchemaFile
76
+ } from "./cfg-impl/rse-config/rse-impl/rse-schema.js";
77
+ export { loadrse, watchrse } from "./cfg-impl/rse-config/rse-impl/rse-unstable.js";
78
+ export { updateRseConfig, mergeWithDefaults } from "./cfg-impl/rse-config/rse-impl/rse-update.js";
65
79
  export {
66
80
  cleanGitHubUrl,
67
81
  objectToCodeString,
68
82
  updateTsConfigInclude,
69
83
  getBackupAndTempPaths,
70
84
  atomicWriteFile
71
- } from "./rse/rse-impl/rse-utils.js";
85
+ } from "./cfg-impl/rse-config/rse-impl/rse-utils.js";
@@ -1,5 +1,5 @@
1
1
  import type { BundlerName, DlerConfig, Esbuild, LibConfig, NpmOutExt, Sourcemap, transpileFormat, transpileTarget } from "../config/types.js";
2
- import type { PerfTimer } from "../../sdk-types.js";
2
+ import type { PerfTimer } from "../sdk-types.js";
3
3
  /** Options specific to the NPM build target */
4
4
  interface NpmBuildOptions {
5
5
  npmOutDir: string;
@@ -1,5 +1,5 @@
1
1
  import type { BundlerName, NpmOutExt, Sourcemap, transpileFormat, transpileTarget, DlerConfig } from "../config/types.js";
2
- import type { PerfTimer } from "../../sdk-types.js";
2
+ import type { PerfTimer } from "../sdk-types.js";
3
3
  /**
4
4
  * Builds a regular JSR distribution.
5
5
  * - Copies the entire source directory if `distJsrBuilder` = "jsr"
@@ -1,3 +1,3 @@
1
- import type { BuildPreset } from "../../../../sdk-types.js";
1
+ import type { BuildPreset } from "../../../sdk-types.js";
2
2
  export declare function definePreset(preset: BuildPreset): BuildPreset;
3
3
  export declare const autoPreset: BuildPreset;
@@ -1,4 +1,4 @@
1
- import type { UnifiedBuildConfig } from "../../../../sdk-types.js";
1
+ import type { UnifiedBuildConfig } from "../../../sdk-types.js";
2
2
  export declare function unifiedBuild(inputSourceDir: string, coreIsCLI: {
3
3
  enabled: boolean;
4
4
  scripts: Record<string, string>;
@@ -1,2 +1,2 @@
1
- import type { BuildContext } from "../../../../../sdk-types.js";
1
+ import type { BuildContext } from "../../../../sdk-types.js";
2
2
  export declare function copyBuild(ctx: BuildContext): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { CreateLoaderOptions } from "../../../../../../sdk-types.js";
1
+ import type { CreateLoaderOptions } from "../../../../../sdk-types.js";
2
2
  export declare function createLoader(loaderOptions?: CreateLoaderOptions): {
3
3
  loadFile: LoadFile;
4
4
  };
@@ -1,2 +1,2 @@
1
- import type { Loader } from "../../../../../../../sdk-types.js";
1
+ import type { Loader } from "../../../../../../sdk-types.js";
2
2
  export declare const jsLoader: Loader;
@@ -1,4 +1,4 @@
1
- import type { Loader } from "../../../../../../../sdk-types.js";
1
+ import type { Loader } from "../../../../../../sdk-types.js";
2
2
  declare const loaders: {
3
3
  js: Loader;
4
4
  vue: any;
@@ -1,3 +1,3 @@
1
- import type { Loader } from "../../../../../../../sdk-types.js";
1
+ import type { Loader } from "../../../../../../sdk-types.js";
2
2
  export type PostcssLoaderOptions = {};
3
3
  export declare const postcssLoader: Loader;
@@ -1,2 +1,2 @@
1
- import type { Loader } from "../../../../../../../sdk-types.js";
1
+ import type { Loader } from "../../../../../../sdk-types.js";
2
2
  export declare const sassLoader: Loader;
@@ -1,5 +1,5 @@
1
1
  import type { SFCBlock } from "vue/compiler-sfc";
2
- import type { InputFile, Loader, LoaderContext, OutputFile } from "../../../../../../../sdk-types.js";
2
+ import type { InputFile, Loader, LoaderContext, OutputFile } from "../../../../../../sdk-types.js";
3
3
  export interface DefineVueLoaderOptions {
4
4
  blockLoaders?: Record<string, VueBlockLoader | undefined>;
5
5
  }
@@ -1,4 +1,4 @@
1
- import type { MkdistOptions } from "../../../../../../sdk-types.js";
1
+ import type { MkdistOptions } from "../../../../../sdk-types.js";
2
2
  export declare function mkdist(options?: MkdistOptions): Promise<{
3
3
  result: {
4
4
  errors: {
@@ -1,6 +1,6 @@
1
1
  import type { TSConfig } from "pkg-types";
2
2
  import type { CompilerHost, EmitResult } from "typescript";
3
- import type { MkdistOptions } from "../../../../../../../sdk-types.js";
3
+ import type { MkdistOptions } from "../../../../../../sdk-types.js";
4
4
  export declare function normalizeCompilerOptions(_options: TSConfig["compilerOptions"]): Promise<any>;
5
5
  export type DeclarationOutput = Record<string, {
6
6
  contents: string;
@@ -1,3 +1,3 @@
1
- import type { MkdistOptions } from "../../../../../../../sdk-types.js";
1
+ import type { MkdistOptions } from "../../../../../../sdk-types.js";
2
2
  import type { DeclarationOutput } from "./dts";
3
3
  export declare function getVueDeclarations(vfs: Map<string, string>, opts?: MkdistOptions): Promise<DeclarationOutput>;
@@ -1,2 +1,2 @@
1
- import type { BuildContext } from "../../../../../sdk-types.js";
1
+ import type { BuildContext } from "../../../../sdk-types.js";
2
2
  export declare function mkdistBuild(ctx: BuildContext): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { BuildContext } from "../../../../../sdk-types.js";
1
+ import type { BuildContext } from "../../../../sdk-types.js";
2
2
  export declare function rollupBuild(ctx: BuildContext): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { BuildContext, RollupOptions } from "../../../../../sdk-types.js";
1
+ import type { BuildContext, RollupOptions } from "../../../../sdk-types.js";
2
2
  export declare function getRollupOptions(ctx: BuildContext): RollupOptions;
@@ -1,4 +1,4 @@
1
1
  import type { Plugin } from "rollup";
2
- import type { BuildContext } from "../../../../../../sdk-types.js";
2
+ import type { BuildContext } from "../../../../../sdk-types.js";
3
3
  export declare function cjsPlugin(): Plugin;
4
4
  export declare function fixCJSExportTypePlugin(ctx: BuildContext): Plugin;
@@ -1,3 +1,3 @@
1
1
  import type { Plugin } from "rollup";
2
- import type { EsbuildOptions } from "../../../../../../sdk-types.js";
2
+ import type { EsbuildOptions } from "../../../../../sdk-types.js";
3
3
  export declare function esbuild(options: EsbuildOptions): Plugin;
@@ -1,2 +1,2 @@
1
- import type { BuildContext } from "../../../../../sdk-types.js";
1
+ import type { BuildContext } from "../../../../sdk-types.js";
2
2
  export declare function rollupStub(ctx: BuildContext): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import type { PreRenderedChunk } from "rollup";
2
- import type { BuildContext } from "../../../../../sdk-types.js";
2
+ import type { BuildContext } from "../../../../sdk-types.js";
3
3
  export declare const DEFAULT_EXTENSIONS: string[];
4
4
  export declare function getChunkFilename(ctx: BuildContext, chunk: PreRenderedChunk, ext: string): string;
5
5
  export declare function resolveAliases(ctx: BuildContext): Record<string, string>;
@@ -1,2 +1,2 @@
1
- import type { RollupOptions } from "../../../../../sdk-types.js";
1
+ import type { RollupOptions } from "../../../../sdk-types.js";
2
2
  export declare function rollupWatch(rollupOptions: RollupOptions): void;
@@ -1,2 +1,2 @@
1
- import type { BuildContext } from "../../../../../sdk-types.js";
1
+ import type { BuildContext } from "../../../../sdk-types.js";
2
2
  export declare function typesBuild(ctx: BuildContext): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import type { PackageJson } from "pkg-types";
2
- import type { BuildContext, BuildPreset, UnifiedBuildConfig } from "../../../../sdk-types.js";
2
+ import type { BuildContext, BuildPreset, UnifiedBuildConfig } from "../../../sdk-types.js";
3
3
  interface OutputDescriptor {
4
4
  file: string;
5
5
  type?: "cjs" | "esm";
@@ -1,4 +1,4 @@
1
1
  import type { PackageJson } from "pkg-types";
2
- import type { BuildContext } from "../../../../sdk-types.js";
2
+ import type { BuildContext } from "../../../sdk-types.js";
3
3
  export declare function validateDependencies(ctx: BuildContext): void;
4
4
  export declare function validatePackage(pkg: PackageJson, rootDir: string, ctx: BuildContext): void;
@@ -36,6 +36,20 @@ export const DEFAULT_CONFIG_DLER = {
36
36
  "dist-jsr": [],
37
37
  "dist-libs": {}
38
38
  },
39
+ // Code quality tools
40
+ runBeforeBuild: [],
41
+ runAfterBuild: [],
42
+ // Build hooks
43
+ hooksBeforeBuild: [
44
+ // async () => {
45
+ // await someAsyncOperation();
46
+ // }
47
+ ],
48
+ hooksAfterBuild: [
49
+ // async () => {
50
+ // await someAsyncOperation();
51
+ // }
52
+ ],
39
53
  // Build setup
40
54
  transpileFailOnWarn: false,
41
55
  transpileEsbuild: "es2023",
@@ -1,5 +1,5 @@
1
1
  import { endPrompt, startPrompt } from "@reliverse/rempts";
2
- const version = "1.7.26";
2
+ const version = "1.7.27";
3
3
  export async function showStartPrompt(isDev) {
4
4
  await startPrompt({
5
5
  titleColor: "inverse",
@@ -222,6 +222,22 @@ function generateConfig(isDev, pkgDescription) {
222
222
  " // Global is always applied",
223
223
  " filterDepsPatterns: " + getFilterDepsPatterns(isDev) + ",",
224
224
  "",
225
+ " // Code quality tools",
226
+ " runBeforeBuild: [],",
227
+ " runAfterBuild: [],",
228
+ "",
229
+ " // Build hooks",
230
+ " hooksBeforeBuild: [",
231
+ " // async () => {",
232
+ " // await someAsyncOperation();",
233
+ " // }",
234
+ " ],",
235
+ " hooksAfterBuild: [",
236
+ " // async () => {",
237
+ " // await someAsyncOperation();",
238
+ " // }",
239
+ " ],",
240
+ "",
225
241
  " // Build setup",
226
242
  " // transpileAlias: {},",
227
243
  " // transpileClean: true,",