@powerlines/plugin-rolldown 0.7.308 → 0.7.309

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 (136) hide show
  1. package/dist/build-CaB54E40.d.mts +8 -0
  2. package/dist/build-CaB54E40.d.mts.map +1 -0
  3. package/dist/build-DJTI0ZMx.cjs +0 -0
  4. package/dist/build-XTM4L3VY.mjs +1 -0
  5. package/dist/build-uc1j2t5S.d.cts +8 -0
  6. package/dist/build-uc1j2t5S.d.cts.map +1 -0
  7. package/dist/helpers/index.cjs +5 -4
  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 +2 -121
  12. package/dist/helpers/resolve-options.d.cts +2 -15
  13. package/dist/helpers/resolve-options.d.mts +2 -16
  14. package/dist/helpers/resolve-options.mjs +2 -116
  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-C9XSjwSZ.mjs +1 -0
  20. package/dist/helpers-yB1XkvQI.cjs +0 -0
  21. package/dist/index-B_e8BwCm.d.cts +1 -0
  22. package/dist/index-CW2WHUXP.d.mts +1 -0
  23. package/dist/index-Cc7fCJU9.d.mts +1 -0
  24. package/dist/index-CiBIKhMu.d.cts +1 -0
  25. package/dist/index.cjs +10 -8
  26. package/dist/index.d.cts +7 -5
  27. package/dist/index.d.cts.map +1 -1
  28. package/dist/index.d.mts +7 -7
  29. package/dist/index.mjs +6 -3
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/plugin-BQOzukLC.d.cts +19 -0
  32. package/dist/plugin-BQOzukLC.d.cts.map +1 -0
  33. package/dist/plugin-D3B5E_Hg.mjs +1 -0
  34. package/dist/plugin-D3N0bR7F.d.mts +19 -0
  35. package/dist/plugin-D3N0bR7F.d.mts.map +1 -0
  36. package/dist/plugin-D5qyQPqC.cjs +0 -0
  37. package/dist/resolve-options-BP1XPpj1.cjs +159 -0
  38. package/dist/resolve-options-ClTjRIOD.d.cts +15 -0
  39. package/dist/resolve-options-ClTjRIOD.d.cts.map +1 -0
  40. package/dist/resolve-options-CzRjKLxB.mjs +117 -0
  41. package/dist/resolve-options-CzRjKLxB.mjs.map +1 -0
  42. package/dist/resolve-options-U3hiur0w.d.mts +15 -0
  43. package/dist/resolve-options-U3hiur0w.d.mts.map +1 -0
  44. package/dist/types/build.cjs +1 -0
  45. package/dist/types/build.d.cts +2 -8
  46. package/dist/types/build.d.mts +2 -8
  47. package/dist/types/build.mjs +2 -0
  48. package/dist/types/index.cjs +3 -0
  49. package/dist/types/index.d.cts +3 -2
  50. package/dist/types/index.d.mts +3 -2
  51. package/dist/types/index.mjs +4 -0
  52. package/dist/types/plugin.cjs +1 -0
  53. package/dist/types/plugin.d.cts +3 -20
  54. package/dist/types/plugin.d.mts +3 -21
  55. package/dist/types/plugin.mjs +2 -0
  56. package/dist/types-D208vOSb.cjs +0 -0
  57. package/dist/types-Dv2cgIDx.mjs +1 -0
  58. package/dist/unplugin-BVk-EAp1.mjs +11 -0
  59. package/dist/unplugin-BVk-EAp1.mjs.map +1 -0
  60. package/dist/unplugin-C5_LWDUG.cjs +16 -0
  61. package/dist/unplugin-CS3iXz6Q.d.cts +8 -0
  62. package/dist/unplugin-CS3iXz6Q.d.cts.map +1 -0
  63. package/dist/unplugin-muEZreqz.d.mts +8 -0
  64. package/dist/unplugin-muEZreqz.d.mts.map +1 -0
  65. package/package.json +5 -5
  66. package/dist/_virtual/rolldown_runtime.cjs +0 -29
  67. package/dist/core/src/lib/logger.cjs +0 -41
  68. package/dist/core/src/lib/logger.mjs +0 -40
  69. package/dist/core/src/lib/logger.mjs.map +0 -1
  70. package/dist/core/src/lib/unplugin/helpers.cjs +0 -19
  71. package/dist/core/src/lib/unplugin/helpers.mjs +0 -19
  72. package/dist/core/src/lib/unplugin/helpers.mjs.map +0 -1
  73. package/dist/core/src/lib/unplugin/index.cjs +0 -3
  74. package/dist/core/src/lib/unplugin/index.mjs +0 -5
  75. package/dist/core/src/lib/unplugin/module-resolution.cjs +0 -66
  76. package/dist/core/src/lib/unplugin/module-resolution.mjs +0 -66
  77. package/dist/core/src/lib/unplugin/module-resolution.mjs.map +0 -1
  78. package/dist/core/src/lib/unplugin/plugin.cjs +0 -71
  79. package/dist/core/src/lib/unplugin/plugin.mjs +0 -71
  80. package/dist/core/src/lib/unplugin/plugin.mjs.map +0 -1
  81. package/dist/core/src/lib/utilities/source-file.cjs +0 -22
  82. package/dist/core/src/lib/utilities/source-file.mjs +0 -21
  83. package/dist/core/src/lib/utilities/source-file.mjs.map +0 -1
  84. package/dist/core/src/types/api.d.cts +0 -103
  85. package/dist/core/src/types/api.d.cts.map +0 -1
  86. package/dist/core/src/types/api.d.mts +0 -103
  87. package/dist/core/src/types/api.d.mts.map +0 -1
  88. package/dist/core/src/types/commands.d.cts +0 -9
  89. package/dist/core/src/types/commands.d.cts.map +0 -1
  90. package/dist/core/src/types/commands.d.mts +0 -10
  91. package/dist/core/src/types/commands.d.mts.map +0 -1
  92. package/dist/core/src/types/config.d.cts +0 -551
  93. package/dist/core/src/types/config.d.cts.map +0 -1
  94. package/dist/core/src/types/config.d.mts +0 -551
  95. package/dist/core/src/types/config.d.mts.map +0 -1
  96. package/dist/core/src/types/context.d.cts +0 -511
  97. package/dist/core/src/types/context.d.cts.map +0 -1
  98. package/dist/core/src/types/context.d.mts +0 -511
  99. package/dist/core/src/types/context.d.mts.map +0 -1
  100. package/dist/core/src/types/fs.d.cts +0 -487
  101. package/dist/core/src/types/fs.d.cts.map +0 -1
  102. package/dist/core/src/types/fs.d.mts +0 -487
  103. package/dist/core/src/types/fs.d.mts.map +0 -1
  104. package/dist/core/src/types/hooks.d.cts +0 -99
  105. package/dist/core/src/types/hooks.d.cts.map +0 -1
  106. package/dist/core/src/types/hooks.d.mts +0 -99
  107. package/dist/core/src/types/hooks.d.mts.map +0 -1
  108. package/dist/core/src/types/index.d.mts +0 -9
  109. package/dist/core/src/types/plugin.d.cts +0 -204
  110. package/dist/core/src/types/plugin.d.cts.map +0 -1
  111. package/dist/core/src/types/plugin.d.mts +0 -204
  112. package/dist/core/src/types/plugin.d.mts.map +0 -1
  113. package/dist/core/src/types/tsconfig.d.cts +0 -70
  114. package/dist/core/src/types/tsconfig.d.cts.map +0 -1
  115. package/dist/core/src/types/tsconfig.d.mts +0 -70
  116. package/dist/core/src/types/tsconfig.d.mts.map +0 -1
  117. package/dist/core/src/types/unplugin.cjs +0 -21
  118. package/dist/core/src/types/unplugin.d.cts +0 -24
  119. package/dist/core/src/types/unplugin.d.cts.map +0 -1
  120. package/dist/core/src/types/unplugin.d.mts +0 -25
  121. package/dist/core/src/types/unplugin.d.mts.map +0 -1
  122. package/dist/core/src/types/unplugin.mjs +0 -22
  123. package/dist/core/src/types/unplugin.mjs.map +0 -1
  124. package/dist/helpers/resolve-options.d.cts.map +0 -1
  125. package/dist/helpers/resolve-options.d.mts.map +0 -1
  126. package/dist/helpers/resolve-options.mjs.map +0 -1
  127. package/dist/helpers/unplugin.d.cts.map +0 -1
  128. package/dist/helpers/unplugin.d.mts.map +0 -1
  129. package/dist/helpers/unplugin.mjs.map +0 -1
  130. package/dist/plugin-rollup/src/helpers/resolve-options.cjs +0 -43
  131. package/dist/plugin-rollup/src/helpers/resolve-options.mjs +0 -38
  132. package/dist/plugin-rollup/src/helpers/resolve-options.mjs.map +0 -1
  133. package/dist/types/build.d.cts.map +0 -1
  134. package/dist/types/build.d.mts.map +0 -1
  135. package/dist/types/plugin.d.cts.map +0 -1
  136. package/dist/types/plugin.d.mts.map +0 -1
