@powerlines/plugin-vite 0.14.300 → 0.14.301

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 (155) hide show
  1. package/dist/build-CKSRktJj.d.mts +13 -0
  2. package/dist/build-CKSRktJj.d.mts.map +1 -0
  3. package/dist/build-DJTI0ZMx.cjs +0 -0
  4. package/dist/build-DVley5x8.d.cts +13 -0
  5. package/dist/build-DVley5x8.d.cts.map +1 -0
  6. package/dist/build-D_6wweLB.mjs +1 -0
  7. package/dist/helpers/index.cjs +6 -5
  8. package/dist/helpers/index.d.cts +5 -2
  9. package/dist/helpers/index.d.mts +5 -2
  10. package/dist/helpers/index.mjs +3 -2
  11. package/dist/helpers/resolve-options.cjs +3 -70
  12. package/dist/helpers/resolve-options.d.cts +3 -15
  13. package/dist/helpers/resolve-options.d.mts +3 -16
  14. package/dist/helpers/resolve-options.mjs +2 -68
  15. package/dist/helpers/unplugin.cjs +2 -11
  16. package/dist/helpers/unplugin.d.cts +4 -8
  17. package/dist/helpers/unplugin.d.mts +4 -8
  18. package/dist/helpers/unplugin.mjs +2 -11
  19. package/dist/helpers-DvTULET6.mjs +1 -0
  20. package/dist/helpers-yB1XkvQI.cjs +0 -0
  21. package/dist/index-B8OHl-c_.d.mts +1 -0
  22. package/dist/index-C-svZlpj.d.mts +1 -0
  23. package/dist/index-CFG0_wK4.d.cts +1 -0
  24. package/dist/index-CtCMUyZA.d.cts +1 -0
  25. package/dist/index.cjs +13 -11
  26. package/dist/index.d.cts +7 -5
  27. package/dist/index.d.cts.map +1 -1
  28. package/dist/index.d.mts +7 -8
  29. package/dist/index.d.mts.map +1 -1
  30. package/dist/index.mjs +6 -3
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/plugin-CfromG2s.d.cts +22 -0
  33. package/dist/plugin-CfromG2s.d.cts.map +1 -0
  34. package/dist/plugin-D5qyQPqC.cjs +0 -0
  35. package/dist/plugin-DIEwkIcq.d.mts +22 -0
  36. package/dist/plugin-DIEwkIcq.d.mts.map +1 -0
  37. package/dist/plugin-HyYPEfea.mjs +1 -0
  38. package/dist/resolve-options-CGWH6O9W.cjs +113 -0
  39. package/dist/resolve-options-CZfGIJwj.mjs +69 -0
  40. package/dist/resolve-options-CZfGIJwj.mjs.map +1 -0
  41. package/dist/resolve-options-Cjw3kuSJ.d.cts +15 -0
  42. package/dist/resolve-options-Cjw3kuSJ.d.cts.map +1 -0
  43. package/dist/resolve-options-DDD8d7th.d.mts +15 -0
  44. package/dist/resolve-options-DDD8d7th.d.mts.map +1 -0
  45. package/dist/types/_internal.d.cts +3 -2
  46. package/dist/types/_internal.d.cts.map +1 -1
  47. package/dist/types/_internal.d.mts +3 -2
  48. package/dist/types/_internal.d.mts.map +1 -1
  49. package/dist/types/build.cjs +1 -0
  50. package/dist/types/build.d.cts +2 -13
  51. package/dist/types/build.d.mts +2 -13
  52. package/dist/types/build.mjs +2 -0
  53. package/dist/types/index.cjs +3 -0
  54. package/dist/types/index.d.cts +3 -2
  55. package/dist/types/index.d.mts +3 -2
  56. package/dist/types/index.mjs +4 -0
  57. package/dist/types/plugin.cjs +1 -0
  58. package/dist/types/plugin.d.cts +3 -23
  59. package/dist/types/plugin.d.mts +3 -24
  60. package/dist/types/plugin.mjs +2 -0
  61. package/dist/types-Cn_AzV39.mjs +1 -0
  62. package/dist/types-D208vOSb.cjs +0 -0
  63. package/dist/unplugin-BIIMkEyS.cjs +16 -0
  64. package/dist/unplugin-CmW69N5s.mjs +11 -0
  65. package/dist/unplugin-CmW69N5s.mjs.map +1 -0
  66. package/dist/unplugin-DIdD8ka4.d.mts +8 -0
  67. package/dist/unplugin-DIdD8ka4.d.mts.map +1 -0
  68. package/dist/unplugin-hWdrpmFt.d.cts +8 -0
  69. package/dist/unplugin-hWdrpmFt.d.cts.map +1 -0
  70. package/package.json +6 -6
  71. package/dist/_virtual/rolldown_runtime.cjs +0 -29
  72. package/dist/core/src/lib/entry.cjs +0 -13
  73. package/dist/core/src/lib/entry.mjs +0 -15
  74. package/dist/core/src/lib/logger.cjs +0 -41
  75. package/dist/core/src/lib/logger.mjs +0 -40
  76. package/dist/core/src/lib/logger.mjs.map +0 -1
  77. package/dist/core/src/lib/unplugin/helpers.cjs +0 -19
  78. package/dist/core/src/lib/unplugin/helpers.mjs +0 -19
  79. package/dist/core/src/lib/unplugin/helpers.mjs.map +0 -1
  80. package/dist/core/src/lib/unplugin/index.cjs +0 -3
  81. package/dist/core/src/lib/unplugin/index.mjs +0 -5
  82. package/dist/core/src/lib/unplugin/module-resolution.cjs +0 -66
  83. package/dist/core/src/lib/unplugin/module-resolution.mjs +0 -66
  84. package/dist/core/src/lib/unplugin/module-resolution.mjs.map +0 -1
  85. package/dist/core/src/lib/unplugin/plugin.cjs +0 -71
  86. package/dist/core/src/lib/unplugin/plugin.mjs +0 -71
  87. package/dist/core/src/lib/unplugin/plugin.mjs.map +0 -1
  88. package/dist/core/src/lib/utilities/source-file.cjs +0 -22
  89. package/dist/core/src/lib/utilities/source-file.mjs +0 -21
  90. package/dist/core/src/lib/utilities/source-file.mjs.map +0 -1
  91. package/dist/core/src/plugin-utils/paths.cjs +0 -2
  92. package/dist/core/src/plugin-utils/paths.mjs +0 -4
  93. package/dist/core/src/types/_internal.d.cts +0 -85
  94. package/dist/core/src/types/_internal.d.cts.map +0 -1
  95. package/dist/core/src/types/_internal.d.mts +0 -85
  96. package/dist/core/src/types/_internal.d.mts.map +0 -1
  97. package/dist/core/src/types/api.d.cts +0 -103
  98. package/dist/core/src/types/api.d.cts.map +0 -1
  99. package/dist/core/src/types/api.d.mts +0 -103
  100. package/dist/core/src/types/api.d.mts.map +0 -1
  101. package/dist/core/src/types/commands.d.cts +0 -9
  102. package/dist/core/src/types/commands.d.cts.map +0 -1
  103. package/dist/core/src/types/commands.d.mts +0 -10
  104. package/dist/core/src/types/commands.d.mts.map +0 -1
  105. package/dist/core/src/types/config.d.cts +0 -552
  106. package/dist/core/src/types/config.d.cts.map +0 -1
  107. package/dist/core/src/types/config.d.mts +0 -552
  108. package/dist/core/src/types/config.d.mts.map +0 -1
  109. package/dist/core/src/types/context.d.cts +0 -511
  110. package/dist/core/src/types/context.d.cts.map +0 -1
  111. package/dist/core/src/types/context.d.mts +0 -511
  112. package/dist/core/src/types/context.d.mts.map +0 -1
  113. package/dist/core/src/types/fs.d.cts +0 -487
  114. package/dist/core/src/types/fs.d.cts.map +0 -1
  115. package/dist/core/src/types/fs.d.mts +0 -487
  116. package/dist/core/src/types/fs.d.mts.map +0 -1
  117. package/dist/core/src/types/hooks.d.cts +0 -99
  118. package/dist/core/src/types/hooks.d.cts.map +0 -1
  119. package/dist/core/src/types/hooks.d.mts +0 -99
  120. package/dist/core/src/types/hooks.d.mts.map +0 -1
  121. package/dist/core/src/types/index.d.mts +0 -9
  122. package/dist/core/src/types/plugin.d.cts +0 -204
  123. package/dist/core/src/types/plugin.d.cts.map +0 -1
  124. package/dist/core/src/types/plugin.d.mts +0 -204
  125. package/dist/core/src/types/plugin.d.mts.map +0 -1
  126. package/dist/core/src/types/tsconfig.d.cts +0 -70
  127. package/dist/core/src/types/tsconfig.d.cts.map +0 -1
  128. package/dist/core/src/types/tsconfig.d.mts +0 -70
  129. package/dist/core/src/types/tsconfig.d.mts.map +0 -1
  130. package/dist/core/src/types/unplugin.cjs +0 -21
  131. package/dist/core/src/types/unplugin.d.cts +0 -24
  132. package/dist/core/src/types/unplugin.d.cts.map +0 -1
  133. package/dist/core/src/types/unplugin.d.mts +0 -25
  134. package/dist/core/src/types/unplugin.d.mts.map +0 -1
  135. package/dist/core/src/types/unplugin.mjs +0 -22
  136. package/dist/core/src/types/unplugin.mjs.map +0 -1
  137. package/dist/helpers/resolve-options.d.cts.map +0 -1
  138. package/dist/helpers/resolve-options.d.mts.map +0 -1
  139. package/dist/helpers/resolve-options.mjs.map +0 -1
  140. package/dist/helpers/unplugin.d.cts.map +0 -1
  141. package/dist/helpers/unplugin.d.mts.map +0 -1
  142. package/dist/helpers/unplugin.mjs.map +0 -1
  143. package/dist/plugin-esbuild/src/helpers/resolve-options.cjs +0 -74
  144. package/dist/plugin-esbuild/src/helpers/resolve-options.mjs +0 -73
  145. package/dist/plugin-esbuild/src/helpers/resolve-options.mjs.map +0 -1
  146. package/dist/plugin-rolldown/src/helpers/resolve-options.cjs +0 -122
  147. package/dist/plugin-rolldown/src/helpers/resolve-options.mjs +0 -117
  148. package/dist/plugin-rolldown/src/helpers/resolve-options.mjs.map +0 -1
  149. package/dist/plugin-rollup/src/helpers/resolve-options.cjs +0 -123
  150. package/dist/plugin-rollup/src/helpers/resolve-options.mjs +0 -116
  151. package/dist/plugin-rollup/src/helpers/resolve-options.mjs.map +0 -1
  152. package/dist/types/build.d.cts.map +0 -1
  153. package/dist/types/build.d.mts.map +0 -1
  154. package/dist/types/plugin.d.cts.map +0 -1
  155. package/dist/types/plugin.d.mts.map +0 -1
