powerlines 0.47.4 → 0.47.7

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 +50 -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
package/dist/rspack.cjs CHANGED
@@ -1,40 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_unplugin = require('./unplugin.cjs');
4
- let unplugin = require("unplugin");
5
- let _powerlines_plugin_rspack = require("@powerlines/plugin-rspack");
6
- _powerlines_plugin_rspack = require_runtime.__toESM(_powerlines_plugin_rspack, 1);
7
1
 
8
- //#region src/rspack.ts
9
- /**
10
- * An Rspack plugin that will invoke the Powerlines API hooks during the build process.
11
- *
12
- * @see https://rspack.dev/concepts/plugins
13
- *
14
- * @example
15
- * ```ts
16
- * // rspack.config.ts
17
- *
18
- * import powerlines from "powerlines/rspack";
19
- *
20
- * export default {
21
- * plugins: [powerlines({ name: "example-app", ... })],
22
- * }
23
- * ```
24
- */
25
- const unplugin$1 = (0, unplugin.createRspackPlugin)(require_unplugin.createUnpluginFactory("rspack"));
26
2
 
27
- //#endregion
28
- Object.defineProperty(exports, 'plugin', {
29
- enumerable: true,
30
- get: function () {
31
- return _powerlines_plugin_rspack.default;
32
- }
3
+ var _powerlines_unplugin_rspack = require("@powerlines/unplugin/rspack");
4
+ Object.keys(_powerlines_unplugin_rspack).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_unplugin_rspack[k]; }
8
+ });
33
9
  });
34
- Object.defineProperty(exports, 'rspack', {
35
- enumerable: true,
36
- get: function () {
37
- return _powerlines_plugin_rspack.default;
38
- }
39
- });
40
- exports.unplugin = unplugin$1;
package/dist/rspack.d.cts CHANGED
@@ -1,25 +1 @@
1
- import * as _$unplugin from "unplugin";
2
- import { RspackPluginInitialConfig } from "@powerlines/plugin-rspack/types/plugin";
3
- import plugin, { default as rspack } from "@powerlines/plugin-rspack";
4
-
5
- //#region src/rspack.d.ts
6
- /**
7
- * An Rspack plugin that will invoke the Powerlines API hooks during the build process.
8
- *
9
- * @see https://rspack.dev/concepts/plugins
10
- *
11
- * @example
12
- * ```ts
13
- * // rspack.config.ts
14
- *
15
- * import powerlines from "powerlines/rspack";
16
- *
17
- * export default {
18
- * plugins: [powerlines({ name: "example-app", ... })],
19
- * }
20
- * ```
21
- */
22
- declare const unplugin: (options: RspackPluginInitialConfig) => _$unplugin.RspackPluginInstance;
23
- //#endregion
24
- export { plugin, rspack, unplugin };
25
- //# sourceMappingURL=rspack.d.cts.map
1
+ export * from "@powerlines/unplugin/rspack";
package/dist/rspack.d.mts CHANGED
@@ -1,25 +1 @@
1
- import * as _$unplugin from "unplugin";
2
- import plugin, { default as rspack } from "@powerlines/plugin-rspack";
3
- import { RspackPluginInitialConfig } from "@powerlines/plugin-rspack/types/plugin";
4
-
5
- //#region src/rspack.d.ts
6
- /**
7
- * An Rspack plugin that will invoke the Powerlines API hooks during the build process.
8
- *
9
- * @see https://rspack.dev/concepts/plugins
10
- *
11
- * @example
12
- * ```ts
13
- * // rspack.config.ts
14
- *
15
- * import powerlines from "powerlines/rspack";
16
- *
17
- * export default {
18
- * plugins: [powerlines({ name: "example-app", ... })],
19
- * }
20
- * ```
21
- */
22
- declare const unplugin: (options: RspackPluginInitialConfig) => _$unplugin.RspackPluginInstance;
23
- //#endregion
24
- export { plugin, rspack, unplugin };
25
- //# sourceMappingURL=rspack.d.mts.map
1
+ export * from "@powerlines/unplugin/rspack";
package/dist/rspack.mjs CHANGED
@@ -1,26 +1,3 @@
1
- import { createUnpluginFactory } from "./unplugin.mjs";
2
- import { createRspackPlugin } from "unplugin";
3
- import plugin, { default as rspack } from "@powerlines/plugin-rspack";
1
+ export * from "@powerlines/unplugin/rspack"
4
2
 
