powerlines 0.47.4 → 0.47.8

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 (149) hide show
  1. package/dist/astro.cjs +7 -24
  2. package/dist/astro.d.cts +1 -25
  3. package/dist/astro.d.mts +1 -25
  4. package/dist/astro.mjs +2 -24
  5. package/dist/esbuild.cjs +6 -54
  6. package/dist/esbuild.d.cts +1 -25
  7. package/dist/esbuild.d.mts +1 -25
  8. package/dist/esbuild.mjs +2 -42
  9. package/dist/farm.cjs +7 -26
  10. package/dist/farm.d.cts +1 -68
  11. package/dist/farm.d.mts +1 -68
  12. package/dist/farm.mjs +2 -25
  13. package/dist/index.cjs +8 -35
  14. package/dist/index.d.cts +7 -13
  15. package/dist/index.d.cts.map +1 -1
  16. package/dist/index.d.mts +7 -13
  17. package/dist/index.d.mts.map +1 -1
  18. package/dist/index.mjs +8 -25
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/next.cjs +7 -35
  21. package/dist/next.d.cts +1 -25
  22. package/dist/next.d.mts +1 -25
  23. package/dist/next.mjs +2 -35
  24. package/dist/nuxt.cjs +7 -44
  25. package/dist/nuxt.d.cts +1 -29
  26. package/dist/nuxt.d.mts +1 -29
  27. package/dist/nuxt.mjs +2 -43
  28. package/dist/package.cjs +1 -8
  29. package/dist/package.mjs +2 -3
  30. package/dist/rolldown.cjs +6 -46
  31. package/dist/rolldown.d.cts +1 -24
  32. package/dist/rolldown.d.mts +1 -24
  33. package/dist/rolldown.mjs +2 -34
  34. package/dist/rollup.cjs +6 -37
  35. package/dist/rollup.d.cts +1 -25
  36. package/dist/rollup.d.mts +1 -25
  37. package/dist/rollup.mjs +2 -25
  38. package/dist/rspack.cjs +6 -37
  39. package/dist/rspack.d.cts +1 -25
  40. package/dist/rspack.d.mts +1 -25
  41. package/dist/rspack.mjs +2 -25
  42. package/dist/storage.cjs +3 -3
  43. package/dist/storage.d.cts +1 -1
  44. package/dist/storage.d.mts +1 -1
  45. package/dist/storage.mjs +1 -1
  46. package/dist/tsdown.cjs +6 -94
  47. package/dist/tsdown.d.cts +1 -31
  48. package/dist/tsdown.d.mts +1 -31
  49. package/dist/tsdown.mjs +2 -82
  50. package/dist/tsup.cjs +6 -70
  51. package/dist/tsup.d.cts +1 -31
  52. package/dist/tsup.d.mts +1 -31
  53. package/dist/tsup.mjs +2 -58
  54. package/dist/types.d.cts +2 -7
  55. package/dist/types.d.mts +2 -7
  56. package/dist/unloader.cjs +7 -23
  57. package/dist/unloader.d.cts +1 -65
  58. package/dist/unloader.d.mts +1 -65
  59. package/dist/unloader.mjs +2 -22
  60. package/dist/unplugin.cjs +3 -99
  61. package/dist/unplugin.d.cts +1 -17
  62. package/dist/unplugin.d.mts +1 -17
  63. package/dist/unplugin.mjs +2 -97
  64. package/dist/utils.cjs +3 -19
  65. package/dist/utils.d.cts +1 -3
  66. package/dist/utils.d.mts +1 -3
  67. package/dist/utils.mjs +1 -5
  68. package/dist/vite.cjs +6 -78
  69. package/dist/vite.d.cts +1 -25
  70. package/dist/vite.d.mts +1 -25
  71. package/dist/vite.mjs +2 -65
  72. package/dist/webpack.cjs +6 -36
  73. package/dist/webpack.d.cts +1 -24
  74. package/dist/webpack.d.mts +1 -24
  75. package/dist/webpack.mjs +2 -24
  76. package/package.json +52 -351
  77. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  78. package/dist/api.cjs +0 -10
  79. package/dist/api.d.cts +0 -2
  80. package/dist/api.d.mts +0 -2
  81. package/dist/api.mjs +0 -3
  82. package/dist/astro.d.cts.map +0 -1
  83. package/dist/astro.d.mts.map +0 -1
  84. package/dist/astro.mjs.map +0 -1
  85. package/dist/context.cjs +0 -9
  86. package/dist/context.d.cts +0 -1
  87. package/dist/context.d.mts +0 -1
  88. package/dist/context.mjs +0 -3
  89. package/dist/engine.cjs +0 -30
  90. package/dist/engine.d.cts +0 -24
  91. package/dist/engine.d.cts.map +0 -1
  92. package/dist/engine.d.mts +0 -24
  93. package/dist/engine.d.mts.map +0 -1
  94. package/dist/engine.mjs +0 -29
  95. package/dist/engine.mjs.map +0 -1
  96. package/dist/esbuild.d.cts.map +0 -1
  97. package/dist/esbuild.d.mts.map +0 -1
  98. package/dist/esbuild.mjs.map +0 -1
  99. package/dist/farm.d.cts.map +0 -1
  100. package/dist/farm.d.mts.map +0 -1
  101. package/dist/farm.mjs.map +0 -1
  102. package/dist/next.d.cts.map +0 -1
  103. package/dist/next.d.mts.map +0 -1
  104. package/dist/next.mjs.map +0 -1
  105. package/dist/nuxt.d.cts.map +0 -1
  106. package/dist/nuxt.d.mts.map +0 -1
  107. package/dist/nuxt.mjs.map +0 -1
  108. package/dist/rolldown.d.cts.map +0 -1
  109. package/dist/rolldown.d.mts.map +0 -1
  110. package/dist/rolldown.mjs.map +0 -1
  111. package/dist/rollup.d.cts.map +0 -1
  112. package/dist/rollup.d.mts.map +0 -1
  113. package/dist/rollup.mjs.map +0 -1
  114. package/dist/rspack.d.cts.map +0 -1
  115. package/dist/rspack.d.mts.map +0 -1
  116. package/dist/rspack.mjs.map +0 -1
  117. package/dist/schemas.cjs +0 -9
  118. package/dist/schemas.d.cts +0 -1
  119. package/dist/schemas.d.mts +0 -1
  120. package/dist/schemas.mjs +0 -3
  121. package/dist/tsdown.d.cts.map +0 -1
  122. package/dist/tsdown.d.mts.map +0 -1
  123. package/dist/tsdown.mjs.map +0 -1
  124. package/dist/tsup.d.cts.map +0 -1
  125. package/dist/tsup.d.mts.map +0 -1
  126. package/dist/tsup.mjs.map +0 -1
  127. package/dist/types.d.cts.map +0 -1
  128. package/dist/types.d.mts.map +0 -1
  129. package/dist/typescript.cjs +0 -9
  130. package/dist/typescript.d.cts +0 -1
  131. package/dist/typescript.d.mts +0 -1
  132. package/dist/typescript.mjs +0 -3
  133. package/dist/unbuild.cjs +0 -17
  134. package/dist/unbuild.d.cts +0 -2
  135. package/dist/unbuild.d.mts +0 -2
  136. package/dist/unbuild.mjs +0 -3
  137. package/dist/unloader.d.cts.map +0 -1
  138. package/dist/unloader.d.mts.map +0 -1
  139. package/dist/unloader.mjs.map +0 -1
  140. package/dist/unplugin.d.cts.map +0 -1
  141. package/dist/unplugin.d.mts.map +0 -1
  142. package/dist/unplugin.mjs.map +0 -1
  143. package/dist/vite.d.cts.map +0 -1
  144. package/dist/vite.d.mts.map +0 -1
  145. package/dist/vite.mjs.map +0 -1
  146. package/dist/webpack.d.cts.map +0 -1
  147. package/dist/webpack.d.mts.map +0 -1
  148. package/dist/webpack.mjs.map +0 -1
  149. package/schemas/fs.capnp +0 -42