@@ -0,0 +1,113 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) {
13
+ __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ }
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+
27
+ //#endregion
28
+ let defu = require("defu");
29
+ defu = __toESM(defu);
30
+ let __powerlines_plugin_esbuild_helpers_resolve_options = require("@powerlines/plugin-esbuild/helpers/resolve-options");
31
+ let __powerlines_plugin_rolldown_helpers_resolve_options = require("@powerlines/plugin-rolldown/helpers/resolve-options");
32
+ let __powerlines_plugin_rollup_helpers_resolve_options = require("@powerlines/plugin-rollup/helpers/resolve-options");
33
+ let __stryke_path_join_paths = require("@stryke/path/join-paths");
34
+
35
+ //#region src/helpers/resolve-options.ts
36
+ const DEFAULT_VITE_CONFIG = {
37
+ resolve: { extensions: [
38
+ ".mjs",
39
+ ".js",
40
+ ".mts",
41
+ ".ts",
42
+ ".jsx",
43
+ ".tsx",
44
+ ".json"
45
+ ] },
46
+ json: { stringify: true },
47
+ logLevel: "silent",
48
+ clearScreen: true
49
+ };
50
+ /**
51
+ * Resolves the options for [vite](https://vitejs.dev/).
52
+ *
53
+ * @param context - The build context.
54
+ * @returns The resolved options.
55
+ */
56
+ function resolveOptions(context) {
57
+ return (0, defu.default)({ resolve: {
58
+ alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
59
+ if (!ret.find((e) => e.find === id)) ret.push({
60
+ find: id,
61
+ replacement: path
62
+ });
63
+ else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
64
+ return ret;
65
+ }, []),
66
+ dedupe: context.config.resolve.dedupe,
67
+ mainFields: context.config.resolve.mainFields,
68
+ conditions: context.config.resolve.conditions,
69
+ extensions: context.config.resolve.extensions
70
+ } }, context.config.vite ? (0, defu.default)(context.config.vite, { optimizeDeps: context.config.vite?.optimizeDeps ?? {} }, { optimizeDeps: { extensions: context.config.resolve.extensions } }) : {}, {
71
+ define: context.config.define,
72
+ rootDir: context.fs.existsSync((0, __stryke_path_join_paths.joinPaths)(context.config.root, "src")) ? (0, __stryke_path_join_paths.joinPaths)(context.config.root, "src") : context.config.root,
73
+ platform: context.config.platform,
74
+ mode: context.config.mode === "development" ? "development" : "production",
75
+ cacheDir: (0, __stryke_path_join_paths.joinPaths)(context.cachePath, "vite"),
76
+ build: {
77
+ minify: context.config.mode !== "development",
78
+ metafile: context.config.mode === "development",
79
+ sourcemap: context.config.mode === "development",
80
+ outDir: context.config.output.buildPath,
81
+ tsconfig: context.tsconfig.tsconfigFilePath,
82
+ tsconfigRaw: context.tsconfig.tsconfigJson
83
+ },
84
+ esbuild: (0, __powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(context),
85
+ optimizeDeps: {
86
+ rolldownOptions: (0, __powerlines_plugin_rolldown_helpers_resolve_options.resolveOptions)(context),
87
+ rollupOptions: (0, __powerlines_plugin_rollup_helpers_resolve_options.resolveOptions)(context),
88
+ esbuildOptions: (0, __powerlines_plugin_esbuild_helpers_resolve_options.resolveOptions)(context)
89
+ },
90
+ logLevel: context.config.logLevel ?? void 0,
91
+ envDir: context.config.root
92
+ }, DEFAULT_VITE_CONFIG);
93
+ }
94
+
95
+ //#endregion
96
+ Object.defineProperty(exports, 'DEFAULT_VITE_CONFIG', {
97
+ enumerable: true,
98
+ get: function () {
99
+ return DEFAULT_VITE_CONFIG;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, '__toESM', {
103
+ enumerable: true,
104
+ get: function () {
105
+ return __toESM;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, 'resolveOptions', {
109
+ enumerable: true,
110
+ get: function () {
111
+ return resolveOptions;
112
+ }
113
+ });
@@ -0,0 +1,69 @@
1
+ import defu from "defu";
2
+ import { resolveOptions } from "@powerlines/plugin-esbuild/helpers/resolve-options";
3
+ import { resolveOptions as resolveOptions$1 } from "@powerlines/plugin-rolldown/helpers/resolve-options";
4
+ import { resolveOptions as resolveOptions$2 } from "@powerlines/plugin-rollup/helpers/resolve-options";
5
+ import { joinPaths } from "@stryke/path/join-paths";
6
+
7
+ //#region src/helpers/resolve-options.ts
8
+ const DEFAULT_VITE_CONFIG = {
9
+ resolve: { extensions: [
10
+ ".mjs",
11
+ ".js",
12
+ ".mts",
13
+ ".ts",
14
+ ".jsx",
15
+ ".tsx",
16
+ ".json"
17
+ ] },
18
+ json: { stringify: true },
19
+ logLevel: "silent",
20
+ clearScreen: true
21
+ };
22
+ /**
23
+ * Resolves the options for [vite](https://vitejs.dev/).
24
+ *
25
+ * @param context - The build context.
26
+ * @returns The resolved options.
27
+ */
28
+ function resolveOptions$3(context) {
29
+ return defu({ resolve: {
30
+ alias: Object.entries(context.alias).reduce((ret, [id, path]) => {
31
+ if (!ret.find((e) => e.find === id)) ret.push({
32
+ find: id,
33
+ replacement: path
34
+ });
35
+ else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
36
+ return ret;
37
+ }, []),
38
+ dedupe: context.config.resolve.dedupe,
39
+ mainFields: context.config.resolve.mainFields,
40
+ conditions: context.config.resolve.conditions,
41
+ extensions: context.config.resolve.extensions
42
+ } }, context.config.vite ? defu(context.config.vite, { optimizeDeps: context.config.vite?.optimizeDeps ?? {} }, { optimizeDeps: { extensions: context.config.resolve.extensions } }) : {}, {
43
+ define: context.config.define,
44
+ rootDir: context.fs.existsSync(joinPaths(context.config.root, "src")) ? joinPaths(context.config.root, "src") : context.config.root,
45
+ platform: context.config.platform,
46
+ mode: context.config.mode === "development" ? "development" : "production",
47
+ cacheDir: joinPaths(context.cachePath, "vite"),
48
+ build: {
49
+ minify: context.config.mode !== "development",
50
+ metafile: context.config.mode === "development",
51
+ sourcemap: context.config.mode === "development",
52
+ outDir: context.config.output.buildPath,
53
+ tsconfig: context.tsconfig.tsconfigFilePath,
54
+ tsconfigRaw: context.tsconfig.tsconfigJson
55
+ },
56
+ esbuild: resolveOptions(context),
57
+ optimizeDeps: {
58
+ rolldownOptions: resolveOptions$1(context),
59
+ rollupOptions: resolveOptions$2(context),
60
+ esbuildOptions: resolveOptions(context)
61
+ },
62
+ logLevel: context.config.logLevel ?? void 0,
63
+ envDir: context.config.root
64
+ }, DEFAULT_VITE_CONFIG);
65
+ }
66
+
67
+ //#endregion
68
+ export { resolveOptions$3 as n, DEFAULT_VITE_CONFIG as t };
69
+ //# sourceMappingURL=resolve-options-CZfGIJwj.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-CZfGIJwj.mjs","names":["DEFAULT_VITE_CONFIG: Partial<ViteOptions>","resolveOptions","resolveEsbuildOptions","resolveRolldownOptions","resolveRollupOptions"],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core/types\";\nimport { resolveOptions as resolveEsbuildOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { resolveOptions as resolveRolldownOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport { resolveOptions as resolveRollupOptions } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { ESBuildOptions } from \"vite\";\nimport { VitePluginResolvedConfig } from \"../types\";\nimport { ViteOptions } from \"../types/build\";\n\nexport const DEFAULT_VITE_CONFIG: Partial<ViteOptions> = {\n resolve: {\n extensions: [\".mjs\", \".js\", \".mts\", \".ts\", \".jsx\", \".tsx\", \".json\"]\n },\n json: {\n stringify: true\n },\n logLevel: \"silent\",\n clearScreen: true\n};\n\n/**\n * Resolves the options for [vite](https://vitejs.dev/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ViteOptions {\n return defu(\n {\n resolve: {\n alias: Object.entries(context.alias).reduce(\n (ret, [id, path]) => {\n if (!ret.find(e => e.find === id)) {\n ret.push({\n find: id,\n replacement: path\n });\n } else {\n context.warn(\n `Duplicate alias entry for '${id}' detected. The first entry will be used.`\n );\n }\n\n return ret;\n },\n [] as { find: string; replacement: string }[]\n ),\n dedupe: context.config.resolve.dedupe,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n extensions: context.config.resolve.extensions\n }\n },\n (context.config as VitePluginResolvedConfig).vite\n ? defu(\n (context.config as VitePluginResolvedConfig).vite,\n {\n optimizeDeps:\n (context.config as VitePluginResolvedConfig).vite?.optimizeDeps ??\n {}\n },\n {\n optimizeDeps: {\n extensions: context.config.resolve.extensions\n }\n }\n )\n : {},\n {\n define: context.config.define,\n rootDir: context.fs.existsSync(joinPaths(context.config.root, \"src\"))\n ? joinPaths(context.config.root, \"src\")\n : context.config.root,\n platform: context.config.platform,\n mode:\n context.config.mode === \"development\" ? \"development\" : \"production\",\n cacheDir: joinPaths(context.cachePath, \"vite\"),\n build: {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\",\n outDir: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n esbuild: resolveEsbuildOptions(context) as ESBuildOptions,\n optimizeDeps: {\n rolldownOptions: resolveRolldownOptions(context),\n rollupOptions: resolveRollupOptions(context),\n esbuildOptions: resolveEsbuildOptions(context)\n },\n logLevel: context.config.logLevel ?? undefined,\n envDir: context.config.root\n } as ViteOptions,\n DEFAULT_VITE_CONFIG\n ) as ViteOptions;\n}\n"],"mappings":";;;;;;;AA4BA,MAAaA,sBAA4C;CACvD,SAAS,EACP,YAAY;EAAC;EAAQ;EAAO;EAAQ;EAAO;EAAQ;EAAQ;EAAQ,EACpE;CACD,MAAM,EACJ,WAAW,MACZ;CACD,UAAU;CACV,aAAa;CACd;;;;;;;AAQD,SAAgBC,iBAAe,SAA+B;AAC5D,QAAO,KACL,EACE,SAAS;EACP,OAAO,OAAO,QAAQ,QAAQ,MAAM,CAAC,QAClC,KAAK,CAAC,IAAI,UAAU;AACnB,OAAI,CAAC,IAAI,MAAK,MAAK,EAAE,SAAS,GAAG,CAC/B,KAAI,KAAK;IACP,MAAM;IACN,aAAa;IACd,CAAC;OAEF,SAAQ,KACN,8BAA8B,GAAG,2CAClC;AAGH,UAAO;KAET,EAAE,CACH;EACD,QAAQ,QAAQ,OAAO,QAAQ;EAC/B,YAAY,QAAQ,OAAO,QAAQ;EACnC,YAAY,QAAQ,OAAO,QAAQ;EACnC,YAAY,QAAQ,OAAO,QAAQ;EACpC,EACF,EACA,QAAQ,OAAoC,OACzC,KACG,QAAQ,OAAoC,MAC7C,EACE,cACG,QAAQ,OAAoC,MAAM,gBACnD,EAAE,EACL,EACD,EACE,cAAc,EACZ,YAAY,QAAQ,OAAO,QAAQ,YACpC,EACF,CACF,GACD,EAAE,EACN;EACE,QAAQ,QAAQ,OAAO;EACvB,SAAS,QAAQ,GAAG,WAAW,UAAU,QAAQ,OAAO,MAAM,MAAM,CAAC,GACjE,UAAU,QAAQ,OAAO,MAAM,MAAM,GACrC,QAAQ,OAAO;EACnB,UAAU,QAAQ,OAAO;EACzB,MACE,QAAQ,OAAO,SAAS,gBAAgB,gBAAgB;EAC1D,UAAU,UAAU,QAAQ,WAAW,OAAO;EAC9C,OAAO;GACL,QAAQ,QAAQ,OAAO,SAAS;GAChC,UAAU,QAAQ,OAAO,SAAS;GAClC,WAAW,QAAQ,OAAO,SAAS;GACnC,QAAQ,QAAQ,OAAO,OAAO;GAC9B,UAAU,QAAQ,SAAS;GAC3B,aAAa,QAAQ,SAAS;GAC/B;EACD,SAASC,eAAsB,QAAQ;EACvC,cAAc;GACZ,iBAAiBC,iBAAuB,QAAQ;GAChD,eAAeC,iBAAqB,QAAQ;GAC5C,gBAAgBF,eAAsB,QAAQ;GAC/C;EACD,UAAU,QAAQ,OAAO,YAAY;EACrC,QAAQ,QAAQ,OAAO;EACxB,EACD,oBACD"}
@@ -0,0 +1,15 @@
1
+ import { t as ViteOptions } from "./build-DVley5x8.cjs";
2
+ import { Context } from "@powerlines/core/types";
3
+
4
+ //#region src/helpers/resolve-options.d.ts
5
+ declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
6
+ /**
7
+ * Resolves the options for [vite](https://vitejs.dev/).
8
+ *
9
+ * @param context - The build context.
10
+ * @returns The resolved options.
11
+ */
12
+ declare function resolveOptions(context: Context): ViteOptions;
13
+ //#endregion
14
+ export { resolveOptions as n, DEFAULT_VITE_CONFIG as t };
15
+ //# sourceMappingURL=resolve-options-Cjw3kuSJ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-Cjw3kuSJ.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,qBAAqB,QAAQ;;AAA1C;AAiBA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
@@ -0,0 +1,15 @@
1
+ import { t as ViteOptions } from "./build-CKSRktJj.mjs";
2
+ import { Context } from "@powerlines/core/types";
3
+
4
+ //#region src/helpers/resolve-options.d.ts
5
+ declare const DEFAULT_VITE_CONFIG: Partial<ViteOptions>;
6
+ /**
7
+ * Resolves the options for [vite](https://vitejs.dev/).
8
+ *
9
+ * @param context - The build context.
10
+ * @returns The resolved options.
11
+ */
12
+ declare function resolveOptions(context: Context): ViteOptions;
13
+ //#endregion
14
+ export { resolveOptions as n, DEFAULT_VITE_CONFIG as t };
15
+ //# sourceMappingURL=resolve-options-DDD8d7th.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-DDD8d7th.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,qBAAqB,QAAQ;;AAA1C;AAiBA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
@@ -1,5 +1,6 @@
1
- import { VitePluginResolvedConfig } from "./plugin.cjs";
2
- import { UNSAFE_PluginContext } from "../core/src/types/_internal.cjs";
1
+ import "../build-DVley5x8.cjs";
2
+ import { r as VitePluginResolvedConfig } from "../plugin-CfromG2s.cjs";
3
+ import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
3
4
 
4
5
  //#region src/types/_internal.d.ts
5
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;;;AAEyB,KAFb,wBAEa,CAAA,wBADC,wBACD,GAD4B,wBAC5B,CAAA,GAArB,oBAAqB,CAAA,eAAA,CAAA;AAArB,2CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"_internal.d.cts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA0BA;;AACqD,KADzC,wBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,oBADiD,CAC5B,eAD4B,CAAA;AAC5B,2CAAA,GAAA,EAAA"}
@@ -1,5 +1,6 @@
1
- import { VitePluginResolvedConfig } from "./plugin.mjs";
2
- import { UNSAFE_PluginContext } from "../core/src/types/_internal.mjs";
1
+ import "../build-CKSRktJj.mjs";
2
+ import { r as VitePluginResolvedConfig } from "../plugin-DIEwkIcq.mjs";
3
+ import { UNSAFE_PluginContext } from "@powerlines/core/types/_internal";
3
4
 
4
5
  //#region src/types/_internal.d.ts
5
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;;;AAEyB,KAFb,wBAEa,CAAA,wBADC,wBACD,GAD4B,wBAC5B,CAAA,GAArB,oBAAqB,CAAA,eAAA,CAAA;AAArB,2CAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"_internal.d.mts","names":[],"sources":["../../src/types/_internal.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AA0BA;;AACqD,KADzC,wBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,oBADiD,CAC5B,eAD4B,CAAA;AAC5B,2CAAA,GAAA,EAAA"}
@@ -0,0 +1 @@
1
+ require('../build-DJTI0ZMx.cjs');
@@ -1,13 +1,2 @@
1
- import { DepOptimizationOptions, UserConfig } from "vite";
2
-
3
- //#region src/types/build.d.ts
4
- type ViteOptions = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external"> & {
5
- /**
6
- * Optimize deps config
7
- */
8
- optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
9
- };
10
- declare type __ΩViteOptions = any[];
11
- //#endregion
12
- export { ViteOptions, __ΩViteOptions };
13
- //# sourceMappingURL=build.d.cts.map
1
+ import { n as __ΩViteOptions, t as ViteOptions } from "../build-DVley5x8.cjs";
2
+ export { ViteOptions, __ΩViteOptions };
@@ -1,13 +1,2 @@
1
- import { DepOptimizationOptions, UserConfig } from "vite";
2
-
3
- //#region src/types/build.d.ts
4
- type ViteOptions = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external"> & {
5
- /**
6
- * Optimize deps config
7
- */
8
- optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
9
- };
10
- declare type __ΩViteOptions = any[];
11
- //#endregion
12
- export { ViteOptions, __ΩViteOptions };
13
- //# sourceMappingURL=build.d.mts.map
1
+ import { n as __ΩViteOptions, t as ViteOptions } from "../build-CKSRktJj.mjs";
2
+ export { ViteOptions, __ΩViteOptions };
@@ -1 +1,3 @@
1
+ import "../build-D_6wweLB.mjs";
2
+
1
3
  export { };
@@ -0,0 +1,3 @@
1
+ require('../build-DJTI0ZMx.cjs');
2
+ require('../plugin-D5qyQPqC.cjs');
3
+ require('../types-D208vOSb.cjs');
@@ -1,3 +1,4 @@
1
- import { ViteOptions, __ΩViteOptions } from "./build.cjs";
2
- import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig } from "./plugin.cjs";
1
+ import { n as __ΩViteOptions, t as ViteOptions } from "../build-DVley5x8.cjs";
2
+ import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-CfromG2s.cjs";
3
+ import "../index-CFG0_wK4.cjs";
3
4
  export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