@@ -0,0 +1,159 @@
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 __stryke_convert_to_array = require("@stryke/convert/to-array");
29
+ let defu = require("defu");
30
+ defu = __toESM(defu);
31
+ let __powerlines_plugin_rollup_helpers_resolve_options = require("@powerlines/plugin-rollup/helpers/resolve-options");
32
+ let __rollup_plugin_babel = require("@rollup/plugin-babel");
33
+ let __rollup_plugin_inject = require("@rollup/plugin-inject");
34
+ __rollup_plugin_inject = __toESM(__rollup_plugin_inject);
35
+ let __rollup_plugin_node_resolve = require("@rollup/plugin-node-resolve");
36
+ __rollup_plugin_node_resolve = __toESM(__rollup_plugin_node_resolve);
37
+ let __rollup_plugin_replace = require("@rollup/plugin-replace");
38
+ __rollup_plugin_replace = __toESM(__rollup_plugin_replace);
39
+ let __stryke_path_append = require("@stryke/path/append");
40
+ let __stryke_path_join_paths = require("@stryke/path/join-paths");
41
+ let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
42
+ let node_fs = require("node:fs");
43
+ let rolldown_experimental = require("rolldown/experimental");
44
+ let rollup_plugin_typescript2 = require("rollup-plugin-typescript2");
45
+ rollup_plugin_typescript2 = __toESM(rollup_plugin_typescript2);
46
+
47
+ //#region src/helpers/resolve-options.ts
48
+ /**
49
+ * Resolves the options for [rolldown](https://rolldown.rs).
50
+ *
51
+ * @param context - The build context.
52
+ * @returns The resolved options.
53
+ */
54
+ function resolveOptions(context) {
55
+ return (0, defu.default)({
56
+ input: (0, node_fs.globSync)((0, __stryke_convert_to_array.toArray)(context.entry).map((entry) => (0, __stryke_type_checks_is_string.isString)(entry) ? entry : entry.file)).flat(),
57
+ external: (source) => {
58
+ if (context.config.resolve.external && (0, __stryke_convert_to_array.toArray)(context.config.resolve.external).includes(source)) return true;
59
+ if (context.config.resolve.noExternal && (0, __stryke_convert_to_array.toArray)(context.config.resolve.noExternal).includes(source)) return false;
60
+ if (context.builtins.includes(source)) return context.config.projectType !== "application";
61
+ return !context.config.resolve.skipNodeModulesBundle;
62
+ },
63
+ plugins: [
64
+ (0, rollup_plugin_typescript2.default)({
65
+ check: false,
66
+ tsconfig: context.tsconfig.tsconfigFilePath
67
+ }),
68
+ context.config.define && Object.keys(context.config.define).length > 0 && (0, __rollup_plugin_replace.default)({
69
+ sourceMap: context.config.mode === "development",
70
+ preventAssignment: true,
71
+ ...context.config.define ?? {}
72
+ }),
73
+ context.config.inject && Object.keys(context.config.inject).length > 0 && (0, __rollup_plugin_inject.default)({
74
+ sourceMap: context.config.mode === "development",
75
+ ...context.config.inject
76
+ }),
77
+ (0, rolldown_experimental.viteAliasPlugin)({ entries: Object.entries(context.alias).reduce((ret, [id, path]) => {
78
+ if (!ret.find((e) => e.find === id)) ret.push({
79
+ find: id,
80
+ replacement: path
81
+ });
82
+ else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
83
+ return ret;
84
+ }, []) }),
85
+ context.config.babel && (0, __rollup_plugin_babel.getBabelInputPlugin)((0, defu.default)(context.config.babel, {
86
+ caller: {
87
+ name: "powerlines",
88
+ supportsStaticESM: true
89
+ },
90
+ cwd: context.config.root,
91
+ babelrc: false,
92
+ extensions: [
93
+ ".js",
94
+ ".jsx",
95
+ ".ts",
96
+ ".tsx"
97
+ ],
98
+ babelHelpers: "bundled",
99
+ skipPreflightCheck: true,
100
+ exclude: /node_modules/
101
+ })),
102
+ (0, __rollup_plugin_node_resolve.default)({
103
+ moduleDirectories: ["node_modules"],
104
+ preferBuiltins: true
105
+ }),
106
+ __powerlines_plugin_rollup_helpers_resolve_options.dtsBundlePlugin
107
+ ]
108
+ }, context.config?.rolldown ? context.config?.rolldown : {}, context.config?.rollup ? context.config?.rollup : {}, {
109
+ resolve: {
110
+ alias: context.alias,
111
+ mainFields: context.config.resolve.mainFields,
112
+ conditions: context.config.resolve.conditions,
113
+ define: context.config.define,
114
+ extensions: context.config.resolve.extensions
115
+ },
116
+ transform: {
117
+ define: context.config.define,
118
+ inject: context.config.inject
119
+ },
120
+ platform: context.config.platform,
121
+ tsconfig: (0, __stryke_path_append.appendPath)(context.tsconfig.tsconfigFilePath, context.workspaceConfig.workspaceRoot),
122
+ cache: !context.config.skipCache ? (0, __stryke_path_join_paths.joinPaths)(context.cachePath, "rolldown") : false,
123
+ logLevel: context.config.logLevel,
124
+ onLog(level, log) {
125
+ if (log.message?.trim()) context.log(level === "info" ? "debug" : level, log.message?.trim() ?? "");
126
+ },
127
+ minify: context.config.mode === "production",
128
+ output: [{
129
+ dir: context.config.output.buildPath,
130
+ format: "es",
131
+ preserveModules: true,
132
+ sourcemap: context.config.mode === "development"
133
+ }, {
134
+ dir: context.config.output.buildPath,
135
+ format: "cjs",
136
+ preserveModules: true,
137
+ sourcemap: context.config.mode === "development"
138
+ }]
139
+ }, {
140
+ keepNames: true,
141
+ treeshake: true,
142
+ shimMissingExports: true,
143
+ transform: { target: "esnext" }
144
+ });
145
+ }
146
+
147
+ //#endregion
148
+ Object.defineProperty(exports, '__toESM', {
149
+ enumerable: true,
150
+ get: function () {
151
+ return __toESM;
152
+ }
153
+ });
154
+ Object.defineProperty(exports, 'resolveOptions', {
155
+ enumerable: true,
156
+ get: function () {
157
+ return resolveOptions;
158
+ }
159
+ });
@@ -0,0 +1,15 @@
1
+ import { Context } from "@powerlines/core/types";
2
+ import { RolldownOptions } from "rolldown";
3
+
4
+ //#region src/helpers/resolve-options.d.ts
5
+
6
+ /**
7
+ * Resolves the options for [rolldown](https://rolldown.rs).
8
+ *
9
+ * @param context - The build context.
10
+ * @returns The resolved options.
11
+ */
12
+ declare function resolveOptions(context: Context): RolldownOptions;
13
+ //#endregion
14
+ export { resolveOptions as t };
15
+ //# sourceMappingURL=resolve-options-ClTjRIOD.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-ClTjRIOD.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
@@ -0,0 +1,117 @@
1
+ import { toArray } from "@stryke/convert/to-array";
2
+ import defu from "defu";
3
+ import { dtsBundlePlugin } from "@powerlines/plugin-rollup/helpers/resolve-options";
4
+ import { getBabelInputPlugin } from "@rollup/plugin-babel";
5
+ import inject from "@rollup/plugin-inject";
6
+ import resolve from "@rollup/plugin-node-resolve";
7
+ import replace from "@rollup/plugin-replace";
8
+ import { appendPath } from "@stryke/path/append";
9
+ import { joinPaths } from "@stryke/path/join-paths";
10
+ import { isString } from "@stryke/type-checks/is-string";
11
+ import { globSync } from "node:fs";
12
+ import { viteAliasPlugin } from "rolldown/experimental";
13
+ import typescriptPlugin from "rollup-plugin-typescript2";
14
+
15
+ //#region src/helpers/resolve-options.ts
16
+ /**
17
+ * Resolves the options for [rolldown](https://rolldown.rs).
18
+ *
19
+ * @param context - The build context.
20
+ * @returns The resolved options.
21
+ */
22
+ function resolveOptions(context) {
23
+ return defu({
24
+ input: globSync(toArray(context.entry).map((entry) => isString(entry) ? entry : entry.file)).flat(),
25
+ external: (source) => {
26
+ if (context.config.resolve.external && toArray(context.config.resolve.external).includes(source)) return true;
27
+ if (context.config.resolve.noExternal && toArray(context.config.resolve.noExternal).includes(source)) return false;
28
+ if (context.builtins.includes(source)) return context.config.projectType !== "application";
29
+ return !context.config.resolve.skipNodeModulesBundle;
30
+ },
31
+ plugins: [
32
+ typescriptPlugin({
33
+ check: false,
34
+ tsconfig: context.tsconfig.tsconfigFilePath
35
+ }),
36
+ context.config.define && Object.keys(context.config.define).length > 0 && replace({
37
+ sourceMap: context.config.mode === "development",
38
+ preventAssignment: true,
39
+ ...context.config.define ?? {}
40
+ }),
41
+ context.config.inject && Object.keys(context.config.inject).length > 0 && inject({
42
+ sourceMap: context.config.mode === "development",
43
+ ...context.config.inject
44
+ }),
45
+ viteAliasPlugin({ entries: Object.entries(context.alias).reduce((ret, [id, path]) => {
46
+ if (!ret.find((e) => e.find === id)) ret.push({
47
+ find: id,
48
+ replacement: path
49
+ });
50
+ else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
51
+ return ret;
52
+ }, []) }),
53
+ context.config.babel && getBabelInputPlugin(defu(context.config.babel, {
54
+ caller: {
55
+ name: "powerlines",
56
+ supportsStaticESM: true
57
+ },
58
+ cwd: context.config.root,
59
+ babelrc: false,
60
+ extensions: [
61
+ ".js",
62
+ ".jsx",
63
+ ".ts",
64
+ ".tsx"
65
+ ],
66
+ babelHelpers: "bundled",
67
+ skipPreflightCheck: true,
68
+ exclude: /node_modules/
69
+ })),
70
+ resolve({
71
+ moduleDirectories: ["node_modules"],
72
+ preferBuiltins: true
73
+ }),
74
+ dtsBundlePlugin
75
+ ]
76
+ }, context.config?.rolldown ? context.config?.rolldown : {}, context.config?.rollup ? context.config?.rollup : {}, {
77
+ resolve: {
78
+ alias: context.alias,
79
+ mainFields: context.config.resolve.mainFields,
80
+ conditions: context.config.resolve.conditions,
81
+ define: context.config.define,
82
+ extensions: context.config.resolve.extensions
83
+ },
84
+ transform: {
85
+ define: context.config.define,
86
+ inject: context.config.inject
87
+ },
88
+ platform: context.config.platform,
89
+ tsconfig: appendPath(context.tsconfig.tsconfigFilePath, context.workspaceConfig.workspaceRoot),
90
+ cache: !context.config.skipCache ? joinPaths(context.cachePath, "rolldown") : false,
91
+ logLevel: context.config.logLevel,
92
+ onLog(level, log) {
93
+ if (log.message?.trim()) context.log(level === "info" ? "debug" : level, log.message?.trim() ?? "");
94
+ },
95
+ minify: context.config.mode === "production",
96
+ output: [{
97
+ dir: context.config.output.buildPath,
98
+ format: "es",
99
+ preserveModules: true,
100
+ sourcemap: context.config.mode === "development"
101
+ }, {
102
+ dir: context.config.output.buildPath,
103
+ format: "cjs",
104
+ preserveModules: true,
105
+ sourcemap: context.config.mode === "development"
106
+ }]
107
+ }, {
108
+ keepNames: true,
109
+ treeshake: true,
110
+ shimMissingExports: true,
111
+ transform: { target: "esnext" }
112
+ });
113
+ }
114
+
115
+ //#endregion
116
+ export { resolveOptions as t };
117
+ //# sourceMappingURL=resolve-options-CzRjKLxB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-CzRjKLxB.mjs","names":["alias"],"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 { BabelPluginResolvedConfig } from \"@powerlines/plugin-babel/types/plugin\";\nimport { dtsBundlePlugin } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { RollupPluginResolvedConfig } from \"@powerlines/plugin-rollup/types/plugin\";\nimport {\n getBabelInputPlugin,\n RollupBabelInputPluginOptions\n} from \"@rollup/plugin-babel\";\nimport inject from \"@rollup/plugin-inject\";\nimport resolve from \"@rollup/plugin-node-resolve\";\nimport replace from \"@rollup/plugin-replace\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { globSync } from \"node:fs\";\nimport { RolldownOptions, RollupLog } from \"rolldown\";\nimport { viteAliasPlugin as alias } from \"rolldown/experimental\";\nimport typescriptPlugin from \"rollup-plugin-typescript2\";\nimport { RolldownPluginResolvedConfig } from \"../types/plugin\";\n\n/**\n * Resolves the options for [rolldown](https://rolldown.rs).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): RolldownOptions {\n return defu<RolldownOptions, any>(\n {\n input: globSync(\n toArray(context.entry).map(entry =>\n isString(entry) ? entry : entry.file\n )\n ).flat(),\n external: (source: string) => {\n if (\n context.config.resolve.external &&\n toArray(context.config.resolve.external).includes(source)\n ) {\n return true;\n }\n\n if (\n context.config.resolve.noExternal &&\n toArray(context.config.resolve.noExternal).includes(source)\n ) {\n return false;\n }\n\n if (context.builtins.includes(source)) {\n return context.config.projectType !== \"application\";\n }\n\n return !context.config.resolve.skipNodeModulesBundle;\n },\n plugins: [\n typescriptPlugin({\n check: false,\n tsconfig: context.tsconfig.tsconfigFilePath\n }),\n context.config.define &&\n Object.keys(context.config.define).length > 0 &&\n replace({\n sourceMap: context.config.mode === \"development\",\n preventAssignment: true,\n ...(context.config.define ?? {})\n }),\n context.config.inject &&\n Object.keys(context.config.inject).length > 0 &&\n inject({\n sourceMap: context.config.mode === \"development\",\n ...context.config.inject\n }),\n alias({\n entries: 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 }),\n (context.config as BabelPluginResolvedConfig).babel &&\n getBabelInputPlugin(\n defu((context.config as BabelPluginResolvedConfig).babel, {\n caller: {\n name: \"powerlines\",\n supportsStaticESM: true\n },\n cwd: context.config.root,\n babelrc: false,\n extensions: [\".js\", \".jsx\", \".ts\", \".tsx\"],\n babelHelpers: \"bundled\",\n skipPreflightCheck: true,\n exclude: /node_modules/\n }) as RollupBabelInputPluginOptions\n ),\n resolve({\n moduleDirectories: [\"node_modules\"],\n preferBuiltins: true\n }),\n dtsBundlePlugin\n ]\n },\n (context.config as RolldownPluginResolvedConfig)?.rolldown\n ? (context.config as RolldownPluginResolvedConfig)?.rolldown\n : {},\n (context.config as RollupPluginResolvedConfig)?.rollup\n ? (context.config as RollupPluginResolvedConfig)?.rollup\n : {},\n {\n resolve: {\n alias: context.alias,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n define: context.config.define,\n extensions: context.config.resolve.extensions\n },\n transform: {\n define: context.config.define,\n inject: context.config.inject\n },\n platform: context.config.platform,\n tsconfig: appendPath(\n context.tsconfig.tsconfigFilePath,\n context.workspaceConfig.workspaceRoot\n ),\n cache: !context.config.skipCache\n ? joinPaths(context.cachePath, \"rolldown\")\n : false,\n logLevel: context.config.logLevel,\n onLog(level: \"info\" | \"debug\" | \"warn\", log: RollupLog) {\n if (log.message?.trim()) {\n context.log(\n level === \"info\" ? \"debug\" : level,\n log.message?.trim() ?? \"\"\n );\n }\n },\n minify: context.config.mode === \"production\",\n output: [\n {\n dir: context.config.output.buildPath,\n format: \"es\",\n preserveModules: true,\n sourcemap: context.config.mode === \"development\"\n },\n {\n dir: context.config.output.buildPath,\n format: \"cjs\",\n preserveModules: true,\n sourcemap: context.config.mode === \"development\"\n }\n ]\n },\n {\n keepNames: true,\n treeshake: true,\n shimMissingExports: true,\n transform: {\n target: \"esnext\"\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,eAAe,SAAmC;AAChE,QAAO,KACL;EACE,OAAO,SACL,QAAQ,QAAQ,MAAM,CAAC,KAAI,UACzB,SAAS,MAAM,GAAG,QAAQ,MAAM,KACjC,CACF,CAAC,MAAM;EACR,WAAW,WAAmB;AAC5B,OACE,QAAQ,OAAO,QAAQ,YACvB,QAAQ,QAAQ,OAAO,QAAQ,SAAS,CAAC,SAAS,OAAO,CAEzD,QAAO;AAGT,OACE,QAAQ,OAAO,QAAQ,cACvB,QAAQ,QAAQ,OAAO,QAAQ,WAAW,CAAC,SAAS,OAAO,CAE3D,QAAO;AAGT,OAAI,QAAQ,SAAS,SAAS,OAAO,CACnC,QAAO,QAAQ,OAAO,gBAAgB;AAGxC,UAAO,CAAC,QAAQ,OAAO,QAAQ;;EAEjC,SAAS;GACP,iBAAiB;IACf,OAAO;IACP,UAAU,QAAQ,SAAS;IAC5B,CAAC;GACF,QAAQ,OAAO,UACb,OAAO,KAAK,QAAQ,OAAO,OAAO,CAAC,SAAS,KAC5C,QAAQ;IACN,WAAW,QAAQ,OAAO,SAAS;IACnC,mBAAmB;IACnB,GAAI,QAAQ,OAAO,UAAU,EAAE;IAChC,CAAC;GACJ,QAAQ,OAAO,UACb,OAAO,KAAK,QAAQ,OAAO,OAAO,CAAC,SAAS,KAC5C,OAAO;IACL,WAAW,QAAQ,OAAO,SAAS;IACnC,GAAG,QAAQ,OAAO;IACnB,CAAC;GACJA,gBAAM,EACJ,SAAS,OAAO,QAAQ,QAAQ,MAAM,CAAC,QACpC,KAAK,CAAC,IAAI,UAAU;AACnB,QAAI,CAAC,IAAI,MAAK,MAAK,EAAE,SAAS,GAAG,CAC/B,KAAI,KAAK;KACP,MAAM;KACN,aAAa;KACd,CAAC;QAEF,SAAQ,KACN,8BAA8B,GAAG,2CAClC;AAGH,WAAO;MAET,EAAE,CACH,EACF,CAAC;GACD,QAAQ,OAAqC,SAC5C,oBACE,KAAM,QAAQ,OAAqC,OAAO;IACxD,QAAQ;KACN,MAAM;KACN,mBAAmB;KACpB;IACD,KAAK,QAAQ,OAAO;IACpB,SAAS;IACT,YAAY;KAAC;KAAO;KAAQ;KAAO;KAAO;IAC1C,cAAc;IACd,oBAAoB;IACpB,SAAS;IACV,CAAC,CACH;GACH,QAAQ;IACN,mBAAmB,CAAC,eAAe;IACnC,gBAAgB;IACjB,CAAC;GACF;GACD;EACF,EACA,QAAQ,QAAyC,WAC7C,QAAQ,QAAyC,WAClD,EAAE,EACL,QAAQ,QAAuC,SAC3C,QAAQ,QAAuC,SAChD,EAAE,EACN;EACE,SAAS;GACP,OAAO,QAAQ;GACf,YAAY,QAAQ,OAAO,QAAQ;GACnC,YAAY,QAAQ,OAAO,QAAQ;GACnC,QAAQ,QAAQ,OAAO;GACvB,YAAY,QAAQ,OAAO,QAAQ;GACpC;EACD,WAAW;GACT,QAAQ,QAAQ,OAAO;GACvB,QAAQ,QAAQ,OAAO;GACxB;EACD,UAAU,QAAQ,OAAO;EACzB,UAAU,WACR,QAAQ,SAAS,kBACjB,QAAQ,gBAAgB,cACzB;EACD,OAAO,CAAC,QAAQ,OAAO,YACnB,UAAU,QAAQ,WAAW,WAAW,GACxC;EACJ,UAAU,QAAQ,OAAO;EACzB,MAAM,OAAkC,KAAgB;AACtD,OAAI,IAAI,SAAS,MAAM,CACrB,SAAQ,IACN,UAAU,SAAS,UAAU,OAC7B,IAAI,SAAS,MAAM,IAAI,GACxB;;EAGL,QAAQ,QAAQ,OAAO,SAAS;EAChC,QAAQ,CACN;GACE,KAAK,QAAQ,OAAO,OAAO;GAC3B,QAAQ;GACR,iBAAiB;GACjB,WAAW,QAAQ,OAAO,SAAS;GACpC,EACD;GACE,KAAK,QAAQ,OAAO,OAAO;GAC3B,QAAQ;GACR,iBAAiB;GACjB,WAAW,QAAQ,OAAO,SAAS;GACpC,CACF;EACF,EACD;EACE,WAAW;EACX,WAAW;EACX,oBAAoB;EACpB,WAAW,EACT,QAAQ,UACT;EACF,CACF"}
@@ -0,0 +1,15 @@
1
+ import { RolldownOptions } from "rolldown";
2
+ import { Context } from "@powerlines/core/types";
3
+
4
+ //#region src/helpers/resolve-options.d.ts
5
+
6
+ /**
7
+ * Resolves the options for [rolldown](https://rolldown.rs).
8
+ *
9
+ * @param context - The build context.
10
+ * @returns The resolved options.
11
+ */
12
+ declare function resolveOptions(context: Context): RolldownOptions;
13
+ //#endregion
14
+ export { resolveOptions as t };
15
+ //# sourceMappingURL=resolve-options-U3hiur0w.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-options-U3hiur0w.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8CA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
@@ -0,0 +1 @@
1
+ require('../build-DJTI0ZMx.cjs');
@@ -1,8 +1,2 @@
1
- import { RolldownOptions as RolldownOptions$1 } from "rolldown";
2
-
3
- //#region src/types/build.d.ts
4
- type RolldownOptions = Omit<RolldownOptions$1, "input" | "external" | "tsconfig" | "logLevel" | "output">;
5
- declare type __ΩRolldownOptions = any[];
6
- //#endregion
7
- export { RolldownOptions, __ΩRolldownOptions };
8
- //# sourceMappingURL=build.d.cts.map
1
+ import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-uc1j2t5S.cjs";
2
+ export { RolldownOptions, __ΩRolldownOptions };
@@ -1,8 +1,2 @@
1
- import { RolldownOptions as RolldownOptions$1 } from "rolldown";
2
-
3
- //#region src/types/build.d.ts
4
- type RolldownOptions = Omit<RolldownOptions$1, "input" | "external" | "tsconfig" | "logLevel" | "output">;
5
- declare type __ΩRolldownOptions = any[];
6
- //#endregion
7
- export { RolldownOptions, __ΩRolldownOptions };
8
- //# sourceMappingURL=build.d.mts.map
1
+ import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-CaB54E40.mjs";
2
+ export { RolldownOptions, __ΩRolldownOptions };
@@ -1 +1,3 @@
1
+ import "../build-XTM4L3VY.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 { RolldownOptions, __ΩRolldownOptions } from "./build.cjs";
2
- import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig } from "./plugin.cjs";
1
+ import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-uc1j2t5S.cjs";
2
+ import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-BQOzukLC.cjs";
3
+ import "../index-B_e8BwCm.cjs";
3
4
  export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownOptions, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