5
- //#region src/rspack.ts
6
- /**
7
- * An Rspack plugin that will invoke the Powerlines API hooks during the build process.
8
- *
9
- * @see https://rspack.dev/concepts/plugins
10
- *
11
- * @example
12
- * ```ts
13
- * // rspack.config.ts
14
- *
15
- * import powerlines from "powerlines/rspack";
16
- *
17
- * export default {
18
- * plugins: [powerlines({ name: "example-app", ... })],
19
- * }
20
- * ```
21
- */
22
- const unplugin = createRspackPlugin(createUnpluginFactory("rspack"));
23
-
24
- //#endregion
25
- export { plugin, rspack, unplugin };
26
- //# sourceMappingURL=rspack.mjs.map
3
+ export { };
package/dist/storage.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
 
2
2
 
3
- var _powerlines_engine_storage = require("@powerlines/engine/storage");
4
- Object.keys(_powerlines_engine_storage).forEach(function (k) {
3
+ var _powerlines_core_storage = require("@powerlines/core/storage");
4
+ Object.keys(_powerlines_core_storage).forEach(function (k) {
5
5
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
6
  enumerable: true,
7
- get: function () { return _powerlines_engine_storage[k]; }
7
+ get: function () { return _powerlines_core_storage[k]; }
8
8
  });
9
9
  });
@@ -1 +1 @@
1
- export * from "@powerlines/engine/storage";
1
+ export * from "@powerlines/core/storage";
@@ -1 +1 @@
1
- export * from "@powerlines/engine/storage";
1
+ export * from "@powerlines/core/storage";
package/dist/storage.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export * from "@powerlines/engine/storage"
1
+ export * from "@powerlines/core/storage"
2
2
 
3
3
  export { };
package/dist/tsdown.cjs CHANGED
@@ -1,97 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_rolldown = require('./rolldown.cjs');
4
- let _powerlines_plugin_tsdown_helpers_resolve_options = require("@powerlines/plugin-tsdown/helpers/resolve-options");
5
- let _stryke_convert_to_array = require("@stryke/convert/to-array");
6
- let _stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
7
- let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
8
- let _powerlines_plugin_tsdown = require("@powerlines/plugin-tsdown");
9
- _powerlines_plugin_tsdown = require_runtime.__toESM(_powerlines_plugin_tsdown, 1);
10
1
 
11
- //#region src/tsdown.ts
12
- /**
13
- * A Tsdown configuration function that integrates Powerlines into the build process.
14
- *
15
- * @see https://github.com/rolldown/tsdown
16
- *
17
- * @example
18
- * ```ts
19
- * // tsdown.config.ts
20
- * import withPowerlines from "powerlines/tsdown";
21
- *
22
- * export default withPowerlines({
23
- * entry: ["src/index.ts"],
24
- * format: ["cjs", "esm"],
25
- * dts: true,
26
- * sourcemap: true,
27
- * clean: true,
28
- * });
29
- *
30
- * ```
31
- *
32
- * @param options - The Tsdown options to merge with the Powerlines configuration.
33
- * @returns The merged Tsdown configuration options.
34
- */
35
- function unplugin(options = {}) {
36
- return {
37
- ...options,
38
- entry: options.entry,
39
- plugins: [require_rolldown.unplugin({
40
- framework: "powerlines",
41
- name: options.name,
42
- root: options.cwd ?? process.cwd(),
43
- output: {
44
- path: options.outDir,
45
- format: (0, _powerlines_plugin_tsdown_helpers_resolve_options.resolveFromFormat)(options.format),
46
- copy: {
47
- path: options.outDir,
48
- assets: (0, _stryke_convert_to_array.toArray)(options.copy).map((copy) => {
49
- if (!copy) return;
50
- if ((0, _stryke_type_checks_is_set_string.isSetString)(copy)) return copy;
51
- if ((0, _stryke_type_checks_is_function.isFunction)(copy)) {
52
- console.warn("Function-based copy options are not supported in Powerlines.");
53
- return;
54
- }
55
- return {
56
- input: copy.from,
57
- output: copy.to
58
- };
59
- }).filter(Boolean)
60
- }
61
- },
62
- resolve: {
63
- external: options.external ? (0, _stryke_convert_to_array.toArray)(options.external).map((external) => {
64
- if ((0, _stryke_type_checks_is_function.isFunction)(external)) {
65
- console.warn("Function-based external options are not supported in Powerlines.");
66
- return;
67
- }
68
- return external;
69
- }).filter(Boolean) : void 0,
70
- noExternal: options.noExternal ? (0, _stryke_convert_to_array.toArray)(options.noExternal).map((noExternal) => {
71
- if ((0, _stryke_type_checks_is_function.isFunction)(noExternal)) {
72
- console.warn("Function-based noExternal options are not supported in Powerlines.");
73
- return;
74
- }
75
- return noExternal;
76
- }).filter(Boolean) : void 0
77
- },
78
- rolldown: options.inputOptions,
79
- tsconfig: (0, _stryke_type_checks_is_set_string.isSetString)(options.tsconfig) ? options.tsconfig : void 0
80
- })]
81
- };
82
- }
83
2
 
