@powerlines/plugin-rolldown 0.7.666 → 0.7.668

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
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -71,5 +71,4 @@ const plugin = (options = {}) => {
71
71
  };
72
72
 
73
73
  //#endregion
74
- exports.default = plugin;
75
74
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends RolldownPluginContext = RolldownPluginContext>(options?: RolldownPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, plugin as default, plugin };
16
+ export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, plugin };
17
17
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends RolldownPluginContext = RolldownPluginContext>(options?: RolldownPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, plugin as default, plugin };
16
+ export { RolldownOptions, RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, plugin };
17
17
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -42,5 +42,5 @@ const plugin = (options = {}) => {
42
42
  };
43
43
 
44
44
  //#endregion
45
- export { plugin as default, plugin };
45
+ export { plugin };
46
46
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["build"],"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 { createUnplugin } from \"@powerlines/core\";\nimport { resolveOptions } from \"@powerlines/unplugin/rolldown\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { rolldown as build, InputOptions } from \"rolldown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport type {\n RolldownPluginContext,\n RolldownPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n rolldown?: RolldownPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RolldownPluginContext = RolldownPluginContext\n>(\n options: RolldownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rolldown\",\n config() {\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n rolldown: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Rolldown build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.rolldown, {\n ...resolved,\n config: false,\n plugins: [\n createRolldownPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"rolldown\"\n })\n )()\n ]\n }) as InputOptions;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rolldown configuration: \\n${formatConfig(options)}`\n });\n\n const result = await build(options);\n\n await Promise.all(\n toArray(this.config.output.format).map(async format =>\n result.write({\n format\n })\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA0CA,MAAa,UAGX,UAAiC,CAAC,MACb;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,UAAU,EACR,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,oCAAoC;GAE/C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,UAAU;IACzC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,qBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,CAAC,CAAC,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,sCAAsC,aAAa,OAAO;GACrE,CAAC;GAED,MAAM,SAAS,MAAMA,SAAM,OAAO;GAElC,MAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,MAAM,CAAC,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,OACF,CAAC,CACH,CACF;EACF;CACF;AACF"}
1
+ {"version":3,"file":"index.mjs","names":["build"],"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 { createUnplugin } from \"@powerlines/core\";\nimport { resolveOptions } from \"@powerlines/unplugin/rolldown\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { rolldown as build, InputOptions } from \"rolldown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport type {\n RolldownPluginContext,\n RolldownPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n rolldown?: RolldownPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RolldownPluginContext = RolldownPluginContext\n>(\n options: RolldownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rolldown\",\n config() {\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n rolldown: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Rolldown build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.rolldown, {\n ...resolved,\n config: false,\n plugins: [\n createRolldownPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"rolldown\"\n })\n )()\n ]\n }) as InputOptions;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rolldown configuration: \\n${formatConfig(options)}`\n });\n\n const result = await build(options);\n\n await Promise.all(\n toArray(this.config.output.format).map(async format =>\n result.write({\n format\n })\n )\n );\n }\n };\n};\n\n"],"mappings":";;;;;;;;;;;;;AA0CA,MAAa,UAGX,UAAiC,CAAC,MACb;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,UAAU,EACR,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,oCAAoC;GAE/C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,UAAU;IACzC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,qBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,CAAC,CAAC,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,sCAAsC,aAAa,OAAO;GACrE,CAAC;GAED,MAAM,SAAS,MAAMA,SAAM,OAAO;GAElC,MAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,MAAM,CAAC,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,OACF,CAAC,CACH,CACF;EACF;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rolldown",
3
- "version": "0.7.666",
3
+ "version": "0.7.668",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["rolldown", "powerlines", "storm-software", "powerlines-plugin"],
@@ -67,8 +67,8 @@
67
67
  "types": "./dist/index.d.cts",
68
68
  "files": ["dist"],
69
69
  "dependencies": {
70
- "@powerlines/core": "^0.48.128",
71
- "@powerlines/unplugin": "^0.0.176",
70
+ "@powerlines/core": "^0.48.130",
71
+ "@powerlines/unplugin": "^0.0.178",
72
72
  "@stryke/convert": "^0.7.39",
73
73
  "@stryke/fs": "^0.33.110",
74
74
  "@stryke/helpers": "^0.10.48",
@@ -78,12 +78,12 @@
78
78
  "defu": "^6.1.7",
79
79
  "glob": "^13.0.6",
80
80
  "jiti": "^2.7.0",
81
- "powerlines": "^0.47.209",
81
+ "powerlines": "^0.47.211",
82
82
  "unplugin": "^3.3.0"
83
83
  },
84
84
  "devDependencies": { "@types/node": "^25.9.5", "rolldown": "^1.2.3" },
85
85
  "peerDependencies": { "rolldown": ">=1.0.1 <2.0.0" },
86
86
  "peerDependenciesMeta": { "rolldown": { "optional": false } },
87
87
  "publishConfig": { "access": "public" },
88
- "gitHead": "88974b224a5cdb97dbd377373c9ed7f8a8780324"
88
+ "gitHead": "b009e583e12f04c70454ada388ceaae84d7ae6db"
89
89
  }