powerlines 0.30.2 → 0.30.4

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 (73) hide show
  1. package/README.md +5 -1
  2. package/dist/api.cjs +2 -2
  3. package/dist/api.js +1 -1
  4. package/dist/astro.cjs +4 -4
  5. package/dist/astro.js +3 -3
  6. package/dist/babel-types.d.ts +292 -0
  7. package/dist/{chunk-TFHWUEMM.js → chunk-6LDMNSUC.js} +3 -3
  8. package/dist/{chunk-NP2ZVRIF.cjs → chunk-FLA3CH6S.cjs} +4 -4
  9. package/dist/{chunk-PYLCLJKJ.cjs → chunk-GVJ7DXPT.cjs} +14 -14
  10. package/dist/{chunk-W2BP7RBB.js → chunk-HHZ3E5OL.js} +3 -3
  11. package/dist/chunk-HJCICJED.cjs +12 -0
  12. package/dist/{chunk-IBPL4XRD.js → chunk-IKK5YTJM.js} +3 -3
  13. package/dist/chunk-LXNDHQP7.cjs +12 -0
  14. package/dist/{chunk-VYLFOZVJ.js → chunk-O3RJWUWA.js} +3 -3
  15. package/dist/{chunk-2TMERZSM.cjs → chunk-QOXJ2FG4.cjs} +4 -4
  16. package/dist/{chunk-2LSP523Q.cjs → chunk-SMKYEQE6.cjs} +5 -5
  17. package/dist/{chunk-K3D4TTN5.js → chunk-SS3RPLJT.js} +3 -3
  18. package/dist/{chunk-7DOCWJ76.js → chunk-VNIL5V4Q.js} +14 -14
  19. package/dist/esbuild.cjs +6 -6
  20. package/dist/esbuild.js +3 -3
  21. package/dist/farm.cjs +3 -3
  22. package/dist/farm.js +2 -2
  23. package/dist/index.cjs +9 -9
  24. package/dist/index.js +2 -2
  25. package/dist/lib/build/index.cjs +5 -5
  26. package/dist/lib/build/index.js +1 -1
  27. package/dist/lib/build/tsdown.cjs +5 -5
  28. package/dist/lib/build/tsdown.js +1 -1
  29. package/dist/lib/{chunk-K4EXCL46.js → chunk-MOFTDKP2.js} +14 -15
  30. package/dist/lib/chunk-MOFTDKP2.js.map +1 -0
  31. package/dist/lib/{chunk-QNWZ35R2.cjs → chunk-NAX6YQ7E.cjs} +14 -15
  32. package/dist/lib/chunk-NAX6YQ7E.cjs.map +1 -0
  33. package/dist/lib/{chunk-GEMGC7W6.cjs → chunk-PLTKXSAI.cjs} +14 -14
  34. package/dist/lib/chunk-PLTKXSAI.cjs.map +1 -0
  35. package/dist/lib/{chunk-76DBMONS.js → chunk-X7H7QQ52.js} +14 -14
  36. package/dist/lib/chunk-X7H7QQ52.js.map +1 -0
  37. package/dist/lib/index.cjs +2 -2
  38. package/dist/lib/index.js +1 -1
  39. package/dist/lib/unplugin/factory.cjs +2 -2
  40. package/dist/lib/unplugin/factory.js +1 -1
  41. package/dist/lib/unplugin/index.cjs +2 -2
  42. package/dist/lib/unplugin/index.js +1 -1
  43. package/dist/next.cjs +4 -4
  44. package/dist/next.js +3 -3
  45. package/dist/nuxt.cjs +20 -10
  46. package/dist/nuxt.d.cts +40 -1
  47. package/dist/nuxt.d.ts +40 -1
  48. package/dist/nuxt.js +18 -8
  49. package/dist/rolldown.cjs +6 -6
  50. package/dist/rolldown.js +3 -3
  51. package/dist/rollup.cjs +3 -3
  52. package/dist/rollup.js +2 -2
  53. package/dist/rspack.cjs +3 -3
  54. package/dist/rspack.js +2 -2
  55. package/dist/tsdown.cjs +4 -5
  56. package/dist/tsdown.js +3 -4
  57. package/dist/tsup.cjs +4 -4
  58. package/dist/tsup.js +3 -3
  59. package/dist/unloader.cjs +3 -3
  60. package/dist/unloader.js +2 -2
  61. package/dist/unplugin.cjs +5 -5
  62. package/dist/unplugin.js +3 -3
  63. package/dist/vite.cjs +6 -6
  64. package/dist/vite.js +3 -3
  65. package/dist/webpack.cjs +6 -6
  66. package/dist/webpack.js +3 -3
  67. package/package.json +9 -9
  68. package/dist/chunk-HRAVYQI4.cjs +0 -12
  69. package/dist/chunk-OXST2CTF.cjs +0 -12
  70. package/dist/lib/chunk-76DBMONS.js.map +0 -1
  71. package/dist/lib/chunk-GEMGC7W6.cjs.map +0 -1
  72. package/dist/lib/chunk-K4EXCL46.js.map +0 -1
  73. package/dist/lib/chunk-QNWZ35R2.cjs.map +0 -1