84
- //#endregion
85
- Object.defineProperty(exports, 'plugin', {
86
- enumerable: true,
87
- get: function () {
88
- return _powerlines_plugin_tsdown.default;
89
- }
3
+ var _powerlines_unplugin_tsdown = require("@powerlines/unplugin/tsdown");
4
+ Object.keys(_powerlines_unplugin_tsdown).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_unplugin_tsdown[k]; }
8
+ });
90
9
  });
91
- Object.defineProperty(exports, 'tsdown', {
92
- enumerable: true,
93
- get: function () {
94
- return _powerlines_plugin_tsdown.default;
95
- }
96
- });
97
- exports.unplugin = unplugin;
package/dist/tsdown.d.cts CHANGED
@@ -1,31 +1 @@
1
- import plugin, { default as tsdown } from "@powerlines/plugin-tsdown";
2
- import { UserConfig } from "tsdown/config";
3
-
4
- //#region src/tsdown.d.ts
5
- /**
6
- * A Tsdown configuration function that integrates Powerlines into the build process.
7
- *
8
- * @see https://github.com/rolldown/tsdown
9
- *
10
- * @example
11
- * ```ts
12
- * // tsdown.config.ts
13
- * import withPowerlines from "powerlines/tsdown";
14
- *
15
- * export default withPowerlines({
16
- * entry: ["src/index.ts"],
17
- * format: ["cjs", "esm"],
18
- * dts: true,
19
- * sourcemap: true,
20
- * clean: true,
21
- * });
22
- *
23
- * ```
24
- *
25
- * @param options - The Tsdown options to merge with the Powerlines configuration.
26
- * @returns The merged Tsdown configuration options.
27
- */
28
- declare function unplugin(options?: UserConfig): UserConfig;
29
- //#endregion
30
- export { plugin, tsdown, unplugin };
31
- //# sourceMappingURL=tsdown.d.cts.map
1
+ export * from "@powerlines/unplugin/tsdown";
package/dist/tsdown.d.mts CHANGED
@@ -1,31 +1 @@
1
- import plugin, { default as tsdown } from "@powerlines/plugin-tsdown";
2
- import { UserConfig } from "tsdown/config";
3
-
4
- //#region src/tsdown.d.ts
5
- /**
6
- * A Tsdown configuration function that integrates Powerlines into the build process.
7
- *
8
- * @see https://github.com/rolldown/tsdown
9
- *
10
- * @example
11
- * ```ts
12
- * // tsdown.config.ts
13
- * import withPowerlines from "powerlines/tsdown";
14
- *
15
- * export default withPowerlines({
16
- * entry: ["src/index.ts"],
17
- * format: ["cjs", "esm"],
18
- * dts: true,
19
- * sourcemap: true,
20
- * clean: true,
21
- * });
22
- *
23
- * ```
24
- *
25
- * @param options - The Tsdown options to merge with the Powerlines configuration.
26
- * @returns The merged Tsdown configuration options.
27
- */
28
- declare function unplugin(options?: UserConfig): UserConfig;
29
- //#endregion
30
- export { plugin, tsdown, unplugin };
31
- //# sourceMappingURL=tsdown.d.mts.map
1
+ export * from "@powerlines/unplugin/tsdown";
package/dist/tsdown.mjs CHANGED
@@ -1,83 +1,3 @@
1
- import { unplugin as unplugin$1 } from "./rolldown.mjs";
2
- import { resolveFromFormat } from "@powerlines/plugin-tsdown/helpers/resolve-options";
3
- import { toArray } from "@stryke/convert/to-array";
4
- import { isFunction } from "@stryke/type-checks/is-function";
5
- import { isSetString } from "@stryke/type-checks/is-set-string";
6
- import plugin, { default as tsdown } from "@powerlines/plugin-tsdown";
1
+ export * from "@powerlines/unplugin/tsdown"
7
2
 