@@ -1,3 +1,4 @@
1
- import { RolldownOptions, __ΩRolldownOptions } from "./build.mjs";
2
- import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig } from "./plugin.mjs";
1
+ import { n as __ΩRolldownOptions, t as RolldownOptions } from "../build-CaB54E40.mjs";
2
+ import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-D3N0bR7F.mjs";
3
+ import "../index-Cc7fCJU9.mjs";
3
4
  export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownOptions, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
@@ -1 +1,5 @@
1
+ import "../build-XTM4L3VY.mjs";
2
+ import "../plugin-D3B5E_Hg.mjs";
3
+ import "../types-Dv2cgIDx.mjs";
4
+
1
5
  export { };
@@ -0,0 +1 @@
1
+ require('../plugin-D5qyQPqC.cjs');
@@ -1,20 +1,3 @@
1
- import { PluginContext } from "../core/src/types/context.cjs";
2
- import { ResolvedConfig, UserConfig } from "../core/src/types/config.cjs";
3
- import { RolldownOptions } from "./build.cjs";
4
-
5
- //#region src/types/plugin.d.ts
6
- type RolldownPluginOptions = Partial<RolldownOptions>;
7
- interface RolldownPluginUserConfig extends UserConfig {
8
- rolldown: RolldownPluginOptions;
9
- }
10
- interface RolldownPluginResolvedConfig extends ResolvedConfig {
11
- rolldown: RolldownOptions;
12
- }
13
- type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
14
- declare type __ΩRolldownPluginOptions = any[];
15
- declare type __ΩRolldownPluginUserConfig = any[];
16
- declare type __ΩRolldownPluginResolvedConfig = any[];
17
- declare type __ΩRolldownPluginContext = any[];
18
- //#endregion
19
- export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
20
- //# sourceMappingURL=plugin.d.cts.map
1
+ import "../build-uc1j2t5S.cjs";
2
+ import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-BQOzukLC.cjs";
3
+ export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
@@ -1,21 +1,3 @@
1
- import { PluginContext } from "../core/src/types/context.mjs";
2
- import { ResolvedConfig, UserConfig } from "../core/src/types/config.mjs";
3
- import "../core/src/types/index.mjs";
4
- import { RolldownOptions } from "./build.mjs";
5
-
6
- //#region src/types/plugin.d.ts
7
- type RolldownPluginOptions = Partial<RolldownOptions>;
8
- interface RolldownPluginUserConfig extends UserConfig {
9
- rolldown: RolldownPluginOptions;
10
- }
11
- interface RolldownPluginResolvedConfig extends ResolvedConfig {
12
- rolldown: RolldownOptions;
13
- }
14
- type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
15
- declare type __ΩRolldownPluginOptions = any[];
16
- declare type __ΩRolldownPluginUserConfig = any[];
17
- declare type __ΩRolldownPluginResolvedConfig = any[];
18
- declare type __ΩRolldownPluginContext = any[];
19
- //#endregion
20
- export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
21
- //# sourceMappingURL=plugin.d.mts.map
1
+ import "../build-CaB54E40.mjs";
2
+ import { a as __ΩRolldownPluginContext, c as __ΩRolldownPluginUserConfig, i as RolldownPluginUserConfig, n as RolldownPluginOptions, o as __ΩRolldownPluginOptions, r as RolldownPluginResolvedConfig, s as __ΩRolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-D3N0bR7F.mjs";
3
+ export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig };
@@ -1 +1,3 @@
1
+ import "../plugin-D3B5E_Hg.mjs";
2
+
1
3
  export { };
