@powerlines/core 0.3.0 → 0.3.1

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.
@@ -1,23 +1,58 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
+ const require_plugin_utils_merge = require('./merge.cjs');
4
+ let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
5
+ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
3
6
  let unplugin_combine = require("unplugin-combine");
4
7
 
5
8
  //#region src/plugin-utils/combine-plugins.ts
6
9
  /**
10
+ * Combines multiple plugins into a single plugin instance. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.
11
+ *
12
+ * @param pluginOptions - The plugin options to combine, which can be a single plugin instance or an object containing plugin instances for different build tools.
13
+ * @returns A single plugin instance that combines the functionality of the provided plugin options.
14
+ */
15
+ function combinePluginOptions(pluginOptions) {
16
+ return {
17
+ async rollup() {
18
+ return (await pluginOptions.rollup()).reduce((ret, plugin) => require_plugin_utils_merge.merge(ret, plugin), {});
19
+ },
20
+ async rolldown() {
21
+ return (await pluginOptions.rolldown()).reduce((ret, plugin) => require_plugin_utils_merge.merge(ret, plugin), {});
22
+ },
23
+ async vite() {
24
+ return (await pluginOptions.vite()).reduce((ret, plugin) => require_plugin_utils_merge.merge(ret, plugin), {});
25
+ },
26
+ async esbuild() {
27
+ return pluginOptions.esbuild();
28
+ },
29
+ async webpack() {
30
+ return pluginOptions.webpack();
31
+ },
32
+ async rspack() {
33
+ return pluginOptions.rspack();
34
+ },
35
+ get raw() {
36
+ return pluginOptions;
37
+ }
38
+ };
39
+ }
40
+ /**
7
41
  * Combines multiple plugins into a single plugin. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.
8
42
  *
9
43
  * @param options - The options for combining plugins, including the name and the plugins to combine.
10
44
  * @returns A single plugin that combines the functionality of the provided plugins.
11
45
  */
12
46
  function combinePlugins(options) {
13
- const { name = "powerlines-combined ", plugins } = options;
14
- return (0, unplugin_combine.createCombinePlugin)(() => {
47
+ const { plugins, name = `powerlines-${plugins.filter((p) => (0, _stryke_type_checks_is_set_object.isSetObject)(p) && "name" in p && (0, _stryke_type_checks_is_set_string.isSetString)(p.name)).map((p) => p.name.replace(/^powerlines[\-_:]?/, "").replace(/[\-_:]?powerlines$/, "")).join("-")}` } = options;
48
+ return combinePluginOptions((0, unplugin_combine.createCombinePlugin)(() => {
15
49
  return {
16
50
  name,
17
51
  plugins
18
52
  };
19
- });
53
+ }));
20
54
  }
21
55
 
22
56
  //#endregion
57
+ exports.combinePluginOptions = combinePluginOptions;
23
58
  exports.combinePlugins = combinePlugins;
@@ -1,6 +1,24 @@
1
+ import { Plugin } from "../types/plugin.cjs";
2
+ import * as esbuild from "esbuild";
3
+ import * as unplugin_combine0 from "unplugin-combine";
1
4
  import { OptionsPlugin, UnpluginCombineInstance } from "unplugin-combine";
2
5
 
3
6
  //#region src/plugin-utils/combine-plugins.d.ts