@@ -1,29 +0,0 @@
1
- //#region \0rolldown/runtime.js
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;
package/dist/api.cjs DELETED
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- let _powerlines_engine_api = require("@powerlines/engine/api");
4
-
5
- Object.defineProperty(exports, 'PowerlinesAPI', {
6
- enumerable: true,
7
- get: function () {
8
- return _powerlines_engine_api.PowerlinesAPI;
9
- }
10
- });
package/dist/api.d.cts DELETED
@@ -1,2 +0,0 @@
1
- import { PowerlinesAPI } from "@powerlines/engine/api";
2
- export { PowerlinesAPI };
package/dist/api.d.mts DELETED
@@ -1,2 +0,0 @@
1
- import { PowerlinesAPI } from "@powerlines/engine/api";
2
- export { PowerlinesAPI };
package/dist/api.mjs DELETED
@@ -1,3 +0,0 @@
1
- import { PowerlinesAPI } from "@powerlines/engine/api";
2
-
3
- export { PowerlinesAPI };
@@ -1 +0,0 @@
1
- {"version":3,"file":"astro.d.cts","names":[],"sources":["../src/astro.ts"],"mappings":";;;;;;AAuCA;;;;;;;;;;;;;;;cAAa,QAAA,GAAY,MAAA,EAAQ,uBAAA,KAA0B,eAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"astro.d.mts","names":[],"sources":["../src/astro.ts"],"mappings":";;;;;;AAuCA;;;;;;;;;;;;;;;cAAa,QAAA,GAAY,MAAA,EAAQ,uBAAA,KAA0B,eAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"astro.mjs","names":["vite"],"sources":["../src/astro.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 type { VitePluginInitialConfig } from \"@powerlines/plugin-vite/types/plugin\";\nimport type { AstroUserConfig } from \"astro\";\nimport { unplugin as vite } from \"./vite\";\n\n/**\n * An Astro plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://docs.astro.build/en/guides/integrations-guide/#creating-an-integration\n *\n * @example\n * ```js\n * // astro.config.mjs\n * import { defineConfig } from \"astro/config\";\n * import powerlines from \"powerlines/astro\";\n *\n * export default defineConfig({\n * integrations: [powerlines({ name: \"example-app\", ... })]\n * });\n *\n * ```\n */\nexport const unplugin = (config: VitePluginInitialConfig): AstroUserConfig => ({\n vite: {\n plugins: [vite(config)] as NonNullable<AstroUserConfig[\"vite\"]>[\"plugins\"]\n }\n});\n\nexport { unplugin as astro };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,YAAY,YAAsD,EAC7E,MAAM,EACJ,SAAS,CAACA,WAAK,OAAO,CAAC,EACxB,EACF"}
package/dist/context.cjs DELETED
@@ -1,9 +0,0 @@
1
-
2
-
3
- var _powerlines_engine_context = require("@powerlines/engine/context");
4
- Object.keys(_powerlines_engine_context).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return _powerlines_engine_context[k]; }
8
- });
9
- });
@@ -1 +0,0 @@
1
- export * from "@powerlines/engine/context";
@@ -1 +0,0 @@
1
- export * from "@powerlines/engine/context";
package/dist/context.mjs DELETED
@@ -1,3 +0,0 @@
1
- export * from "@powerlines/engine/context"
2
-
3
- export { };
package/dist/engine.cjs DELETED
@@ -1,30 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_package = require('./package.cjs');
4
- let _powerlines_engine = require("@powerlines/engine");
5
-
6
- //#region src/engine.ts
7
- /**
8
- * The Powerlines Engine class
9
- *
10
- * @remarks
11
- * This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
12
- *
13
- * @public
14
- */
15
- var PowerlinesEngine = class extends _powerlines_engine.PowerlinesEngine {
16
- /**
17
- * Create a new Powerlines Engine instance
18
- *
19
- * @param options - The options to initialize the context with
20
- * @returns A new instance of the Powerlines Engine
21
- */
22
- static async from(options) {
23
- const engine = await _powerlines_engine.PowerlinesEngine.from(options);
24
- engine.context.info(`🔌 The Powerlines Engine v${require_package.version} has started`);
25
- return engine;
26
- }
27
- };
28
-
29
- //#endregion
30
- exports.PowerlinesEngine = PowerlinesEngine;
package/dist/engine.d.cts DELETED
@@ -1,24 +0,0 @@
1
- import { types_d_exports } from "./types.cjs";
2
- import { PowerlinesEngine as PowerlinesEngine$1 } from "@powerlines/engine";
3
-
4
- //#region src/engine.d.ts
5
- /**
6
- * The Powerlines Engine class
7
- *
8
- * @remarks
9
- * This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
10
- *
11
- * @public
12
- */
13
- declare class PowerlinesEngine extends PowerlinesEngine$1 {
14
- /**
15
- * Create a new Powerlines Engine instance
16
- *
17
- * @param options - The options to initialize the context with
18
- * @returns A new instance of the Powerlines Engine
19
- */
20
- static from(options: types_d_exports.EngineOptions): Promise<PowerlinesEngine>;
21
- }
22
- //#endregion
23
- export { PowerlinesEngine };
24
- //# sourceMappingURL=engine.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.d.cts","names":[],"sources":["../src/engine.ts"],"mappings":";;;;;;AA8BA;;;;;;cAAa,gBAAA,SAAyB,kBAAA;EAAwB;;;;;;EAAA,OAO/B,IAAA,CAC3B,OAAA,EAAS,eAAA,CAAA,aAAA,GACR,OAAA,CAAQ,gBAAA;AAAA"}
package/dist/engine.d.mts DELETED
@@ -1,24 +0,0 @@
1
- import { types_d_exports } from "./types.mjs";
2
- import { PowerlinesEngine as PowerlinesEngine$1 } from "@powerlines/engine";
3
-
4
- //#region src/engine.d.ts
5
- /**
6
- * The Powerlines Engine class
7
- *
8
- * @remarks
9
- * This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
10
- *
11
- * @public
12
- */
13
- declare class PowerlinesEngine extends PowerlinesEngine$1 {
14
- /**
15
- * Create a new Powerlines Engine instance
16
- *
17
- * @param options - The options to initialize the context with
18
- * @returns A new instance of the Powerlines Engine
19
- */
20
- static from(options: types_d_exports.EngineOptions): Promise<PowerlinesEngine>;
21
- }
22
- //#endregion
23
- export { PowerlinesEngine };
24
- //# sourceMappingURL=engine.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.d.mts","names":[],"sources":["../src/engine.ts"],"mappings":";;;;;;AA8BA;;;;;;cAAa,gBAAA,SAAyB,kBAAA;EAAwB;;;;;;EAAA,OAO/B,IAAA,CAC3B,OAAA,EAAS,eAAA,CAAA,aAAA,GACR,OAAA,CAAQ,gBAAA;AAAA"}
package/dist/engine.mjs DELETED
@@ -1,29 +0,0 @@
1
- import { version } from "./package.mjs";
2
- import { PowerlinesEngine as PowerlinesEngine$1 } from "@powerlines/engine";
3
-
4
- //#region src/engine.ts
5
- /**
6
- * The Powerlines Engine class
7
- *
8
- * @remarks
9
- * This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
10
- *
11
- * @public
12
- */
13
- var PowerlinesEngine = class extends PowerlinesEngine$1 {
14
- /**
15
- * Create a new Powerlines Engine instance
16
- *
17
- * @param options - The options to initialize the context with
18
- * @returns A new instance of the Powerlines Engine
19
- */
20
- static async from(options) {
21
- const engine = await PowerlinesEngine$1.from(options);
22
- engine.context.info(`🔌 The Powerlines Engine v${version} has started`);
23
- return engine;
24
- }
25
- };
26
-
27
- //#endregion
28
- export { PowerlinesEngine };
29
- //# sourceMappingURL=engine.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.mjs","names":["InternalPowerlinesEngine","packageJson.version"],"sources":["../src/engine.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 { PowerlinesEngine as InternalPowerlinesEngine } from \"@powerlines/engine\";\nimport packageJson from \"../package.json\" with { type: \"json\" };\nimport type { EngineOptions } from \"./types\";\n\n/**\n * The Powerlines Engine class\n *\n * @remarks\n * This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.\n *\n * @public\n */\nexport class PowerlinesEngine extends InternalPowerlinesEngine {\n /**\n * Create a new Powerlines Engine instance\n *\n * @param options - The options to initialize the context with\n * @returns A new instance of the Powerlines Engine\n */\n public static override async from(\n options: EngineOptions\n ): Promise<PowerlinesEngine> {\n const engine = await InternalPowerlinesEngine.from(options);\n\n engine.context.info(\n `🔌 The Powerlines Engine v${packageJson.version} has started`\n );\n\n return engine;\n }\n}\n"],"mappings":";;;;;;;;;;;;AA8BA,IAAa,mBAAb,cAAsCA,mBAAyB;;;;;;;CAO7D,aAA6B,KAC3B,SAC2B;EAC3B,MAAM,SAAS,MAAMA,mBAAyB,KAAK,QAAQ;AAE3D,SAAO,QAAQ,KACb,6BAA6BC,QAAoB,cAClD;AAED,SAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"esbuild.d.cts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;;AA8CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,0BAAA,KAAA,SAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"esbuild.d.mts","names":[],"sources":["../src/esbuild.ts"],"mappings":";;;;;;;;AA8CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,0BAAA,KAAA,SAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"esbuild.mjs","names":[],"sources":["../src/esbuild.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 { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginInitialConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<EsbuildPluginInitialConfig>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {};\n\n const result = resolveOptions(api.context);\n for (const key in result) {\n if (\n isUndefined(options[key as keyof BuildOptions]) &&\n !isUndefined(result[key as keyof BuildOptions])\n ) {\n options[key as keyof BuildOptions] = result[\n key as keyof BuildOptions\n ] as any;\n }\n }\n },\n setup: async (build: PluginBuild) => {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"esbuild:setup\", { environment }, build);\n }\n }\n };\n })\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,WAAW,oBACtB,sBAAsB,YAAY,KAAK,WAAW;AAChD,QAAO;EACL,GAAG;EACH,SAAS;GACP,SAAQ,YAAW;AACjB,gBAAY,EAAE;IAEd,MAAM,SAAS,eAAe,IAAI,QAAQ;AAC1C,SAAK,MAAM,OAAO,OAChB,KACE,YAAY,QAAQ,KAA2B,IAC/C,CAAC,YAAY,OAAO,KAA2B,CAE/C,SAAQ,OAA6B,OACnC;;GAKR,OAAO,OAAO,UAAuB;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,iBAAiB,EAAE,aAAa,EAAE,MAAM;;GAE/D;EACF;EACD,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"farm.d.cts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;;;cAAa,QAAA,GAAQ,OAAA,sBAAA,mBAAA;EAAA;;;;sBAAkD,mBAAA,CAAA,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAlD,eAAA,CAAA,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"farm.d.mts","names":[],"sources":["../src/farm.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;;;cAAa,QAAA,GAAQ,OAAA,sBAAA,mBAAA;EAAA;;;;sBAAkD,mBAAA,CAAA,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAlD,eAAA,CAAA,QAAA"}
package/dist/farm.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"farm.mjs","names":[],"sources":["../src/farm.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 { createFarmPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\n/**\n * A Farm plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://farmjs.dev/plugins/writing-plugins\n *\n * @example\n * ```ts\n * // farm.config.ts\n * import powerlines from \"powerlines/farm\";\n * import { defineConfig } from \"@farmfe/core\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const unplugin = createFarmPlugin(createUnpluginFactory(\"farm\"));\n\nexport { unplugin as farm };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsCA,MAAa,WAAW,iBAAiB,sBAAsB,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.d.cts","names":[],"sources":["../src/next.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;iBAAgB,QAAA,CAAS,MAAA,GAAQ,UAAA,GAAkB,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.d.mts","names":[],"sources":["../src/next.ts"],"mappings":";;;;;AA0CA;;;;;;;;;;;;;;;;iBAAgB,QAAA,CAAS,MAAA,GAAQ,UAAA,GAAkB,UAAA"}
package/dist/next.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.mjs","names":["webpack"],"sources":["../src/next.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 { WebpackPluginUserConfig } from \"@powerlines/plugin-webpack/types/plugin\";\nimport type { NextConfig } from \"next\";\nimport type { WebpackConfigContext } from \"next/dist/server/config-shared\";\nimport type { Configuration } from \"webpack\";\nimport { unplugin as webpack } from \"./webpack\";\n\n/**\n * A Next.js configuration function that integrates Powerlines into the build process.\n *\n * @see https://nextjs.org/docs/api-reference/next.config.js/introduction\n *\n * @example\n * ```js\n * // next.config.js\n * import withPowerlines from 'powerlines/next'\n *\n * export default withPowerlines({\n * reactStrictMode: true,\n * })\n * ```\n *\n * @param config - The Next.js configuration to merge with the Powerlines configuration.\n * @returns The merged Next.js configuration.\n */\nexport function unplugin(config: NextConfig = {}): NextConfig {\n return {\n ...config,\n webpack(webpackConfig: Configuration, context: WebpackConfigContext) {\n const result = (config.webpack?.(webpackConfig, context) ||\n webpackConfig) as Configuration;\n\n result.plugins ??= [];\n result.plugins.push(webpack(webpackConfig as WebpackPluginUserConfig));\n\n return result;\n }\n };\n}\n\nexport { unplugin as next };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,SAAS,SAAqB,EAAE,EAAc;AAC5D,QAAO;EACL,GAAG;EACH,QAAQ,eAA8B,SAA+B;GACnE,MAAM,SAAU,OAAO,UAAU,eAAe,QAAQ,IACtD;AAEF,UAAO,YAAY,EAAE;AACrB,UAAO,QAAQ,KAAKA,WAAQ,cAAyC,CAAC;AAEtE,UAAO;;EAEV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nuxt.d.cts","names":[],"sources":["../src/nuxt.ts"],"mappings":";;;;;;;AA6CA;;;;;;;;;;;;;;;;;;cAAa,QAAA,EAAQ,eAAA,CAAA,UAAA,CAAA,eAAA,CAAA,UAAA,EAAA,eAAA,CAAA,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"nuxt.d.mts","names":[],"sources":["../src/nuxt.ts"],"mappings":";;;;;;;AA6CA;;;;;;;;;;;;;;;;;;cAAa,QAAA,EAAQ,eAAA,CAAA,UAAA,CAAA,eAAA,CAAA,UAAA,EAAA,eAAA,CAAA,UAAA"}
package/dist/nuxt.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"nuxt.mjs","names":["vite","webpack"],"sources":["../src/nuxt.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 { addVitePlugin, addWebpackPlugin, defineNuxtModule } from \"@nuxt/kit\";\nimport { name, version } from \"../package.json\";\nimport { UserConfig } from \"./types\";\nimport { unplugin as vite } from \"./vite\";\nimport { unplugin as webpack } from \"./webpack\";\n\n/**\n * A Nuxt plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://nuxt.com/docs/guide/directory-structure/modules\n *\n * @example\n * ```ts\n * // nuxt.config.ts\n * import { defineNuxtConfig } from \"@nuxt/kit\";\n *\n * export default defineNuxtConfig({\n * modules: [\n * [\n * \"powerlines/nuxt\",\n * { name: \"example-app\", ... }\n * ],\n * ],\n * });\n *\n * ```\n */\nexport const unplugin = defineNuxtModule<UserConfig>({\n meta: {\n name,\n version,\n configKey: \"powerlines\",\n compatibility: {\n builder: {\n vite: \"^6.0.0\"\n }\n }\n },\n defaults: {},\n setup(options) {\n addVitePlugin(() => vite(options));\n addWebpackPlugin(() => webpack(options));\n }\n});\n\nexport { unplugin as nuxt };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAa,WAAW,iBAA6B;CACnD,MAAM;EACJ;EACA;EACA,WAAW;EACX,eAAe,EACb,SAAS,EACP,MAAM,UACP,EACF;EACF;CACD,UAAU,EAAE;CACZ,MAAM,SAAS;AACb,sBAAoBA,WAAK,QAAQ,CAAC;AAClC,yBAAuBC,WAAQ,QAAQ,CAAC;;CAE3C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolldown.d.cts","names":[],"sources":["../src/rolldown.ts"],"mappings":";;;;;;;;AAgDA;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,2BAAA,KAAA,UAAA,CAAA,MAAA,QAAA,UAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolldown.d.mts","names":[],"sources":["../src/rolldown.ts"],"mappings":";;;;;;;;AAgDA;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,2BAAA,KAAA,UAAA,CAAA,MAAA,QAAA,UAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolldown.mjs","names":[],"sources":["../src/rolldown.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 { resolveOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport {\n RolldownPluginContext,\n RolldownPluginInitialConfig\n} from \"@powerlines/plugin-rolldown/types/plugin\";\nimport { defu } from \"defu\";\nimport type { InputOptions } from \"rolldown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rolldown\n} from \"@powerlines/plugin-rolldown\";\n\n/**\n * A Rolldown plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRolldownPlugin<RolldownPluginInitialConfig>(\n createUnpluginFactory<RolldownPluginContext>(\"rolldown\", (api, plugin) => {\n return {\n ...plugin,\n rolldown: {\n async options(options: InputOptions) {\n const merged = defu(await api.context.getEnvironment(), this);\n\n return defu(\n resolveOptions(merged),\n options,\n api.callHook(\n \"rolldown:options\",\n { environment: merged },\n options\n ) ?? {}\n );\n }\n }\n };\n })\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAa,WAAW,qBACtB,sBAA6C,aAAa,KAAK,WAAW;AACxE,QAAO;EACL,GAAG;EACH,UAAU,EACR,MAAM,QAAQ,SAAuB;GACnC,MAAM,SAAS,KAAK,MAAM,IAAI,QAAQ,gBAAgB,EAAE,KAAK;AAE7D,UAAO,KACL,eAAe,OAAO,EACtB,SACA,IAAI,SACF,oBACA,EAAE,aAAa,QAAQ,EACvB,QACD,IAAI,EAAE,CACR;KAEJ;EACF;EACD,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rollup.d.cts","names":[],"sources":["../src/rollup.ts"],"mappings":";;;;;;;;AA2CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,yBAAA,KAAA,QAAA,CAAA,MAAA,QAAA,QAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rollup.d.mts","names":[],"sources":["../src/rollup.ts"],"mappings":";;;;;;;;AA2CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,yBAAA,KAAA,QAAA,CAAA,MAAA,QAAA,QAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rollup.mjs","names":[],"sources":["../src/rollup.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 { RollupPluginInitialConfig } from \"@powerlines/plugin-rollup/types/plugin\";\nimport { createRollupPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rollup\n} from \"@powerlines/plugin-rollup\";\n\n/**\n * A Rollup plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rollupjs.org/guide/en/#plugins-overview\n *\n * @example\n * ```ts\n * // rollup.config.ts\n *\n * import powerlines from \"powerlines/rollup\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * })\n * ```\n */\nexport const unplugin = createRollupPlugin<RollupPluginInitialConfig>(\n createUnpluginFactory(\"rollup\")\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,WAAW,mBACtB,sBAAsB,SAAS,CAChC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rspack.d.cts","names":[],"sources":["../src/rspack.ts"],"mappings":";;;;;;;;AA2CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,yBAAA,KAAA,UAAA,CAAA,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rspack.d.mts","names":[],"sources":["../src/rspack.ts"],"mappings":";;;;;;;;AA2CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,yBAAA,KAAA,UAAA,CAAA,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rspack.mjs","names":[],"sources":["../src/rspack.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 { RspackPluginInitialConfig } from \"@powerlines/plugin-rspack/types/plugin\";\nimport { createRspackPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as rspack\n} from \"@powerlines/plugin-rspack\";\n\n/**\n * An Rspack plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://rspack.dev/concepts/plugins\n *\n * @example\n * ```ts\n * // rspack.config.ts\n *\n * import powerlines from \"powerlines/rspack\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * }\n * ```\n */\nexport const unplugin = createRspackPlugin<RspackPluginInitialConfig>(\n createUnpluginFactory(\"rspack\")\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,WAAW,mBACtB,sBAAsB,SAAS,CAChC"}
package/dist/schemas.cjs DELETED
@@ -1,9 +0,0 @@
1
-
2
-
3
- var _powerlines_engine_schemas = require("@powerlines/engine/schemas");
4
- Object.keys(_powerlines_engine_schemas).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return _powerlines_engine_schemas[k]; }
8
- });
9
- });
@@ -1 +0,0 @@
1
- export * from "@powerlines/engine/schemas";
@@ -1 +0,0 @@
1
- export * from "@powerlines/engine/schemas";
package/dist/schemas.mjs DELETED
@@ -1,3 +0,0 @@
1
- export * from "@powerlines/engine/schemas"
2
-
3
- export { };
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsdown.d.cts","names":[],"sources":["../src/tsdown.ts"],"mappings":";;;;;;AAwDA;;;;;;;;;;;;;;;;;;;;;iBAAgB,QAAA,CAAS,OAAA,GAAS,UAAA,GAAkB,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsdown.d.mts","names":[],"sources":["../src/tsdown.ts"],"mappings":";;;;;;AAwDA;;;;;;;;;;;;;;;;;;;;;iBAAgB,QAAA,CAAS,OAAA,GAAS,UAAA,GAAkB,UAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsdown.mjs","names":["rolldown"],"sources":["../src/tsdown.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 { RolldownOptions } from \"@powerlines/plugin-rolldown/types/build\";\nimport { resolveFromFormat } from \"@powerlines/plugin-tsdown/helpers/resolve-options\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ModuleFormat } from \"rolldown\";\nimport type { UserConfig } from \"tsdown/config\";\nimport { unplugin as rolldown } from \"./rolldown\";\nimport { CopyConfig, ResolveConfig } from \"./types\";\n\nexport {\n default as plugin,\n default as tsdown\n} from \"@powerlines/plugin-tsdown\";\n\n/**\n * A Tsdown configuration function that integrates Powerlines into the build process.\n *\n * @see https://github.com/rolldown/tsdown\n *\n * @example\n * ```ts\n * // tsdown.config.ts\n * import withPowerlines from \"powerlines/tsdown\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsdown options to merge with the Powerlines configuration.\n * @returns The merged Tsdown configuration options.\n */\nexport function unplugin(options: UserConfig = {}): UserConfig {\n return {\n ...options,\n entry: options.entry,\n plugins: [\n rolldown({\n framework: \"powerlines\",\n name: options.name,\n root: options.cwd ?? process.cwd(),\n output: {\n path: options.outDir,\n format: resolveFromFormat(\n options.format as ModuleFormat | ModuleFormat[]\n ),\n copy: {\n path: options.outDir!,\n assets: toArray(options.copy)\n .map(copy => {\n if (!copy) {\n return undefined;\n }\n\n if (isSetString(copy)) {\n return copy;\n }\n\n if (isFunction(copy)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based copy options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return {\n input: copy.from,\n output: copy.to\n };\n })\n .filter(Boolean) as CopyConfig[\"assets\"]\n }\n },\n resolve: {\n external: options.external\n ? (toArray(options.external)\n .map(external => {\n if (isFunction(external)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based external options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return external;\n })\n .filter(Boolean) as ResolveConfig[\"external\"])\n : undefined,\n noExternal: options.noExternal\n ? (toArray(options.noExternal)\n .map(noExternal => {\n if (isFunction(noExternal)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based noExternal options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return noExternal;\n })\n .filter(Boolean) as ResolveConfig[\"noExternal\"])\n : undefined\n },\n rolldown: options.inputOptions as RolldownOptions,\n tsconfig: isSetString(options.tsconfig) ? options.tsconfig : undefined\n })\n ]\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,SAAS,UAAsB,EAAE,EAAc;AAC7D,QAAO;EACL,GAAG;EACH,OAAO,QAAQ;EACf,SAAS,CACPA,WAAS;GACP,WAAW;GACX,MAAM,QAAQ;GACd,MAAM,QAAQ,OAAO,QAAQ,KAAK;GAClC,QAAQ;IACN,MAAM,QAAQ;IACd,QAAQ,kBACN,QAAQ,OACT;IACD,MAAM;KACJ,MAAM,QAAQ;KACd,QAAQ,QAAQ,QAAQ,KAAK,CAC1B,KAAI,SAAQ;AACX,UAAI,CAAC,KACH;AAGF,UAAI,YAAY,KAAK,CACnB,QAAO;AAGT,UAAI,WAAW,KAAK,EAAE;AAEpB,eAAQ,KACN,+DACD;AAED;;AAGF,aAAO;OACL,OAAO,KAAK;OACZ,QAAQ,KAAK;OACd;OACD,CACD,OAAO,QAAQ;KACnB;IACF;GACD,SAAS;IACP,UAAU,QAAQ,WACb,QAAQ,QAAQ,SAAS,CACvB,KAAI,aAAY;AACf,SAAI,WAAW,SAAS,EAAE;AAExB,cAAQ,KACN,mEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACJ,YAAY,QAAQ,aACf,QAAQ,QAAQ,WAAW,CACzB,KAAI,eAAc;AACjB,SAAI,WAAW,WAAW,EAAE;AAE1B,cAAQ,KACN,qEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACL;GACD,UAAU,QAAQ;GAClB,UAAU,YAAY,QAAQ,SAAS,GAAG,QAAQ,WAAW;GAC9D,CAAC,CACH;EACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsup.d.cts","names":[],"sources":["../src/tsup.ts"],"mappings":";;;;;;AAgDA;;;;;;;;;;;;;;;;;;;;;iBAAgB,QAAA,CAAS,OAAA,GAAS,OAAA,GAAe,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsup.d.mts","names":[],"sources":["../src/tsup.ts"],"mappings":";;;;;;AAgDA;;;;;;;;;;;;;;;;;;;;;iBAAgB,QAAA,CAAS,OAAA,GAAS,OAAA,GAAe,OAAA"}
package/dist/tsup.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsup.mjs","names":["esbuild"],"sources":["../src/tsup.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 { omit } from \"@stryke/helpers/omit\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { Options } from \"tsup\";\nimport { unplugin as esbuild } from \"./esbuild\";\n\nexport { default as plugin, default as tsup } from \"@powerlines/plugin-tsup\";\n\n/**\n * A Tsup configuration function that integrates Powerlines into the build process.\n *\n * @see https://tsup.egoist.dev/#/config\n *\n * @example\n * ```ts\n * // tsup.config.ts\n * import withPowerlines from \"powerlines/tsup\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsup options to merge with the Powerlines configuration.\n * @returns The merged Tsup configuration options.\n */\nexport function unplugin(options: Options = {}): Options {\n return {\n ...options,\n esbuildPlugins: [\n esbuild({\n output: {\n path: options.outDir,\n format: options.format\n },\n esbuild: {\n ...omit(options, [\n \"plugins\",\n \"banner\",\n \"footer\",\n \"outExtension\",\n \"outDir\",\n \"format\",\n \"minify\",\n \"pure\",\n \"inject\"\n ]),\n minify: Boolean(options.minify),\n pure: Array.isArray(options.pure)\n ? options.pure\n : isString(options.pure)\n ? [options.pure]\n : []\n }\n })\n ]\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,SAAgB,SAAS,UAAmB,EAAE,EAAW;AACvD,QAAO;EACL,GAAG;EACH,gBAAgB,CACdA,WAAQ;GACN,QAAQ;IACN,MAAM,QAAQ;IACd,QAAQ,QAAQ;IACjB;GACD,SAAS;IACP,GAAG,KAAK,SAAS;KACf;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACD,CAAC;IACF,QAAQ,QAAQ,QAAQ,OAAO;IAC/B,MAAM,MAAM,QAAQ,QAAQ,KAAK,GAC7B,QAAQ,OACR,SAAS,QAAQ,KAAK,GACpB,CAAC,QAAQ,KAAK,GACd,EAAE;IACT;GACF,CAAC,CACH;EACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}
@@ -1,9 +0,0 @@
1
-
2
-
3
- var _powerlines_engine_typescript = require("@powerlines/engine/typescript");
4
- Object.keys(_powerlines_engine_typescript).forEach(function (k) {
5
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: function () { return _powerlines_engine_typescript[k]; }
8
- });
9
- });
@@ -1 +0,0 @@
1
- export * from "@powerlines/engine/typescript";
@@ -1 +0,0 @@
1
- export * from "@powerlines/engine/typescript";
@@ -1,3 +0,0 @@
1
- export * from "@powerlines/engine/typescript"
2
-
3
- export { };
package/dist/unbuild.cjs DELETED
@@ -1,17 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- let _powerlines_plugin_unbuild = require("@powerlines/plugin-unbuild");
4
- _powerlines_plugin_unbuild = require_runtime.__toESM(_powerlines_plugin_unbuild, 1);
5
-
6
- Object.defineProperty(exports, 'plugin', {
7
- enumerable: true,
8
- get: function () {
9
- return _powerlines_plugin_unbuild.default;
10
- }
11
- });
12
- Object.defineProperty(exports, 'unbuild', {
13
- enumerable: true,
14
- get: function () {
15
- return _powerlines_plugin_unbuild.default;
16
- }
17
- });
@@ -1,2 +0,0 @@
1
- import plugin, { default as unbuild } from "@powerlines/plugin-unbuild";
2
- export { plugin, unbuild };
@@ -1,2 +0,0 @@
1
- import plugin, { default as unbuild } from "@powerlines/plugin-unbuild";
2
- export { plugin, unbuild };
package/dist/unbuild.mjs DELETED
@@ -1,3 +0,0 @@
1
- import plugin, { default as unbuild } from "@powerlines/plugin-unbuild";
2
-
3
- export { plugin, unbuild };
@@ -1 +0,0 @@
1
- {"version":3,"file":"unloader.d.cts","names":[],"sources":["../src/unloader.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCa,QAAA,GAAQ,OAAA,sBAAA,mBAAA;EAAA;;;;sBAA0D,mBAAA,CAAA,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA1D,UAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unloader.d.mts","names":[],"sources":["../src/unloader.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCa,QAAA,GAAQ,OAAA,sBAAA,mBAAA;EAAA;;;;sBAA0D,mBAAA,CAAA,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;OAA1D,UAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unloader.mjs","names":[],"sources":["../src/unloader.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 { createUnloaderPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\n/**\n * An Unloader plugin that will invoke the Powerlines API hooks during processing.\n *\n * @example\n * ```ts\n * // unloader.config.js\n * import powerlines from \"powerlines/unloader\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const unplugin = createUnloaderPlugin(createUnpluginFactory(\"unloader\"));\n\nexport { unplugin as unloader };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmCA,MAAa,WAAW,qBAAqB,sBAAsB,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.d.cts","names":[],"sources":["../src/unplugin.ts"],"mappings":";;;;;;;;;AA8CA;;;;iBAAgB,qBAAA,kBACG,aAAA,kCACe,sBAAA,GAC9B,sBAAA,CAAA,CAEF,OAAA,EAAS,uBAAA,EACT,QAAA,IACE,GAAA,EAAK,aAAA,CAAc,QAAA,aACnB,MAAA,EAAQ,eAAA,CAAgB,QAAA,MACrB,iBAAA,GACJ,eAAA,CAAgB,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.d.mts","names":[],"sources":["../src/unplugin.ts"],"mappings":";;;;;;;;;AA8CA;;;;iBAAgB,qBAAA,kBACG,aAAA,kCACe,sBAAA,GAC9B,sBAAA,CAAA,CAEF,OAAA,EAAS,uBAAA,EACT,QAAA,IACE,GAAA,EAAK,aAAA,CAAc,QAAA,aACnB,MAAA,EAAQ,iBAAA,CAAgB,QAAA,MACrB,eAAA,GACJ,eAAA,CAAgB,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"unplugin.mjs","names":[],"sources":["../src/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 type {\n PluginContext,\n UnpluginBuilderVariant,\n UnpluginFactory,\n UnpluginOptions\n} from \"@powerlines/core\";\nimport { getString } from \"@powerlines/core/lib/utilities/source-file\";\nimport { createLogger } from \"@powerlines/core/plugin-utils/logging\";\nimport { getWorkspaceRoot } from \"@stryke/fs/get-workspace-root\";\nimport { LoadResult } from \"rolldown\";\nimport type {\n UnpluginOptions as BaseUnpluginOptions,\n TransformResult,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { setParseImpl } from \"unplugin\";\nimport { PowerlinesAPI } from \"./api\";\n\nexport * from \"@powerlines/core/lib/unplugin\";\n\n/**\n * Creates a Powerlines unplugin factory that generates a plugin instance.\n *\n * @param variant - The build variant for which to create the unplugin.\n * @param decorate - An optional function to decorate the unplugin options.\n * @returns The unplugin factory that generates a plugin instance.\n */\nexport function createUnpluginFactory<\n TContext extends PluginContext,\n TUnpluginBuilderVariant extends UnpluginBuilderVariant =\n UnpluginBuilderVariant\n>(\n variant: TUnpluginBuilderVariant,\n decorate?: (\n api: PowerlinesAPI<TContext[\"config\"]>,\n plugin: UnpluginOptions<TContext>\n ) => BaseUnpluginOptions\n): UnpluginFactory<TContext> {\n return (options, meta): UnpluginOptions<TContext> => {\n let logger = createLogger(options.name || \"powerlines\", {});\n logger.debug(\"Initializing Unplugin\");\n\n try {\n const initialConfig = {\n ...options,\n variant,\n unplugin: meta\n };\n\n let api!: PowerlinesAPI<TContext[\"config\"]>;\n\n async function buildStart(this: UnpluginBuildContext): Promise<void> {\n api = await PowerlinesAPI.from(\n {\n ...options,\n cwd: getWorkspaceRoot(process.cwd()),\n root: initialConfig.root,\n mode: initialConfig.mode\n },\n initialConfig\n );\n\n logger = api.context.logger;\n logger.debug(\"Powerlines build plugin starting...\");\n\n setParseImpl(api.context.parse.bind(api.context));\n\n logger.debug(\"Preparing build artifacts for the Powerlines project...\");\n\n await api.prepare({\n command: \"build\"\n });\n }\n\n async function resolveId(\n this: UnpluginBuildContext & UnpluginContext,\n id: string,\n importer?: string,\n options: {\n isEntry: boolean;\n } = { isEntry: false }\n ) {\n return api.context.resolve(id, importer, options);\n }\n\n async function load(\n this: UnpluginBuildContext & UnpluginContext,\n id: string\n ): Promise<LoadResult> {\n const environment = await api.context.getEnvironment();\n\n let result = await api.callHook(\n \"load\",\n { environment, order: \"pre\" },\n id\n );\n if (result) {\n return result;\n }\n\n result = await api.callHook(\n \"load\",\n { environment, order: \"normal\" },\n id\n );\n if (result) {\n return result;\n }\n\n result = await environment.load(id);\n if (result) {\n return result;\n }\n\n return api.callHook(\"load\", { environment, order: \"post\" }, id);\n }\n\n async function transform(\n code: string,\n id: string\n ): Promise<TransformResult> {\n return api.callHook(\n \"transform\",\n {\n environment: await api.context.getEnvironment(),\n result: \"merge\",\n asNextParam: previousResult => getString(previousResult)\n },\n getString(code),\n id\n );\n }\n\n async function writeBundle(): Promise<void> {\n logger.debug(\"Finalizing Powerlines project output...\");\n\n await api.callHook(\"writeBundle\", {\n environment: await api.context.getEnvironment()\n });\n }\n\n const unpluginOptions = {\n name: \"powerlines\",\n api,\n resolveId,\n load,\n transform,\n buildStart,\n writeBundle\n } as UnpluginOptions<TContext>;\n\n const result = decorate\n ? decorate(api, unpluginOptions)\n : unpluginOptions;\n\n logger.debug(\"Unplugin initialized successfully.\");\n\n return { api, ...result };\n } catch (error) {\n logger.error((error as Error)?.message);\n\n throw error;\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA8CA,SAAgB,sBAKd,SACA,UAI2B;AAC3B,SAAQ,SAAS,SAAoC;EACnD,IAAI,SAAS,aAAa,QAAQ,QAAQ,cAAc,EAAE,CAAC;AAC3D,SAAO,MAAM,wBAAwB;AAErC,MAAI;GACF,MAAM,gBAAgB;IACpB,GAAG;IACH;IACA,UAAU;IACX;GAED,IAAI;GAEJ,eAAe,aAAsD;AACnE,UAAM,MAAM,cAAc,KACxB;KACE,GAAG;KACH,KAAK,iBAAiB,QAAQ,KAAK,CAAC;KACpC,MAAM,cAAc;KACpB,MAAM,cAAc;KACrB,EACD,cACD;AAED,aAAS,IAAI,QAAQ;AACrB,WAAO,MAAM,sCAAsC;AAEnD,iBAAa,IAAI,QAAQ,MAAM,KAAK,IAAI,QAAQ,CAAC;AAEjD,WAAO,MAAM,0DAA0D;AAEvE,UAAM,IAAI,QAAQ,EAChB,SAAS,SACV,CAAC;;GAGJ,eAAe,UAEb,IACA,UACA,UAEI,EAAE,SAAS,OAAO,EACtB;AACA,WAAO,IAAI,QAAQ,QAAQ,IAAI,UAAU,QAAQ;;GAGnD,eAAe,KAEb,IACqB;IACrB,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;IAEtD,IAAI,SAAS,MAAM,IAAI,SACrB,QACA;KAAE;KAAa,OAAO;KAAO,EAC7B,GACD;AACD,QAAI,OACF,QAAO;AAGT,aAAS,MAAM,IAAI,SACjB,QACA;KAAE;KAAa,OAAO;KAAU,EAChC,GACD;AACD,QAAI,OACF,QAAO;AAGT,aAAS,MAAM,YAAY,KAAK,GAAG;AACnC,QAAI,OACF,QAAO;AAGT,WAAO,IAAI,SAAS,QAAQ;KAAE;KAAa,OAAO;KAAQ,EAAE,GAAG;;GAGjE,eAAe,UACb,MACA,IAC0B;AAC1B,WAAO,IAAI,SACT,aACA;KACE,aAAa,MAAM,IAAI,QAAQ,gBAAgB;KAC/C,QAAQ;KACR,cAAa,mBAAkB,UAAU,eAAe;KACzD,EACD,UAAU,KAAK,EACf,GACD;;GAGH,eAAe,cAA6B;AAC1C,WAAO,MAAM,0CAA0C;AAEvD,UAAM,IAAI,SAAS,eAAe,EAChC,aAAa,MAAM,IAAI,QAAQ,gBAAgB,EAChD,CAAC;;GAGJ,MAAM,kBAAkB;IACtB,MAAM;IACN;IACA;IACA;IACA;IACA;IACA;IACD;GAED,MAAM,SAAS,WACX,SAAS,KAAK,gBAAgB,GAC9B;AAEJ,UAAO,MAAM,qCAAqC;AAElD,UAAO;IAAE;IAAK,GAAG;IAAQ;WAClB,OAAO;AACd,UAAO,MAAO,OAAiB,QAAQ;AAEvC,SAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.d.cts","names":[],"sources":["../src/vite.ts"],"mappings":";;;;;;;;AA8CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,uBAAA,KAAA,MAAA,CAAA,MAAA,QAAA,MAAA,CAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.d.mts","names":[],"sources":["../src/vite.ts"],"mappings":";;;;;;;;AA8CA;;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,uBAAA,KAAA,MAAA,CAAA,MAAA,QAAA,MAAA,CAAA,MAAA"}
package/dist/vite.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.mjs","names":["defu"],"sources":["../src/vite.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 { resolveOptions } from \"@powerlines/plugin-vite/helpers/resolve-options\";\nimport {\n ViteOptions,\n VitePluginInitialConfig\n} from \"@powerlines/plugin-vite/types\";\nimport { isDevelopmentMode, isTestMode } from \"@stryke/env/environment-checks\";\nimport defu from \"defu\";\nimport { createVitePlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport { default as plugin, default as vite } from \"@powerlines/plugin-vite\";\n\n/**\n * A Vite plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://vitejs.dev/guide/api-plugin.html#plugin-api\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import powerlines from \"powerlines/vite\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const unplugin = createVitePlugin<VitePluginInitialConfig>(\n createUnpluginFactory(\"vite\", (api, plugin) => {\n return {\n ...plugin,\n vite: {\n sharedDuringBuild: true,\n\n async hotUpdate(options) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:hotUpdate\", { environment }, options);\n },\n async config(config, env) {\n api.context.config.mode = isDevelopmentMode(env.mode)\n ? \"development\"\n : isTestMode(env.mode)\n ? \"test\"\n : \"production\";\n\n const environment = await api.context.getEnvironment();\n const result = await api.callHook(\n \"vite:config\",\n { environment },\n config,\n env\n );\n\n return defu(\n resolveOptions(api.context),\n result?.build ?? {},\n config\n ) as Omit<ViteOptions, \"plugins\">;\n },\n async configResolved(_config) {\n const environment = await api.context.getEnvironment();\n\n await api.callHook(\"configResolved\", { environment });\n },\n async configureServer(server) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:configureServer\", { environment }, server);\n },\n async configurePreviewServer(server) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\n \"vite:configurePreviewServer\",\n { environment },\n server\n );\n },\n async transformIndexHtml(html, ctx) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\n \"vite:transformIndexHtml\",\n { environment },\n html,\n ctx\n );\n },\n async handleHotUpdate(ctx) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:handleHotUpdate\", { environment }, ctx);\n }\n }\n };\n })\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,WAAW,iBACtB,sBAAsB,SAAS,KAAK,WAAW;AAC7C,QAAO;EACL,GAAG;EACH,MAAM;GACJ,mBAAmB;GAEnB,MAAM,UAAU,SAAS;IACvB,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,kBAAkB,EAAE,aAAa,EAAE,QAAQ;;GAEjE,MAAM,OAAO,QAAQ,KAAK;AACxB,QAAI,QAAQ,OAAO,OAAO,kBAAkB,IAAI,KAAK,GACjD,gBACA,WAAW,IAAI,KAAK,GAClB,SACA;IAEN,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;IACtD,MAAM,SAAS,MAAM,IAAI,SACvB,eACA,EAAE,aAAa,EACf,QACA,IACD;AAED,WAAOA,OACL,eAAe,IAAI,QAAQ,EAC3B,QAAQ,SAAS,EAAE,EACnB,OACD;;GAEH,MAAM,eAAe,SAAS;IAC5B,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,UAAM,IAAI,SAAS,kBAAkB,EAAE,aAAa,CAAC;;GAEvD,MAAM,gBAAgB,QAAQ;IAC5B,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,wBAAwB,EAAE,aAAa,EAAE,OAAO;;GAEtE,MAAM,uBAAuB,QAAQ;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SACT,+BACA,EAAE,aAAa,EACf,OACD;;GAEH,MAAM,mBAAmB,MAAM,KAAK;IAClC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SACT,2BACA,EAAE,aAAa,EACf,MACA,IACD;;GAEH,MAAM,gBAAgB,KAAK;IACzB,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,wBAAwB,EAAE,aAAa,EAAE,IAAI;;GAEpE;EACF;EACD,CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.d.cts","names":[],"sources":["../src/webpack.ts"],"mappings":";;;;;;;;AA0CA;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,0BAAA,KAAA,SAAA,CAAA,qBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.d.mts","names":[],"sources":["../src/webpack.ts"],"mappings":";;;;;;;;AA0CA;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,0BAAA,KAAA,SAAA,CAAA,qBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"webpack.mjs","names":[],"sources":["../src/webpack.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 { WebpackPluginInitialConfig } from \"@powerlines/plugin-webpack/types/plugin\";\nimport { createWebpackPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as webpack\n} from \"@powerlines/plugin-webpack\";\n\n/**\n * An Webpack plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture\n *\n * @example\n * ```js\n * // webpack.config.js\n * import powerlines from \"powerlines/webpack\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * }\n * ```\n */\nexport const unplugin = createWebpackPlugin<WebpackPluginInitialConfig>(\n createUnpluginFactory(\"webpack\")\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0CA,MAAa,WAAW,oBACtB,sBAAsB,UAAU,CACjC"}
package/schemas/fs.capnp DELETED
@@ -1,42 +0,0 @@
1
- @0xa56c61324b9d6e49;
2
-
3
- # Additional metadata associated with a file in the file system.
4
- struct FileMetadata {
5
- # The identifier for the file data.
6
- id @0 :Text;
7
- # The type of the file.
8
- type @1 :Text = "normal";
9
- # The timestamp representing the file's creation date.
10
- timestamp @2 :UInt32;
11
- # Additional metadata associated with the file.
12
- properties @3 :List(KeyValuePair);
13
-
14
- struct KeyValuePair {
15
- key @0 :Text;
16
- value @1 :Text;
17
- }
18
- }
19
-
20
- # A mapping between a file path and its unique identifier.
21
- # Note: Multiple paths can map to the same identifier (e.g., symlinks).
22
- struct FileId {
23
- # An identifier for the file.
24
- id @0 :Text;
25
- # A virtual (or actual) path to the file in the file system.
26
- path @1 :Text;
27
- }
28
-
29
- # The content of a file in the file system.
30
- struct FileStorage {
31
- # An identifier for the file.
32
- path @0 :Text;
33
- # A virtual (or actual) path to the file in the file system.
34
- code @1 :Text;
35
- }
36
-
37
- # A virtual representation of a file system containing multiple files.
38
- struct FileSystem {
39
- ids @0 :List(FileId);
40
- storage @1 :List(FileStorage);
41
- metadata @2 :List(FileMetadata);
42
- }