File without changes
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,11 @@
1
+ import { createUnplugin } from "@powerlines/core/lib/unplugin";
2
+ import { createEsbuildPlugin } from "unplugin";
3
+
4
+ //#region src/helpers/unplugin.ts
5
+ function createRolldownPlugin(context) {
6
+ return createEsbuildPlugin(createUnplugin(context))({});
7
+ }
8
+
9
+ //#endregion
10
+ export { createRolldownPlugin as t };
11
+ //# sourceMappingURL=unplugin-BVk-EAp1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-BVk-EAp1.mjs","names":[],"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 { createEsbuildPlugin } from \"unplugin\";\nimport { RolldownPluginContext } from \"../types/plugin\";\n\nexport function createRolldownPlugin(context: RolldownPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,qBAAqB,SAAgC;AACnE,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ const require_resolve_options = require('./resolve-options-BP1XPpj1.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 createRolldownPlugin(context) {
7
+ return (0, unplugin.createEsbuildPlugin)((0, __powerlines_core_lib_unplugin.createUnplugin)(context))({});
8
+ }
9
+
10
+ //#endregion
11
+ Object.defineProperty(exports, 'createRolldownPlugin', {
12
+ enumerable: true,
13
+ get: function () {
14
+ return createRolldownPlugin;
15
+ }
16
+ });
@@ -0,0 +1,8 @@
1
+ import { t as RolldownPluginContext } from "./plugin-BQOzukLC.cjs";
2
+ import * as esbuild0 from "esbuild";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
6
+ //#endregion
7
+ export { createRolldownPlugin as t };
8
+ //# sourceMappingURL=unplugin-CS3iXz6Q.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-CS3iXz6Q.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { t as RolldownPluginContext } from "./plugin-D3N0bR7F.mjs";
2
+ import * as esbuild0 from "esbuild";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createRolldownPlugin(context: RolldownPluginContext): esbuild0.Plugin;
6
+ //#endregion
7
+ export { createRolldownPlugin as t };
8
+ //# sourceMappingURL=unplugin-muEZreqz.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-muEZreqz.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,oBAAA,UAA8B,wBAAqB,QAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rolldown",
3
- "version": "0.7.308",
3
+ "version": "0.7.309",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["rolldown", "powerlines", "storm-software", "powerlines-plugin"],
@@ -43,9 +43,9 @@
43
43
  "peerDependencies": { "rolldown": ">=1.0.0-beta.53" },
44
44
  "peerDependenciesMeta": { "rolldown": { "optional": false } },
45
45
  "dependencies": {
46
- "@powerlines/core": "^0.0.9",
47
- "@powerlines/plugin-babel": "^0.12.307",
48
- "@powerlines/plugin-rollup": "^0.7.308",
46
+ "@powerlines/core": "^0.0.10",
47
+ "@powerlines/plugin-babel": "^0.12.308",
48
+ "@powerlines/plugin-rollup": "^0.7.309",
49
49
  "@stryke/convert": "^0.6.40",
50
50
  "@stryke/fs": "^0.33.43",
51
51
  "@stryke/path": "^0.26.6",
@@ -88,5 +88,5 @@
88
88
  },
89
89
  "./*": "./*"
90
90
  },
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,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;