package/README.md CHANGED
@@ -250,7 +250,11 @@ specification. Contributions of any kind welcome!
250
250
  <br />
251
251
 
252
252
  <div align="center">
253
- <img src="https://public.storm-cdn.com/brand-banner.png" width="100%" alt="Storm Software" />
253
+ <picture>
254
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
255
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
256
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
257
+ </picture>
254
258
  </div>
255
259
  <br />
256
260
 
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPYLCLJKJ_cjs = require('./chunk-PYLCLJKJ.cjs');
3
+ var chunkGVJ7DXPT_cjs = require('./chunk-GVJ7DXPT.cjs');
4
4
  require('./chunk-BXKRABQU.cjs');
5
5
  require('./chunk-Z6ARQDHR.cjs');
6
6
  require('./chunk-SALASTMK.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkPYLCLJKJ_cjs.PowerlinesAPI; }
13
+ get: function () { return chunkGVJ7DXPT_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-7DOCWJ76.js';
1
+ export { PowerlinesAPI } from './chunk-VNIL5V4Q.js';
2
2
  import './chunk-5GOXUZPZ.js';
3
3
  import './chunk-2MYPFASJ.js';
4
4
  import './chunk-575Z57QD.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk2TMERZSM_cjs = require('./chunk-2TMERZSM.cjs');
5
+ var chunkQOXJ2FG4_cjs = require('./chunk-QOXJ2FG4.cjs');
6
6
  require('./chunk-AATT73UY.cjs');
7
- require('./chunk-2LSP523Q.cjs');
8
- require('./chunk-PYLCLJKJ.cjs');
7
+ require('./chunk-SMKYEQE6.cjs');
8
+ require('./chunk-GVJ7DXPT.cjs');
9
9
  require('./chunk-BXKRABQU.cjs');
10
10
  require('./chunk-Z6ARQDHR.cjs');
11
11
  require('./chunk-SALASTMK.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunk2TMERZSM_cjs.vite_default(config)
18
+ chunkQOXJ2FG4_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-K3D4TTN5.js';
1
+ import { vite_default } from './chunk-SS3RPLJT.js';
2
2
  import './chunk-A7PVG2HH.js';
3
- import './chunk-VYLFOZVJ.js';
4
- import './chunk-7DOCWJ76.js';
3
+ import './chunk-O3RJWUWA.js';
4
+ import './chunk-VNIL5V4Q.js';
5
5
  import './chunk-5GOXUZPZ.js';
6
6
  import './chunk-2MYPFASJ.js';
7
7
  import './chunk-575Z57QD.js';
@@ -0,0 +1,292 @@
1
+ /* -------------------------------------------------------------------
2
+
3
+ ⚡ Storm Software - Powerlines
4
+
5
+ This code was released as part of the Powerlines project. Powerlines
6
+ is maintained by Storm Software under the Apache-2.0 license, and is
7
+ free for commercial and private use. For more information, please visit
8
+ our licensing page at https://stormsoftware.com/licenses/projects/powerlines.
9
+
10
+ Website: https://stormsoftware.com
11
+ Repository: https://github.com/storm-software/powerlines
12
+ Documentation: https://docs.stormsoftware.com/projects/powerlines
13
+ Contact: https://stormsoftware.com/contact
14
+
15
+ SPDX-License-Identifier: Apache-2.0
16
+
17
+ ------------------------------------------------------------------- */
18
+
19
+ import type { ConfigAPI, NodePath, types as t } from "@babel/core";
20
+ import type { HubInterface } from "@babel/traverse";
21
+
22
+ declare module "@babel/helper-plugin-utils" {
23
+ const knownAssumptions: readonly [
24
+ "arrayLikeIsIterable",
25
+ "constantReexports",
26
+ "constantSuper",
27
+ "enumerableModuleMeta",
28
+ "ignoreFunctionLength",
29
+ "ignoreToPrimitiveHint",
30
+ "iterableIsArray",
31
+ "mutableTemplateObject",
32
+ "noClassCalls",
33
+ "noDocumentAll",
34
+ "noIncompleteNsImportDetection",
35
+ "noNewArrows",
36
+ "noUninitializedPrivateFieldAccess",
37
+ "objectRestNoSymbols",
38
+ "privateFieldsAsSymbols",
39
+ "privateFieldsAsProperties",
40
+ "pureGetters",
41
+ "setClassMethods",
42
+ "setComputedProperties",
43
+ "setPublicClassFields",
44
+ "setSpreadProperties",
45
+ "skipForOfIteratorClosing",
46
+ "superIsCallableConstructor"
47
+ ];
48
+
49
+ export type AssumptionName = (typeof knownAssumptions)[number];
50
+
51
+ type AssumptionFunction = (name: AssumptionName) => boolean | undefined;
52
+
53
+ export type Target =
54
+ | "node"
55
+ | "deno"
56
+ | "chrome"
57
+ | "opera"
58
+ | "edge"
59
+ | "firefox"
60
+ | "safari"
61
+ | "ie"
62
+ | "ios"
63
+ | "android"
64
+ | "electron"
65
+ | "samsung"
66
+ | "opera_mobile";
67
+
68
+ export type Targets = {
69
+ [target in Target]?: string;
70
+ };
71
+
72
+ type TargetsFunction = () => Targets;
73
+
74
+ export type PresetAPI = {
75
+ targets: TargetsFunction;
76
+ addExternalDependency: (ref: string) => void;
77
+ } & ConfigAPI;
78
+
79
+ export type PluginAPI = {
80
+ assumption: AssumptionFunction;
81
+ } & PresetAPI &
82
+ BabelAPI;
83
+ }
84
+
85
+ declare module "@babel/core" {
86
+ export interface BabelFile
87
+ extends HubInterface,
88
+ Pick<PluginPass, "get" | "set"> {}
89
+ }
90
+
91
+ declare module "@babel/helper-module-transforms" {
92
+ interface LocalExportMetadata {
93
+ /**
94
+ * names of exports
95
+ */
96
+ names: string[];
97
+ kind: "import" | "hoisted" | "block" | "var";
98
+ }
99
+
100
+ type InteropType =
101
+ /**
102
+ * Babel interop for default-only imports
103
+ */
104
+ | "default"
105
+ /**
106
+ * Babel interop for namespace or default+named imports
107
+ */
108
+ | "namespace"
109
+ /**
110
+ * Node.js interop for default-only imports
111
+ */
112
+ | "node-default"
113
+ /**
114
+ * Node.js interop for namespace or default+named imports
115
+ */
116
+ | "node-namespace"
117
+ /**
118
+ * No interop, or named-only imports
119
+ */
120
+ | "none";
121
+
122
+ interface SourceModuleMetadata {
123
+ /**
124
+ * A unique variable name to use for this namespace object.
125
+ * Centralized for simplicity.
126
+ */
127
+ name: string;
128
+ loc: t.SourceLocation | undefined | null;
129
+ interop: InteropType;
130
+ /**
131
+ * Local binding to reference from this source namespace.
132
+ * Key: Local name, value: Import name
133
+ */
134
+ imports: Map<string, string>;
135
+ /**
136
+ * Local names that reference namespace object.
137
+ */
138
+ importsNamespace: Set<string>;
139
+ /**
140
+ * Reexports to create for namespace. Key: Export name, value: Import name
141
+ */
142
+ reexports: Map<string, string>;
143
+ /**
144
+ * List of names to re-export namespace as.
145
+ */
146
+ reexportNamespace: Set<string>;
147
+ /**
148
+ * Tracks if the source should be re-exported.
149
+ */
150
+ reexportAll: null | {
151
+ loc: t.SourceLocation | undefined | null;
152
+ };
153
+ wrap?: unknown;
154
+ referenced: boolean;
155
+ }
156
+
157
+ interface ModuleMetadata {
158
+ exportName: string;
159
+ /**
160
+ * The name of the variable that will reference an object
161
+ * containing export names.
162
+ */
163
+ exportNameListName: null | string;
164
+ hasExports: boolean;
165
+ /**
166
+ * Lookup from local binding to export information.
167
+ */
168
+ local: Map<string, LocalExportMetadata>;
169
+ /**
170
+ * Lookup of source file to source file metadata.
171
+ */
172
+ source: Map<string, SourceModuleMetadata>;
173
+ /**
174
+ * List of names that should only be printed as string literals.
175
+ * i.e. `import { "any unicode" as foo } from "some-module"`
176
+ * `stringSpecifiers` is `Set(1) ["any unicode"]`
177
+ * In most cases `stringSpecifiers` is an empty Set
178
+ */
179
+ stringSpecifiers: Set<string>;
180
+ }
181
+
182
+ type ImportInterop =
183
+ | "none"
184
+ | "babel"
185
+ | "node"
186
+ | ((source: string, filename?: string) => "none" | "babel" | "node");
187
+
188
+ type Lazy = boolean | string[] | ((source: string) => boolean);
189
+
190
+ interface RootOptions {
191
+ filename?: string | null;
192
+ filenameRelative?: string | null;
193
+ sourceRoot?: string | null;
194
+ }
195
+
196
+ export interface PluginOptions {
197
+ moduleId?: string;
198
+ moduleIds?: boolean;
199
+ getModuleId?: (moduleName: string) => string | null | undefined;
200
+ moduleRoot?: string;
201
+ }
202
+
203
+ export function getModuleName(
204
+ rootOpts: RootOptions,
205
+ pluginOpts: PluginOptions
206
+ ): string | null;
207
+
208
+ export interface RewriteModuleStatementsAndPrepareHeaderOptions {
209
+ exportName?: string;
210
+ strict?: boolean;
211
+ allowTopLevelThis?: boolean;
212
+ strictMode?: boolean;
213
+ loose?: boolean;
214
+ importInterop?: ImportInterop;
215
+ noInterop?: boolean;
216
+ lazy?: Lazy;
217
+ getWrapperPayload?: (
218
+ source: string,
219
+ metadata: SourceModuleMetadata,
220
+ importNodes: t.Node[]
221
+ ) => unknown;
222
+ wrapReference?: (
223
+ ref: t.Expression,
224
+ payload: unknown
225
+ ) => t.Expression | null | undefined;
226
+ esNamespaceOnly?: boolean;
227
+ filename: string | undefined | null;
228
+ constantReexports?: boolean | void;
229
+ enumerableModuleMeta?: boolean | void;
230
+ noIncompleteNsImportDetection?: boolean | void;
231
+ }
232
+
233
+ /**
234
+ * Perform all of the generic ES6 module rewriting needed to handle initial
235
+ * module processing. This function will rewrite the majority of the given
236
+ * program to reference the modules described by the returned metadata,
237
+ * and returns a list of statements for use when initializing the module.
238
+ */
239
+ export function rewriteModuleStatementsAndPrepareHeader(
240
+ path: NodePath<t.Program>,
241
+ options: RewriteModuleStatementsAndPrepareHeaderOptions
242
+ ): {
243
+ meta: ModuleMetadata;
244
+ headers: t.Statement[];
245
+ };
246
+
247
+ /**
248
+ * Check if a given source is an anonymous import, e.g. `import 'foo';`
249
+ */
250
+ export function isSideEffectImport(source: SourceModuleMetadata): boolean;
251
+
252
+ /**
253
+ * Create the runtime initialization statements for a given requested source.
254
+ * These will initialize all of the runtime import/export logic that
255
+ * can't be handled statically by the statements created by
256
+ * `buildExportInitializationStatements()`.
257
+ */
258
+ export function buildNamespaceInitStatements(
259
+ metadata: ModuleMetadata,
260
+ sourceMetadata: SourceModuleMetadata,
261
+ constantReexports?: boolean | void,
262
+ wrapReference?: (
263
+ ref: t.Identifier,
264
+ payload: unknown
265
+ ) => t.Expression | null | undefined
266
+ ): t.Statement[];
267
+
268
+ /**
269
+ * Flag a set of statements as hoisted above all else so that module init
270
+ * statements all run before user code.
271
+ */
272
+ export function ensureStatementsHoisted(statements: t.Statement[]): void;
273
+
274
+ /**
275
+ * Given an expression for a standard import object, like `require('foo')`,
276
+ * wrap it in a call to the interop helpers based on the type.
277
+ */
278
+ export function wrapInterop(
279
+ programPath: NodePath<t.Program>,
280
+ expr: t.Expression,
281
+ type: InteropType
282
+ ): t.CallExpression;
283
+
284
+ export function buildDynamicImport(
285
+ node: t.CallExpression | t.ImportExpression,
286
+ deferToThen: boolean,
287
+ wrapWithPromise: boolean,
288
+ builder: (specifier: t.Expression) => t.Expression
289
+ ): t.Expression;
290
+ }
291
+
292
+ export {};
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-VYLFOZVJ.js';
1
+ import { createUnpluginFactory } from './chunk-O3RJWUWA.js';
2
2
  import { createRolldownPlugin } from 'unplugin';
3
3
 
4
4
  var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
5
5
  var rolldown_default = rolldown;
6
6
 
7
7
  export { rolldown, rolldown_default };
8
- //# sourceMappingURL=chunk-TFHWUEMM.js.map
9
- //# sourceMappingURL=chunk-TFHWUEMM.js.map
8
+ //# sourceMappingURL=chunk-6LDMNSUC.js.map
9
+ //# sourceMappingURL=chunk-6LDMNSUC.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkAATT73UY_cjs = require('./chunk-AATT73UY.cjs');
4
- var chunk2LSP523Q_cjs = require('./chunk-2LSP523Q.cjs');
4
+ var chunkSMKYEQE6_cjs = require('./chunk-SMKYEQE6.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var isUndefined = require('@stryke/type-checks/is-undefined');
7
7
  var unplugin = require('unplugin');
8
8
 
9
- var esbuild = unplugin.createEsbuildPlugin(chunk2LSP523Q_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
9
+ var esbuild = unplugin.createEsbuildPlugin(chunkSMKYEQE6_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
10
10
  return {
11
11
  ...plugin,
12
12
  esbuild: {
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
32
32
 
33
33
  exports.esbuild = esbuild;
34
34
  exports.esbuild_default = esbuild_default;
35
- //# sourceMappingURL=chunk-NP2ZVRIF.cjs.map
36
- //# sourceMappingURL=chunk-NP2ZVRIF.cjs.map
35
+ //# sourceMappingURL=chunk-FLA3CH6S.cjs.map
36
+ //# sourceMappingURL=chunk-FLA3CH6S.cjs.map
@@ -4059,7 +4059,7 @@ ${console.formatLogMessage(context.config)}`);
4059
4059
  // [joinPaths(typescriptPath, "lib", "lib.esnext.full.d.ts")]
4060
4060
  );
4061
4061
  context.log(types.LogLevelLabel.TRACE, "Parsing TypeScript configuration for the Powerlines project.");
4062
- let generatedTypes = await emitTypes(context, files);
4062
+ let types$1 = await emitTypes(context, files);
4063
4063
  context.log(types.LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
4064
4064
  const directives = [];
4065
4065
  const asNextParam = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((previousResult) => isObject.isObject(previousResult) ? previousResult.code : previousResult, "asNextParam");
@@ -4069,15 +4069,15 @@ ${console.formatLogMessage(context.config)}`);
4069
4069
  order: "pre",
4070
4070
  result: "merge",
4071
4071
  asNextParam
4072
- }, generatedTypes);
4072
+ }, types$1);
4073
4073
  if (result) {
4074
4074
  if (isSetObject.isSetObject(result)) {
4075
- generatedTypes = result.code;
4075
+ types$1 = result.code;
4076
4076
  if (Array.isArray(result.directives) && result.directives.length > 0) {
4077
4077
  directives.push(...result.directives);
4078
4078
  }
4079
4079
  } else if (isSetString.isSetString(result)) {
4080
- generatedTypes = result;
4080
+ types$1 = result;
4081
4081
  }
4082
4082
  }
4083
4083
  result = await this.callHook("types", {
@@ -4086,15 +4086,15 @@ ${console.formatLogMessage(context.config)}`);
4086
4086
  order: "normal",
4087
4087
  result: "merge",
4088
4088
  asNextParam
4089
- }, generatedTypes);
4089
+ }, types$1);
4090
4090
  if (result) {
4091
4091
  if (isSetObject.isSetObject(result)) {
4092
- generatedTypes = result.code;
4092
+ types$1 = result.code;
4093
4093
  if (Array.isArray(result.directives) && result.directives.length > 0) {
4094
4094
  directives.push(...result.directives);
4095
4095
  }
4096
4096
  } else if (isSetString.isSetString(result)) {
4097
- generatedTypes = result;
4097
+ types$1 = result;
4098
4098
  }
4099
4099
  }
4100
4100
  result = await this.callHook("types", {
@@ -4103,18 +4103,18 @@ ${console.formatLogMessage(context.config)}`);
4103
4103
  order: "post",
4104
4104
  result: "merge",
4105
4105
  asNextParam
4106
- }, generatedTypes);
4106
+ }, types$1);
4107
4107
  if (result) {
4108
4108
  if (isSetObject.isSetObject(result)) {
4109
- generatedTypes = result.code;
4109
+ types$1 = result.code;
4110
4110
  if (Array.isArray(result.directives) && result.directives.length > 0) {
4111
4111
  directives.push(...result.directives);
4112
4112
  }
4113
4113
  } else if (isSetString.isSetString(result)) {
4114
- generatedTypes = result;
4114
+ types$1 = result;
4115
4115
  }
4116
4116
  }