8
- //#region src/tsdown.ts
9
- /**
10
- * A Tsdown configuration function that integrates Powerlines into the build process.
11
- *
12
- * @see https://github.com/rolldown/tsdown
13
- *
14
- * @example
15
- * ```ts
16
- * // tsdown.config.ts
17
- * import withPowerlines from "powerlines/tsdown";
18
- *
19
- * export default withPowerlines({
20
- * entry: ["src/index.ts"],
21
- * format: ["cjs", "esm"],
22
- * dts: true,
23
- * sourcemap: true,
24
- * clean: true,
25
- * });
26
- *
27
- * ```
28
- *
29
- * @param options - The Tsdown options to merge with the Powerlines configuration.
30
- * @returns The merged Tsdown configuration options.
31
- */
32
- function unplugin(options = {}) {
33
- return {
34
- ...options,
35
- entry: options.entry,
36
- plugins: [unplugin$1({
37
- framework: "powerlines",
38
- name: options.name,
39
- root: options.cwd ?? process.cwd(),
40
- output: {
41
- path: options.outDir,
42
- format: resolveFromFormat(options.format),
43
- copy: {
44
- path: options.outDir,
45
- assets: toArray(options.copy).map((copy) => {
46
- if (!copy) return;
47
- if (isSetString(copy)) return copy;
48
- if (isFunction(copy)) {
49
- console.warn("Function-based copy options are not supported in Powerlines.");
50
- return;
51
- }
52
- return {
53
- input: copy.from,
54
- output: copy.to
55
- };
56
- }).filter(Boolean)
57
- }
58
- },
59
- resolve: {
60
- external: options.external ? toArray(options.external).map((external) => {
61
- if (isFunction(external)) {
62
- console.warn("Function-based external options are not supported in Powerlines.");
63
- return;
64
- }
65
- return external;
66
- }).filter(Boolean) : void 0,
67
- noExternal: options.noExternal ? toArray(options.noExternal).map((noExternal) => {
68
- if (isFunction(noExternal)) {
69
- console.warn("Function-based noExternal options are not supported in Powerlines.");
70
- return;
71
- }
72
- return noExternal;
73
- }).filter(Boolean) : void 0
74
- },
75
- rolldown: options.inputOptions,
76
- tsconfig: isSetString(options.tsconfig) ? options.tsconfig : void 0
77
- })]
78
- };
79
- }
80
-
81
- //#endregion
82
- export { plugin, tsdown, unplugin };
83
- //# sourceMappingURL=tsdown.mjs.map
3
+ export { };
package/dist/tsup.cjs CHANGED
@@ -1,73 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_esbuild = require('./esbuild.cjs');
4
- let _stryke_helpers_omit = require("@stryke/helpers/omit");
5
- let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
6
- let _powerlines_plugin_tsup = require("@powerlines/plugin-tsup");
7
- _powerlines_plugin_tsup = require_runtime.__toESM(_powerlines_plugin_tsup, 1);
8
1
 