@@ -1,3 +1,4 @@
1
- import { ViteOptions, __ΩViteOptions } from "./build.mjs";
2
- import { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig } from "./plugin.mjs";
1
+ import { n as __ΩViteOptions, t as ViteOptions } from "../build-CKSRktJj.mjs";
2
+ import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-DIEwkIcq.mjs";
3
+ import "../index-B8OHl-c_.mjs";
3
4
  export { ViteOptions, VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩViteOptions, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
@@ -1 +1,5 @@
1
+ import "../build-D_6wweLB.mjs";
2
+ import "../plugin-HyYPEfea.mjs";
3
+ import "../types-Cn_AzV39.mjs";
4
+
1
5
  export { };
@@ -0,0 +1 @@
1
+ require('../plugin-D5qyQPqC.cjs');
@@ -1,23 +1,3 @@
1
- import { PluginContext } from "../core/src/types/context.cjs";
2
- import { ConfigEnv, ResolvedConfig, UserConfig } from "../core/src/types/config.cjs";
3
- import { ViteOptions } from "./build.cjs";
4
-
5
- //#region src/types/plugin.d.ts
6
- type VitePluginOptions = Partial<ViteOptions>;
7
- interface VitePluginUserConfig extends UserConfig {
8
- vite?: VitePluginOptions;
9
- }
10
- interface VitePluginResolvedConfig extends ResolvedConfig {
11
- vite: ViteOptions;
12
- }
13
- type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
14
- dev: boolean;
15
- configEnv: ConfigEnv;
16
- };
17
- declare type __ΩVitePluginOptions = any[];
18
- declare type __ΩVitePluginUserConfig = any[];
19
- declare type __ΩVitePluginResolvedConfig = any[];
20
- declare type __ΩVitePluginContext = any[];
21
- //#endregion
22
- export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
23
- //# sourceMappingURL=plugin.d.cts.map
1
+ import "../build-DVley5x8.cjs";
2
+ import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-CfromG2s.cjs";
3
+ export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
@@ -1,24 +1,3 @@
1
- import { PluginContext } from "../core/src/types/context.mjs";
2
- import { ConfigEnv, ResolvedConfig, UserConfig } from "../core/src/types/config.mjs";
3
- import "../core/src/types/index.mjs";
4
- import { ViteOptions } from "./build.mjs";
5
-
6
- //#region src/types/plugin.d.ts
7
- type VitePluginOptions = Partial<ViteOptions>;
8
- interface VitePluginUserConfig extends UserConfig {
9
- vite?: VitePluginOptions;
10
- }
11
- interface VitePluginResolvedConfig extends ResolvedConfig {
12
- vite: ViteOptions;
13
- }
14
- type VitePluginContext<TResolvedConfig extends VitePluginResolvedConfig = VitePluginResolvedConfig> = PluginContext<TResolvedConfig> & {
15
- dev: boolean;
16
- configEnv: ConfigEnv;
17
- };
18
- declare type __ΩVitePluginOptions = any[];
19
- declare type __ΩVitePluginUserConfig = any[];
20
- declare type __ΩVitePluginResolvedConfig = any[];
21
- declare type __ΩVitePluginContext = any[];
22
- //#endregion
23
- export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
24
- //# sourceMappingURL=plugin.d.mts.map
1
+ import "../build-CKSRktJj.mjs";
2
+ import { a as __ΩVitePluginContext, c as __ΩVitePluginUserConfig, i as VitePluginUserConfig, n as VitePluginOptions, o as __ΩVitePluginOptions, r as VitePluginResolvedConfig, s as __ΩVitePluginResolvedConfig, t as VitePluginContext } from "../plugin-DIEwkIcq.mjs";
3
+ export { VitePluginContext, VitePluginOptions, VitePluginResolvedConfig, VitePluginUserConfig, __ΩVitePluginContext, __ΩVitePluginOptions, __ΩVitePluginResolvedConfig, __ΩVitePluginUserConfig };
@@ -1 +1,3 @@
1
+ import "../plugin-HyYPEfea.mjs";
2
+
1
3
  export { };
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1,16 @@
1
+ const require_resolve_options = require('./resolve-options-CGWH6O9W.cjs');
2
+ let __powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
3
+ let unplugin = require("unplugin");
4
+
5
+ //#region src/helpers/unplugin.ts
6
+ function createVitePlugin(context) {
7
+ return (0, unplugin.createVitePlugin)((0, __powerlines_core_lib_unplugin.createUnplugin)(context))({});
8
+ }
9
+
10
+ //#endregion
11
+ Object.defineProperty(exports, 'createVitePlugin', {
12
+ enumerable: true,
13
+ get: function () {
14
+ return createVitePlugin;
15
+ }
16
+ });
@@ -0,0 +1,11 @@
1
+ import { createUnplugin } from "@powerlines/core/lib/unplugin";
2
+ import { createVitePlugin } from "unplugin";
3
+
4
+ //#region src/helpers/unplugin.ts
5
+ function createVitePlugin$1(context) {
6
+ return createVitePlugin(createUnplugin(context))({});
7
+ }
8
+
9
+ //#endregion
10
+ export { createVitePlugin$1 as t };
11
+ //# sourceMappingURL=unplugin-CmW69N5s.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-CmW69N5s.mjs","names":["createVitePlugin","createViteUnplugin"],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createVitePlugin as createViteUnplugin } from \"unplugin\";\nimport { VitePluginContext } from \"../types/plugin\";\n\nexport function createVitePlugin(context: VitePluginContext) {\n return createViteUnplugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgBA,mBAAiB,SAA4B;AAC3D,QAAOC,iBAAmB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { t as VitePluginContext } from "./plugin-DIEwkIcq.mjs";
2
+ import * as vite0 from "vite";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
6
+ //#endregion
7
+ export { createVitePlugin as t };
8
+ //# sourceMappingURL=unplugin-DIdD8ka4.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-DIdD8ka4.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { t as VitePluginContext } from "./plugin-CfromG2s.cjs";
2
+ import * as vite0 from "vite";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createVitePlugin(context: VitePluginContext): vite0.Plugin<any> | vite0.Plugin<any>[];
6
+ //#endregion
7
+ export { createVitePlugin as t };
8
+ //# sourceMappingURL=unplugin-hWdrpmFt.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-hWdrpmFt.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,KAAA,CAAA,cAAA,KAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-vite",
3
- "version": "0.14.300",
3
+ "version": "0.14.301",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["vite", "powerlines", "storm-software", "powerlines-plugin"],
@@ -79,14 +79,14 @@
79
79
  "peerDependencies": { "vite": ">=8.0.0" },
