@powerlines/plugin-unbuild 0.5.665 → 0.5.667

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.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_helpers_resolve_options = require('./helpers/resolve-options.cjs');
3
3
  require('./helpers/index.cjs');
4
4
  let _storm_software_unbuild = require("@storm-software/unbuild");
@@ -31,7 +31,6 @@ const plugin = (options = {}) => {
31
31
 
32
32
  //#endregion
33
33
  exports.DEFAULT_UNBUILD_CONFIG = require_helpers_resolve_options.DEFAULT_UNBUILD_CONFIG;
34
- exports.default = plugin;
35
34
  exports.plugin = plugin;
36
35
  exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
37
36
  exports.unbuildLoader = require_helpers_resolve_options.unbuildLoader;
package/dist/index.d.cts CHANGED
@@ -15,5 +15,5 @@ declare module "powerlines" {
15
15
  */
16
16
  declare const plugin: <TContext extends UnbuildPluginContext = UnbuildPluginContext>(options?: UnbuildPluginOptions) => Plugin<TContext>;
17
17
  //#endregion
18
- export { DEFAULT_UNBUILD_CONFIG, type UnbuildOptions, type UnbuildPluginContext, type UnbuildPluginOptions, type UnbuildPluginResolvedConfig, type UnbuildPluginUserConfig, plugin as default, plugin, resolveOptions, unbuildLoader };
18
+ export { DEFAULT_UNBUILD_CONFIG, type UnbuildOptions, type UnbuildPluginContext, type UnbuildPluginOptions, type UnbuildPluginResolvedConfig, type UnbuildPluginUserConfig, plugin, resolveOptions, unbuildLoader };
19
19
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -15,5 +15,5 @@ declare module "powerlines" {
15
15
  */
16
16
  declare const plugin: <TContext extends UnbuildPluginContext = UnbuildPluginContext>(options?: UnbuildPluginOptions) => Plugin<TContext>;
17
17
  //#endregion
18
- export { DEFAULT_UNBUILD_CONFIG, type UnbuildOptions, type UnbuildPluginContext, type UnbuildPluginOptions, type UnbuildPluginResolvedConfig, type UnbuildPluginUserConfig, plugin as default, plugin, resolveOptions, unbuildLoader };
18
+ export { DEFAULT_UNBUILD_CONFIG, type UnbuildOptions, type UnbuildPluginContext, type UnbuildPluginOptions, type UnbuildPluginResolvedConfig, type UnbuildPluginUserConfig, plugin, resolveOptions, unbuildLoader };
19
19
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -29,5 +29,5 @@ const plugin = (options = {}) => {
29
29
  };
30
30
 
31
31
  //#endregion
32
- export { DEFAULT_UNBUILD_CONFIG, plugin as default, plugin, resolveOptions, unbuildLoader };
32
+ export { DEFAULT_UNBUILD_CONFIG, plugin, resolveOptions, unbuildLoader };
33
33
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { build } from \"@storm-software/unbuild\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport type {\n UnbuildPluginContext,\n UnbuildPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n unbuild?: UnbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to build projects using Unbuild.\n */\nexport const plugin = <\n TContext extends UnbuildPluginContext = UnbuildPluginContext\n>(\n options: UnbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"unbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n unbuild: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Unbuild build process...\");\n\n const options = resolveOptions(this);\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Unbuild configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;AAuCA,MAAa,UAGX,UAAgC,CAAC,MACZ;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,KAAK,EAChB;IACA,SAAS,EACP,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,mCAAmC;GAE9C,MAAM,UAAU,eAAe,IAAI;GAEnC,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,qCAAqC,aAAa,OAAO;GACpE,CAAC;GAED,MAAM,MAAM,OAAO;EACrB;CACF;AACF"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { build } from \"@storm-software/unbuild\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport type {\n UnbuildPluginContext,\n UnbuildPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n unbuild?: UnbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to build projects using Unbuild.\n */\nexport const plugin = <\n TContext extends UnbuildPluginContext = UnbuildPluginContext\n>(\n options: UnbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"unbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n unbuild: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Unbuild build process...\");\n\n const options = resolveOptions(this);\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Unbuild configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n }\n };\n};\n\n"],"mappings":";;;;;;;;;AAuCA,MAAa,UAGX,UAAgC,CAAC,MACZ;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,KAAK,EAChB;IACA,SAAS,EACP,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,mCAAmC;GAE9C,MAAM,UAAU,eAAe,IAAI;GAEnC,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,qCAAqC,aAAa,OAAO;GACpE,CAAC;GAED,MAAM,MAAM,OAAO;EACrB;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-unbuild",
3
- "version": "0.5.665",
3
+ "version": "0.5.667",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to build projects using Unbuild.",
6
6
  "keywords": ["unbuild", "powerlines", "storm-software", "powerlines-plugin"],
@@ -78,14 +78,14 @@
78
78
  "typings": "dist/index.d.mts",
79
79
  "files": ["dist"],
80
80
  "dependencies": {
81
- "@powerlines/core": "^0.48.128",
82
- "@powerlines/unplugin": "^0.0.176",
81
+ "@powerlines/core": "^0.48.130",
82
+ "@powerlines/unplugin": "^0.0.178",
83
83
  "@stryke/helpers": "^0.10.48",
84
84
  "@stryke/path": "^0.29.35",
85
85
  "@stryke/type-checks": "^0.6.41",
86
86
  "defu": "^6.1.7",
87
87
  "esbuild": "^0.28.2",
88
- "powerlines": "^0.47.209",
88
+ "powerlines": "^0.47.211",
89
89
  "unplugin": "^3.3.0"
90
90
  },
91
91
  "devDependencies": {
@@ -95,5 +95,5 @@
95
95
  "peerDependencies": { "@storm-software/unbuild": ">=0.57.0" },
96
96
  "peerDependenciesMeta": { "@storm-software/unbuild": { "optional": false } },
97
97
  "publishConfig": { "access": "public" },
98
- "gitHead": "88974b224a5cdb97dbd377373c9ed7f8a8780324"
98
+ "gitHead": "b009e583e12f04c70454ada388ceaae84d7ae6db"
99
99
  }