9
- //#region src/tsup.ts
10
- /**
11
- * A Tsup configuration function that integrates Powerlines into the build process.
12
- *
13
- * @see https://tsup.egoist.dev/#/config
14
- *
15
- * @example
16
- * ```ts
17
- * // tsup.config.ts
18
- * import withPowerlines from "powerlines/tsup";
19
- *
20
- * export default withPowerlines({
21
- * entry: ["src/index.ts"],
22
- * format: ["cjs", "esm"],
23
- * dts: true,
24
- * sourcemap: true,
25
- * clean: true,
26
- * });
27
- *
28
- * ```
29
- *
30
- * @param options - The Tsup options to merge with the Powerlines configuration.
31
- * @returns The merged Tsup configuration options.
32
- */
33
- function unplugin(options = {}) {
34
- return {
35
- ...options,
36
- esbuildPlugins: [require_esbuild.unplugin({
37
- output: {
38
- path: options.outDir,
39
- format: options.format
40
- },
41
- esbuild: {
42
- ...(0, _stryke_helpers_omit.omit)(options, [
43
- "plugins",
44
- "banner",
45
- "footer",
46
- "outExtension",
47
- "outDir",
48
- "format",
49
- "minify",
50
- "pure",
51
- "inject"
52
- ]),
53
- minify: Boolean(options.minify),
54
- pure: Array.isArray(options.pure) ? options.pure : (0, _stryke_type_checks_is_string.isString)(options.pure) ? [options.pure] : []
55
- }
56
- })]
57
- };
58
- }
59
2
 
60
- //#endregion
61
- Object.defineProperty(exports, 'plugin', {
62
- enumerable: true,
63
- get: function () {
64
- return _powerlines_plugin_tsup.default;
65
- }
3
+ var _powerlines_unplugin_tsup = require("@powerlines/unplugin/tsup");
4
+ Object.keys(_powerlines_unplugin_tsup).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_unplugin_tsup[k]; }
8
+ });
66
9
  });
67
- Object.defineProperty(exports, 'tsup', {
68
- enumerable: true,
69
- get: function () {
70
- return _powerlines_plugin_tsup.default;
71
- }
72
- });
73
- exports.unplugin = unplugin;
package/dist/tsup.d.cts CHANGED
@@ -1,31 +1 @@
1
- import plugin, { default as tsup } from "@powerlines/plugin-tsup";
2
- import { Options } from "tsup";
3
-
4
- //#region src/tsup.d.ts
5
- /**
6
- * A Tsup configuration function that integrates Powerlines into the build process.
7
- *
8
- * @see https://tsup.egoist.dev/#/config
9
- *
10
- * @example
11
- * ```ts
12
- * // tsup.config.ts
13
- * import withPowerlines from "powerlines/tsup";
14
- *
15
- * export default withPowerlines({
16
- * entry: ["src/index.ts"],
17
- * format: ["cjs", "esm"],
18
- * dts: true,
19
- * sourcemap: true,
20
- * clean: true,
21
- * });
22
- *
23
- * ```
24
- *
25
- * @param options - The Tsup options to merge with the Powerlines configuration.
26
- * @returns The merged Tsup configuration options.
27
- */
28
- declare function unplugin(options?: Options): Options;
29
- //#endregion
30
- export { plugin, tsup, unplugin };
31
- //# sourceMappingURL=tsup.d.cts.map
1
+ export * from "@powerlines/unplugin/tsup";
package/dist/tsup.d.mts CHANGED
@@ -1,31 +1 @@
1
- import plugin, { default as tsup } from "@powerlines/plugin-tsup";
2
- import { Options } from "tsup";
3
-
4
- //#region src/tsup.d.ts
5
- /**
6
- * A Tsup configuration function that integrates Powerlines into the build process.
7
- *
8
- * @see https://tsup.egoist.dev/#/config
9
- *
10
- * @example
11
- * ```ts
12
- * // tsup.config.ts
13
- * import withPowerlines from "powerlines/tsup";
14
- *
15
- * export default withPowerlines({
16
- * entry: ["src/index.ts"],
17
- * format: ["cjs", "esm"],
18
- * dts: true,
19
- * sourcemap: true,
20
- * clean: true,
21
- * });
22
- *
23
- * ```
24
- *
25
- * @param options - The Tsup options to merge with the Powerlines configuration.
26
- * @returns The merged Tsup configuration options.
27
- */
28
- declare function unplugin(options?: Options): Options;
29
- //#endregion
30
- export { plugin, tsup, unplugin };
31
- //# sourceMappingURL=tsup.d.mts.map
1
+ export * from "@powerlines/unplugin/tsup";
package/dist/tsup.mjs CHANGED
@@ -1,59 +1,3 @@
1
- import { unplugin as unplugin$1 } from "./esbuild.mjs";
2
- import { omit } from "@stryke/helpers/omit";
3
- import { isString } from "@stryke/type-checks/is-string";
4
- import plugin, { default as tsup } from "@powerlines/plugin-tsup";
1
+ export * from "@powerlines/unplugin/tsup"
5
2
 