80
80
  "peerDependenciesMeta": { "vite": { "optional": false } },
81
81
  "dependencies": {
82
- "@powerlines/core": "^0.0.9",
83
- "@powerlines/plugin-rolldown": "^0.7.308",
84
- "@powerlines/plugin-rollup": "^0.7.308",
85
- "@powerlines/plugin-esbuild": "^0.13.307",
82
+ "@powerlines/core": "^0.0.10",
83
+ "@powerlines/plugin-rolldown": "^0.7.309",
84
+ "@powerlines/plugin-rollup": "^0.7.309",
85
+ "@powerlines/plugin-esbuild": "^0.13.308",
86
86
  "defu": "^6.1.4",
87
87
  "unplugin": "3.0.0-beta.3"
88
88
  },
89
89
  "devDependencies": { "@types/node": "^25.3.3", "vite": "8.0.0-beta.2" },
90
90
  "publishConfig": { "access": "public" },
91
- "gitHead": "f128e7f12bb1d591304865a60421c0105b4505d3"
91
+ "gitHead": "c5eba2320a22122bbefaca9aba105dd8a98f19b9"
92
92
  }
@@ -1,29 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- exports.__toESM = __toESM;
@@ -1,13 +0,0 @@
1
- require('../plugin-utils/paths.cjs');
2
- require("@stryke/convert/parse-type-definition");
3
- let __stryke_convert_to_array = require("@stryke/convert/to-array");
4
- require("@stryke/hash/murmurhash");
5
- require("@stryke/helpers/get-unique");
6
- let __stryke_path_append = require("@stryke/path/append");
7
- require("@stryke/path/is-type");
8
- let __stryke_path_join_paths = require("@stryke/path/join-paths");
9
- require("@stryke/path/replace");
10
- require("@stryke/type-checks/is-object");
11
- require("@stryke/type-checks/is-regexp");
12
- require("@stryke/type-checks/is-set-string");
13
- let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
@@ -1,15 +0,0 @@
1
- import "../plugin-utils/paths.mjs";
2
- import "@stryke/convert/parse-type-definition";
3
- import { toArray } from "@stryke/convert/to-array";
4
- import "@stryke/hash/murmurhash";
5
- import "@stryke/helpers/get-unique";
6
- import { appendPath } from "@stryke/path/append";
7
- import "@stryke/path/is-type";
8
- import { joinPaths } from "@stryke/path/join-paths";
9
- import "@stryke/path/replace";
10
- import "@stryke/type-checks/is-object";
11
- import "@stryke/type-checks/is-regexp";
12
- import "@stryke/type-checks/is-set-string";
13
- import { isString } from "@stryke/type-checks/is-string";
14
-
15
- export { };
@@ -1,41 +0,0 @@
1
- const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
3
- let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
4
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
5
- require("@storm-software/config-tools/logger");
6
- require("@storm-software/config-tools/utilities/colors");
7
- require("@stryke/helpers/noop");
8
- let chalk = require("chalk");
9
- chalk = require_rolldown_runtime.__toESM(chalk);
10
-
11
- //#region ../core/src/lib/logger.ts
12
- const BADGE_COLORS = [
13
- "#00A0DD",
14
- "#6FCE4E",
15
- "#FBBF24",
16
- "#F43F5E",
17
- "#3B82F6",
18
- "#A855F7",
19
- "#469592",
20
- "#288EDF",
21
- "#D8B4FE",
22
- "#10B981",
23
- "#EF4444",
24
- "#F0EC56",
25
- "#F472B6",
26
- "#22D3EE",
27
- "#EAB308",
28
- "#84CC16",
29
- "#F87171",
30
- "#0EA5E9",
31
- "#D946EF",
32
- "#FACC15",
33
- "#34D399",
34
- "#8B5CF6"
35
- ];
36
- const extendLog = (logFn, name) => {
37
- return (type, ...args) => logFn(type, ` ${chalk.default.inverse.hex(BADGE_COLORS[name.split("").map((char) => char.charCodeAt(0)).reduce((ret, charCode) => ret + charCode, 0) % BADGE_COLORS.length] || BADGE_COLORS[0])(` ${(0, __stryke_string_format_title_case.titleCase)(name)} `)} ${args.join(" ")} `);
38
- };
39
-
40
- //#endregion
41
- exports.extendLog = extendLog;