4117
- if (generatedTypes?.trim() || directives.length > 0) {
4117
+ if (types$1?.trim() || directives.length > 0) {
4118
4118
  await context.fs.write(context.dtsPath, `${directives ? `${directives.map((directive) => `/// <reference types="${directive}" />`).join("\n")}
4119
4119
 
4120
4120
  ` : ""}${getFileHeader(context, {
@@ -4122,7 +4122,7 @@ ${console.formatLogMessage(context.config)}`);
4122
4122
  prettierIgnore: false
4123
4123
  })}
4124
4124
 
4125
- ${formatTypes(generatedTypes)}
4125
+ ${formatTypes(types$1)}
4126
4126
  `);
4127
4127
  } else {
4128
4128
  const dtsRelativePath = getTsconfigDtsPath(context);
@@ -4548,5 +4548,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
4548
4548
  exports._capnpFileId = _capnpFileId;
4549
4549
  exports.createLog = createLog;
4550
4550
  exports.extendLog = extendLog;
4551
- //# sourceMappingURL=chunk-PYLCLJKJ.cjs.map
4552
- //# sourceMappingURL=chunk-PYLCLJKJ.cjs.map
4551
+ //# sourceMappingURL=chunk-GVJ7DXPT.cjs.map
4552
+ //# sourceMappingURL=chunk-GVJ7DXPT.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
2
- import { createUnpluginFactory } from './chunk-VYLFOZVJ.js';
2
+ import { createUnpluginFactory } from './chunk-O3RJWUWA.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-W2BP7RBB.js.map
33
- //# sourceMappingURL=chunk-W2BP7RBB.js.map
32
+ //# sourceMappingURL=chunk-HHZ3E5OL.js.map
33
+ //# sourceMappingURL=chunk-HHZ3E5OL.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkSMKYEQE6_cjs = require('./chunk-SMKYEQE6.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkSMKYEQE6_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-HJCICJED.cjs.map
12
+ //# sourceMappingURL=chunk-HJCICJED.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-VYLFOZVJ.js';
1
+ import { createUnpluginFactory } from './chunk-O3RJWUWA.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-IBPL4XRD.js.map
9
- //# sourceMappingURL=chunk-IBPL4XRD.js.map
8
+ //# sourceMappingURL=chunk-IKK5YTJM.js.map
9
+ //# sourceMappingURL=chunk-IKK5YTJM.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkSMKYEQE6_cjs = require('./chunk-SMKYEQE6.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkSMKYEQE6_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-LXNDHQP7.cjs.map
12
+ //# sourceMappingURL=chunk-LXNDHQP7.cjs.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-7DOCWJ76.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-VNIL5V4Q.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -129,5 +129,5 @@ function createUnpluginFactory(variant, decorate) {
129
129
  __name(createUnpluginFactory, "createUnpluginFactory");
130
130
 
131
131
  export { createUnpluginFactory, getString };
132
- //# sourceMappingURL=chunk-VYLFOZVJ.js.map
133
- //# sourceMappingURL=chunk-VYLFOZVJ.js.map
132
+ //# sourceMappingURL=chunk-O3RJWUWA.js.map
133
+ //# sourceMappingURL=chunk-O3RJWUWA.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkAATT73UY_cjs = require('./chunk-AATT73UY.cjs');
4
- var chunk2LSP523Q_cjs = require('./chunk-2LSP523Q.cjs');
4
+ var chunkSMKYEQE6_cjs = require('./chunk-SMKYEQE6.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -84,7 +84,7 @@ function extractViteConfig(context) {
84
84
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
85
85
 
86
86
  // src/vite.ts
87
- var vite = unplugin.createVitePlugin(chunk2LSP523Q_cjs.createUnpluginFactory("vite", (api, plugin) => {
87
+ var vite = unplugin.createVitePlugin(chunkSMKYEQE6_cjs.createUnpluginFactory("vite", (api, plugin) => {
88
88
  return {
89
89
  ...plugin,
90
90
  vite: {
@@ -145,5 +145,5 @@ var vite_default = vite;
145
145
 
146
146
  exports.vite = vite;
147
147
  exports.vite_default = vite_default;
148
- //# sourceMappingURL=chunk-2TMERZSM.cjs.map
149
- //# sourceMappingURL=chunk-2TMERZSM.cjs.map
148
+ //# sourceMappingURL=chunk-QOXJ2FG4.cjs.map
149
+ //# sourceMappingURL=chunk-QOXJ2FG4.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPYLCLJKJ_cjs = require('./chunk-PYLCLJKJ.cjs');
3
+ var chunkGVJ7DXPT_cjs = require('./chunk-GVJ7DXPT.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkPYLCLJKJ_cjs.createLog("unplugin", config);
30
+ const log = chunkGVJ7DXPT_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkPYLCLJKJ_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunkGVJ7DXPT_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -132,5 +132,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
132
132
 
133
133
  exports.createUnpluginFactory = createUnpluginFactory;
134
134
  exports.getString = getString;
135
- //# sourceMappingURL=chunk-2LSP523Q.cjs.map
136
- //# sourceMappingURL=chunk-2LSP523Q.cjs.map
135
+ //# sourceMappingURL=chunk-SMKYEQE6.cjs.map
136
+ //# sourceMappingURL=chunk-SMKYEQE6.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
2
- import { createUnpluginFactory } from './chunk-VYLFOZVJ.js';
2
+ import { createUnpluginFactory } from './chunk-O3RJWUWA.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -138,5 +138,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
138
138
  var vite_default = vite;
139
139
 
140
140
  export { vite, vite_default };
141
- //# sourceMappingURL=chunk-K3D4TTN5.js.map
142
- //# sourceMappingURL=chunk-K3D4TTN5.js.map
141
+ //# sourceMappingURL=chunk-SS3RPLJT.js.map
142
+ //# sourceMappingURL=chunk-SS3RPLJT.js.map