6
- //#region src/tsup.ts
7
- /**
8
- * A Tsup configuration function that integrates Powerlines into the build process.
9
- *
10
- * @see https://tsup.egoist.dev/#/config
11
- *
12
- * @example
13
- * ```ts
14
- * // tsup.config.ts
15
- * import withPowerlines from "powerlines/tsup";
16
- *
17
- * export default withPowerlines({
18
- * entry: ["src/index.ts"],
19
- * format: ["cjs", "esm"],
20
- * dts: true,
21
- * sourcemap: true,
22
- * clean: true,
23
- * });
24
- *
25
- * ```
26
- *
27
- * @param options - The Tsup options to merge with the Powerlines configuration.
28
- * @returns The merged Tsup configuration options.
29
- */
30
- function unplugin(options = {}) {
31
- return {
32
- ...options,
33
- esbuildPlugins: [unplugin$1({
34
- output: {
35
- path: options.outDir,
36
- format: options.format
37
- },
38
- esbuild: {
39
- ...omit(options, [
40
- "plugins",
41
- "banner",
42
- "footer",
43
- "outExtension",
44
- "outDir",
45
- "format",
46
- "minify",
47
- "pure",
48
- "inject"
49
- ]),
50
- minify: Boolean(options.minify),
51
- pure: Array.isArray(options.pure) ? options.pure : isString(options.pure) ? [options.pure] : []
52
- }
53
- })]
54
- };
55
- }
56
-
57
- //#endregion
58
- export { plugin, tsup, unplugin };
59
- //# sourceMappingURL=tsup.mjs.map
3
+ export { };
package/dist/types.d.cts CHANGED
@@ -1,8 +1,3 @@
1
+ export * from "@powerlines/engine";
1
2
  export * from "@powerlines/core";
2
-
3
- //#region src/types.d.ts
4
-
5
- import * as import__powerlines_core from "@powerlines/core";
6
- //#endregion
7
- export { import__powerlines_core as types_d_exports };
8
- //# sourceMappingURL=types.d.cts.map
3
+ export * from "@powerlines/unplugin";
package/dist/types.d.mts CHANGED
@@ -1,8 +1,3 @@
1
+ export * from "@powerlines/engine";
1
2
  export * from "@powerlines/core";
2
-
3
- //#region src/types.d.ts
4
-
5
- import * as import__powerlines_core from "@powerlines/core";
6
- //#endregion
7
- export { import__powerlines_core as types_d_exports };
8
- //# sourceMappingURL=types.d.mts.map
3
+ export * from "@powerlines/unplugin";
package/dist/unloader.cjs CHANGED
@@ -1,25 +1,9 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_unplugin = require('./unplugin.cjs');
4
- let unplugin = require("unplugin");
5
1
 
6
- //#region src/unloader.ts
7
- /**
8
- * An Unloader plugin that will invoke the Powerlines API hooks during processing.
9
- *
10
- * @example
11
- * ```ts
12
- * // unloader.config.js
13
- * import powerlines from "powerlines/unloader";
14
- *
15
- * export default defineConfig({
16
- * plugins: [powerlines({ name: "example-app", ... })],
17
- * });
18
- *
19
- * ```
20
- */
21
- const unplugin$1 = (0, unplugin.createUnloaderPlugin)(require_unplugin.createUnpluginFactory("unloader"));
22
2
 
23
- //#endregion
24
- exports.unloader = unplugin$1;
25
- exports.unplugin = unplugin$1;
3
+ var _powerlines_unplugin_unloader = require("@powerlines/unplugin/unloader");
4
+ Object.keys(_powerlines_unplugin_unloader).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_unplugin_unloader[k]; }
8
+ });
9
+ });