7
+ /**
8
+ * Combines multiple plugins into a single plugin instance. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.
9
+ *
10
+ * @param pluginOptions - The plugin options to combine, which can be a single plugin instance or an object containing plugin instances for different build tools.
11
+ * @returns A single plugin instance that combines the functionality of the provided plugin options.
12
+ */
13
+ declare function combinePluginOptions(pluginOptions: UnpluginCombineInstance<any>): {
14
+ rollup(): Promise<Plugin<any>>;
15
+ rolldown(): Promise<Plugin<any>>;
16
+ vite(): Promise<Plugin<any>>;
17
+ esbuild(): Promise<esbuild.Plugin>;
18
+ webpack(): Promise<unplugin_combine0.WebpackPlugin>;
19
+ rspack(): Promise<unplugin_combine0.RspackPlugin>;
20
+ readonly raw: UnpluginCombineInstance<any>;
21
+ };
4
22
  interface CombinePluginsOptions {
5
23
  name?: string;
6
24
  plugins: OptionsPlugin[];
@@ -11,8 +29,16 @@ interface CombinePluginsOptions {
11
29
  * @param options - The options for combining plugins, including the name and the plugins to combine.
12
30
  * @returns A single plugin that combines the functionality of the provided plugins.
13
31
  */
14
- declare function combinePlugins(options: CombinePluginsOptions): UnpluginCombineInstance<any>;
32
+ declare function combinePlugins(options: CombinePluginsOptions): {
33
+ rollup(): Promise<Plugin<any>>;
34
+ rolldown(): Promise<Plugin<any>>;
35
+ vite(): Promise<Plugin<any>>;
36
+ esbuild(): Promise<esbuild.Plugin>;
37
+ webpack(): Promise<unplugin_combine0.WebpackPlugin>;
38
+ rspack(): Promise<unplugin_combine0.RspackPlugin>;
39
+ readonly raw: UnpluginCombineInstance<any>;
40
+ };
15
41
  declare type __ΩCombinePluginsOptions = any[];
16
42
  //#endregion
17
- export { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePlugins };
43
+ export { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePluginOptions, combinePlugins };
18
44
  //# sourceMappingURL=combine-plugins.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine-plugins.d.cts","names":[],"sources":["../../src/plugin-utils/combine-plugins.ts"],"mappings":";;;UAwBiB,qBAAA;EACf,IAAA;EACA,OAAA,EAAS,aAAA;AAAA;;;;;;;iBASK,cAAA,CACd,OAAA,EAAS,qBAAA,GACR,uBAAA;AAAA"}
1
+ {"version":3,"file":"combine-plugins.d.cts","names":[],"sources":["../../src/plugin-utils/combine-plugins.ts"],"mappings":";;;;;;;;;;AAkCA;;iBAAgB,oBAAA,CACd,aAAA,EAAe,uBAAA;;;;;;;;;UAoCA,qBAAA;EACf,IAAA;EACA,OAAA,EAAS,aAAA;AAAA;;;;;;;iBASK,cAAA,CAAe,OAAA,EAAS,qBAAA"}
@@ -1,6 +1,24 @@
1
+ import { Plugin } from "../types/plugin.mjs";
2
+ import * as unplugin_combine0 from "unplugin-combine";
1
3
  import { OptionsPlugin, UnpluginCombineInstance } from "unplugin-combine";
4
+ import * as esbuild from "esbuild";
2
5
 
3
6
  //#region src/plugin-utils/combine-plugins.d.ts
7
+ /**
8
+ * Combines multiple plugins into a single plugin instance. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.
9
+ *
10
+ * @param pluginOptions - The plugin options to combine, which can be a single plugin instance or an object containing plugin instances for different build tools.
11
+ * @returns A single plugin instance that combines the functionality of the provided plugin options.
12
+ */
13
+ declare function combinePluginOptions(pluginOptions: UnpluginCombineInstance<any>): {
14
+ rollup(): Promise<Plugin<any>>;
15
+ rolldown(): Promise<Plugin<any>>;
16
+ vite(): Promise<Plugin<any>>;
17
+ esbuild(): Promise<esbuild.Plugin>;
18
+ webpack(): Promise<unplugin_combine0.WebpackPlugin>;
19
+ rspack(): Promise<unplugin_combine0.RspackPlugin>;
20
+ readonly raw: UnpluginCombineInstance<any>;
21
+ };
4
22
  interface CombinePluginsOptions {
5
23
  name?: string;
6
24
  plugins: OptionsPlugin[];
@@ -11,8 +29,16 @@ interface CombinePluginsOptions {
11
29
  * @param options - The options for combining plugins, including the name and the plugins to combine.
12
30
  * @returns A single plugin that combines the functionality of the provided plugins.
13
31
  */
14
- declare function combinePlugins(options: CombinePluginsOptions): UnpluginCombineInstance<any>;
32
+ declare function combinePlugins(options: CombinePluginsOptions): {
33
+ rollup(): Promise<Plugin<any>>;
34
+ rolldown(): Promise<Plugin<any>>;
35
+ vite(): Promise<Plugin<any>>;
36
+ esbuild(): Promise<esbuild.Plugin>;
37
+ webpack(): Promise<unplugin_combine0.WebpackPlugin>;
38
+ rspack(): Promise<unplugin_combine0.RspackPlugin>;
39
+ readonly raw: UnpluginCombineInstance<any>;
40
+ };
15
41
  declare type __ΩCombinePluginsOptions = any[];
16
42
  //#endregion
17
- export { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePlugins };
43
+ export { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePluginOptions, combinePlugins };
18
44
  //# sourceMappingURL=combine-plugins.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine-plugins.d.mts","names":[],"sources":["../../src/plugin-utils/combine-plugins.ts"],"mappings":";;;UAwBiB,qBAAA;EACf,IAAA;EACA,OAAA,EAAS,aAAA;AAAA;;;;;;;iBASK,cAAA,CACd,OAAA,EAAS,qBAAA,GACR,uBAAA;AAAA"}
1
+ {"version":3,"file":"combine-plugins.d.mts","names":[],"sources":["../../src/plugin-utils/combine-plugins.ts"],"mappings":";;;;;;;;;;AAkCA;;iBAAgB,oBAAA,CACd,aAAA,EAAe,uBAAA;;;;;;;;;UAoCA,qBAAA;EACf,IAAA;EACA,OAAA,EAAS,aAAA;AAAA;;;;;;;iBASK,cAAA,CAAe,OAAA,EAAS,qBAAA"}
@@ -1,22 +1,56 @@
1
+ import { merge } from "./merge.mjs";
2
+ import { isSetObject } from "@stryke/type-checks/is-set-object";
3
+ import { isSetString } from "@stryke/type-checks/is-set-string";
1
4
  import { createCombinePlugin } from "unplugin-combine";
2
5
 
3
6
  //#region src/plugin-utils/combine-plugins.ts
4
7
  /**
8
+ * Combines multiple plugins into a single plugin instance. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.
9
+ *
10
+ * @param pluginOptions - The plugin options to combine, which can be a single plugin instance or an object containing plugin instances for different build tools.
11
+ * @returns A single plugin instance that combines the functionality of the provided plugin options.
12
+ */
13
+ function combinePluginOptions(pluginOptions) {
14
+ return {
15
+ async rollup() {
16
+ return (await pluginOptions.rollup()).reduce((ret, plugin) => merge(ret, plugin), {});
17
+ },
18
+ async rolldown() {
19
+ return (await pluginOptions.rolldown()).reduce((ret, plugin) => merge(ret, plugin), {});
20
+ },
21
+ async vite() {
22
+ return (await pluginOptions.vite()).reduce((ret, plugin) => merge(ret, plugin), {});
23
+ },
24
+ async esbuild() {
25
+ return pluginOptions.esbuild();
26
+ },
27
+ async webpack() {
28
+ return pluginOptions.webpack();
29
+ },
30
+ async rspack() {
31
+ return pluginOptions.rspack();
32
+ },
33
+ get raw() {
34
+ return pluginOptions;
35
+ }
36
+ };
37
+ }
38
+ /**
5
39
  * Combines multiple plugins into a single plugin. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.
6
40
  *
7
41
  * @param options - The options for combining plugins, including the name and the plugins to combine.
8
42
  * @returns A single plugin that combines the functionality of the provided plugins.
9
43
  */
10
44
  function combinePlugins(options) {
11
- const { name = "powerlines-combined ", plugins } = options;
12
- return createCombinePlugin(() => {
45
+ const { plugins, name = `powerlines-${plugins.filter((p) => isSetObject(p) && "name" in p && isSetString(p.name)).map((p) => p.name.replace(/^powerlines[\-_:]?/, "").replace(/[\-_:]?powerlines$/, "")).join("-")}` } = options;
46
+ return combinePluginOptions(createCombinePlugin(() => {
13
47
  return {
14
48
  name,
15
49
  plugins
16
50
  };
17
- });
51
+ }));
18
52
  }
19
53
 
20
54
  //#endregion
21
- export { combinePlugins };
55
+ export { combinePluginOptions, combinePlugins };
22
56
  //# sourceMappingURL=combine-plugins.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine-plugins.mjs","names":[],"sources":["../../src/plugin-utils/combine-plugins.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 {\n createCombinePlugin,\n OptionsPlugin,\n UnpluginCombineInstance\n} from \"unplugin-combine\";\n\nexport interface CombinePluginsOptions {\n name?: string;\n plugins: OptionsPlugin[];\n}\n\n/**\n * Combines multiple plugins into a single plugin. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.\n *\n * @param options - The options for combining plugins, including the name and the plugins to combine.\n * @returns A single plugin that combines the functionality of the provided plugins.\n */\nexport function combinePlugins(\n options: CombinePluginsOptions\n): UnpluginCombineInstance<any> {\n const { name = \"powerlines-combined \", plugins } = options;\n\n return createCombinePlugin(() => {\n return {\n name,\n plugins\n };\n });\n}\n"],"mappings":";;;;;;;;;AAmCA,SAAgB,eACd,SAC8B;CAC9B,MAAM,EAAE,OAAO,wBAAwB,YAAY;AAEnD,QAAO,0BAA0B;AAC/B,SAAO;GACL;GACA;GACD;GACD"}
1
+ {"version":3,"file":"combine-plugins.mjs","names":[],"sources":["../../src/plugin-utils/combine-plugins.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 { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n createCombinePlugin,\n OptionsPlugin,\n UnpluginCombineInstance\n} from \"unplugin-combine\";\nimport { Plugin } from \"../types/plugin\";\nimport { merge } from \"./merge\";\n\n/**\n * Combines multiple plugins into a single plugin instance. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.\n *\n * @param pluginOptions - The plugin options to combine, which can be a single plugin instance or an object containing plugin instances for different build tools.\n * @returns A single plugin instance that combines the functionality of the provided plugin options.\n */\nexport function combinePluginOptions(\n pluginOptions: UnpluginCombineInstance<any>\n) {\n return {\n async rollup() {\n return (await pluginOptions.rollup()).reduce(\n (ret, plugin) => merge(ret, plugin) as Plugin<any>,\n {} as Plugin<any>\n );\n },\n async rolldown() {\n return (await pluginOptions.rolldown()).reduce(\n (ret, plugin) => merge(ret, plugin) as Plugin<any>,\n {} as Plugin<any>\n );\n },\n async vite() {\n return (await pluginOptions.vite()).reduce(\n (ret, plugin) => merge(ret, plugin) as Plugin<any>,\n {} as Plugin<any>\n );\n },\n async esbuild() {\n return pluginOptions.esbuild();\n },\n async webpack() {\n return pluginOptions.webpack();\n },\n async rspack() {\n return pluginOptions.rspack();\n },\n get raw() {\n return pluginOptions;\n }\n };\n}\n\nexport interface CombinePluginsOptions {\n name?: string;\n plugins: OptionsPlugin[];\n}\n\n/**\n * Combines multiple plugins into a single plugin. This is useful for creating meta-plugins that encapsulate the functionality of multiple plugins, allowing users to easily include a set of related plugins with a single import.\n *\n * @param options - The options for combining plugins, including the name and the plugins to combine.\n * @returns A single plugin that combines the functionality of the provided plugins.\n */\nexport function combinePlugins(options: CombinePluginsOptions) {\n const {\n plugins,\n name = `powerlines-${plugins\n .filter(p => isSetObject(p) && \"name\" in p && isSetString(p.name))\n .map(p =>\n (p as { name: string }).name\n .replace(/^powerlines[\\-_:]?/, \"\")\n .replace(/[\\-_:]?powerlines$/, \"\")\n )\n .join(\"-\")}`\n } = options;\n\n return combinePluginOptions(\n createCombinePlugin(() => {\n return {\n name,\n plugins\n };\n })\n );\n}\n"],"mappings":";;;;;;;;;;;;AAkCA,SAAgB,qBACd,eACA;AACA,QAAO;EACL,MAAM,SAAS;AACb,WAAQ,MAAM,cAAc,QAAQ,EAAE,QACnC,KAAK,WAAW,MAAM,KAAK,OAAO,EACnC,EAAE,CACH;;EAEH,MAAM,WAAW;AACf,WAAQ,MAAM,cAAc,UAAU,EAAE,QACrC,KAAK,WAAW,MAAM,KAAK,OAAO,EACnC,EAAE,CACH;;EAEH,MAAM,OAAO;AACX,WAAQ,MAAM,cAAc,MAAM,EAAE,QACjC,KAAK,WAAW,MAAM,KAAK,OAAO,EACnC,EAAE,CACH;;EAEH,MAAM,UAAU;AACd,UAAO,cAAc,SAAS;;EAEhC,MAAM,UAAU;AACd,UAAO,cAAc,SAAS;;EAEhC,MAAM,SAAS;AACb,UAAO,cAAc,QAAQ;;EAE/B,IAAI,MAAM;AACR,UAAO;;EAEV;;;;;;;;AAcH,SAAgB,eAAe,SAAgC;CAC7D,MAAM,EACJ,SACA,OAAO,cAAc,QAClB,QAAO,MAAK,YAAY,EAAE,IAAI,UAAU,KAAK,YAAY,EAAE,KAAK,CAAC,CACjE,KAAI,MACF,EAAuB,KACrB,QAAQ,sBAAsB,GAAG,CACjC,QAAQ,sBAAsB,GAAG,CACrC,CACA,KAAK,IAAI,OACV;AAEJ,QAAO,qBACL,0BAA0B;AACxB,SAAO;GACL;GACA;GACD;GACD,CACH"}
@@ -2,16 +2,17 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_plugin_utils_paths = require('./paths.cjs');
3
3
  const require_plugin_utils_format_package_json = require('./format-package-json.cjs');
4
4
  const require_plugin_utils_build_helpers = require('./build-helpers.cjs');
5
- const require_plugin_utils_combine_plugins = require('./combine-plugins.cjs');
6
- const require_plugin_utils_context_helpers = require('./context-helpers.cjs');
7
5
  const require_plugin_utils_helpers = require('./helpers.cjs');
8
6
  const require_plugin_utils_merge = require('./merge.cjs');
7
+ const require_plugin_utils_combine_plugins = require('./combine-plugins.cjs');
8
+ const require_plugin_utils_context_helpers = require('./context-helpers.cjs');
9
9
  const require_plugin_utils_extend = require('./extend.cjs');
10
10
  const require_plugin_utils_get_config_path = require('./get-config-path.cjs');
11
11
  const require_plugin_utils_modules = require('./modules.cjs');
12
12
 
13
13
  exports.addPluginHook = require_plugin_utils_helpers.addPluginHook;
14
14
  exports.checkDedupe = require_plugin_utils_helpers.checkDedupe;
15
+ exports.combinePluginOptions = require_plugin_utils_combine_plugins.combinePluginOptions;
15
16
  exports.combinePlugins = require_plugin_utils_combine_plugins.combinePlugins;
16
17
  exports.extend = require_plugin_utils_extend.extend;
17
18
  exports.extractPluginHook = require_plugin_utils_helpers.extractPluginHook;
@@ -1,5 +1,5 @@
1
1
  import { GetDependencyConfigResult, __ΩGetDependencyConfigResult, getDependencyConfig } from "./build-helpers.cjs";
2
- import { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePlugins } from "./combine-plugins.cjs";
2
+ import { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePluginOptions, combinePlugins } from "./combine-plugins.cjs";
3
3
  import { getOrganizationName, getWorkspaceName } from "./context-helpers.cjs";
4
4
  import { extend } from "./extend.cjs";
5
5
  import { formatPackageJson } from "./format-package-json.cjs";
@@ -8,4 +8,4 @@ import { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook,
8
8
  import { MergeResult, __ΩMergeResult, merge, mergeConfig } from "./merge.cjs";
9
9
  import { isBuiltinModule } from "./modules.cjs";
10
10
  import { replacePathTokens } from "./paths.cjs";
11
- export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, checkDedupe, combinePlugins, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, merge, mergeConfig, replacePathTokens };
11
+ export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, checkDedupe, combinePluginOptions, combinePlugins, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, merge, mergeConfig, replacePathTokens };
@@ -1,5 +1,5 @@
1
1
  import { GetDependencyConfigResult, __ΩGetDependencyConfigResult, getDependencyConfig } from "./build-helpers.mjs";
2
- import { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePlugins } from "./combine-plugins.mjs";
2
+ import { CombinePluginsOptions, __ΩCombinePluginsOptions, combinePluginOptions, combinePlugins } from "./combine-plugins.mjs";
3
3
  import { getOrganizationName, getWorkspaceName } from "./context-helpers.mjs";
4
4
  import { extend } from "./extend.mjs";
5
5
  import { formatPackageJson } from "./format-package-json.mjs";
@@ -8,4 +8,4 @@ import { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook,
8
8
  import { MergeResult, __ΩMergeResult, merge, mergeConfig } from "./merge.mjs";
9
9
  import { isBuiltinModule } from "./modules.mjs";
10
10
  import { replacePathTokens } from "./paths.mjs";
11
- export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, checkDedupe, combinePlugins, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, merge, mergeConfig, replacePathTokens };
11
+ export { CombinePluginsOptions, GetDependencyConfigResult, GetHookHandlerReturnType, MergeResult, __ΩCombinePluginsOptions, __ΩGetDependencyConfigResult, __ΩGetHookHandlerReturnType, __ΩMergeResult, addPluginHook, checkDedupe, combinePluginOptions, combinePlugins, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, merge, mergeConfig, replacePathTokens };
@@ -1,12 +1,12 @@
1
1
  import { replacePathTokens } from "./paths.mjs";
2
2
  import { formatPackageJson } from "./format-package-json.mjs";
3
3
  import { getDependencyConfig } from "./build-helpers.mjs";
4
- import { combinePlugins } from "./combine-plugins.mjs";
5
- import { getOrganizationName, getWorkspaceName } from "./context-helpers.mjs";
6
4
  import { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from "./helpers.mjs";
7
5
  import { merge, mergeConfig } from "./merge.mjs";
6
+ import { combinePluginOptions, combinePlugins } from "./combine-plugins.mjs";
7
+ import { getOrganizationName, getWorkspaceName } from "./context-helpers.mjs";
8
8
  import { extend } from "./extend.mjs";
9
9
  import { getConfigPath } from "./get-config-path.mjs";
10
10
  import { isBuiltinModule } from "./modules.mjs";
11
11
 
12
- export { addPluginHook, checkDedupe, combinePlugins, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, merge, mergeConfig, replacePathTokens };
12
+ export { addPluginHook, checkDedupe, combinePluginOptions, combinePlugins, extend, extractPluginHook, findInvalidPluginConfig, formatPackageJson, getConfigPath, getDependencyConfig, getHookHandler, getOrganizationName, getWorkspaceName, isBuiltinModule, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey, merge, mergeConfig, replacePathTokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
6
6
  "homepage": "https://stormsoftware.com",
@@ -520,11 +520,11 @@
520
520
  "@storm-software/testing-tools": "^1.119.103",
521
521
  "@stryke/types": "^0.10.52",
522
522
  "@types/diff-match-patch": "^1.0.36",
523
- "@types/node": "^25.4.0",
523
+ "@types/node": "^25.5.0",
524
524
  "@types/semver": "^7.7.1",
525
525
  "tsdown": "^0.21.2",
526
526
  "typescript": "^5.9.3"
527
527
  },
528
528
  "publishConfig": { "access": "public" },
529
- "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
529
+ "gitHead": "74a26c533ea4d67ba1b3e297256309c2e23f6e62"
530
530
  }