@powerlines/plugin-rollup 0.7.495 → 0.7.497

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 +1 @@
1
- {"version":3,"file":"build-B0B1GOsk.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,eAAA,GAAgB,IAAA,CAC1B,aAAA"}
1
+ {"version":3,"file":"build-B0B1GOsk.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,eAAA,GAAgB,IAAI,CAC9B,aAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-BcwN3DuZ.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,eAAA,GAAgB,IAAA,CAC1B,aAAA"}
1
+ {"version":3,"file":"build-BcwN3DuZ.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,eAAA,GAAgB,IAAI,CAC9B,aAAA"}
package/dist/index.cjs CHANGED
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  //#endregion
29
29
  require('./types/index.cjs');
30
30
  let _powerlines_core = require("@powerlines/core");
31
- let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
32
31
  let _powerlines_unplugin_rollup = require("@powerlines/unplugin/rollup");
33
32
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
34
33
  let defu = require("defu");
35
34
  defu = __toESM(defu, 1);
35
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
36
36
  let rollup = require("rollup");
37
37
  let unplugin = require("unplugin");
38
38
 
@@ -62,7 +62,7 @@ const plugin = (options = {}) => {
62
62
  });
63
63
  this.debug({
64
64
  meta: { category: "config" },
65
- message: `Resolved Rollup configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
65
+ message: `Resolved Rollup configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
66
66
  });
67
67
  const result = await (0, rollup.rollup)(options);
68
68
  await Promise.all((0, _stryke_convert_to_array.toArray)(this.config.output.format).map(async (format) => result.write({ format })));
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as RollupOptions } from "./build-BcwN3DuZ.cjs";
2
2
  import { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./types/plugin.cjs";
3
- import { Plugin } from "@powerlines/core";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
- declare module "@powerlines/core" {
6
+ declare module "powerlines" {
7
7
  interface Config {
8
8
  rollup?: RollupPluginOptions;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA+BY,MAAA;IACR,MAAA,GAAS,mBAAmB;EAAA;AAAA;;;;cAOnB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as RollupOptions } from "./build-B0B1GOsk.mjs";
2
2
  import { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./types/plugin.mjs";
3
- import { Plugin } from "@powerlines/core";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
- declare module "@powerlines/core" {
6
+ declare module "powerlines" {
7
7
  interface Config {
8
8
  rollup?: RollupPluginOptions;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA+BY,MAAA;IACR,MAAA,GAAS,mBAAmB;EAAA;AAAA;;;;cAOnB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./types/index.mjs";
2
2
  import { createUnplugin } from "@powerlines/core";
3
- import { formatConfig } from "@powerlines/core/plugin-utils";
4
3
  import { resolveOptions } from "@powerlines/unplugin/rollup";
5
4
  import { toArray } from "@stryke/convert/to-array";
6
5
  import defu from "defu";
6
+ import { formatConfig } from "powerlines/plugin-utils";
7
7
  import { rollup } from "rollup";
8
8
  import { createRollupPlugin } from "unplugin";
9
9
 
@@ -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, Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { resolveOptions } from \"@powerlines/unplugin/rollup\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { rollup as build, RollupOptions } from \"rollup\";\nimport { createRollupPlugin } from \"unplugin\";\nimport { RollupPluginContext, RollupPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n rollup?: RollupPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RollupPluginContext = RollupPluginContext\n>(\n options: RollupPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rollup\",\n config() {\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n rollup: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Rollup build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.rollup, {\n ...resolved,\n config: false,\n plugins: [\n createRollupPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"rollup\"\n })\n )()\n ]\n }) as RollupOptions;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rollup 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":";;;;;;;;;;;;;AAsCA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,QAAQ,EACN,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;GAE9C,MAAM,WAAW,eAAe,KAAK;GACrC,MAAM,UAAU,KAAK,KAAK,OAAO,QAAQ;IACvC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,mBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;KACP,CAAC,CACH,EAAE,CACJ;IACF,CAAC;AAEF,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,oCAAoC,aAAa,QAAQ;IACnE,CAAC;GAEF,MAAM,SAAS,MAAMA,OAAM,QAAQ;AAEnC,SAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,OAAO,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,QACD,CAAC,CACH,CACF;;EAEJ"}
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/rollup\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { rollup as build, RollupOptions } from \"rollup\";\nimport { createRollupPlugin } from \"unplugin\";\nimport type { RollupPluginContext, RollupPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n rollup?: RollupPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends RollupPluginContext = RollupPluginContext\n>(\n options: RollupPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"rollup\",\n config() {\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n rollup: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Rollup build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.rollup, {\n ...resolved,\n config: false,\n plugins: [\n createRollupPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"rollup\"\n })\n )()\n ]\n }) as RollupOptions;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Rollup 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":";;;;;;;;;;;;;AAuCA,MAAa,UAGX,UAA+B,CAAC,MACX;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,QAAQ,EACN,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,kCAAkC;GAE7C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,QAAQ;IACvC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,mBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,oCAAoC,aAAa,OAAO;GACnE,CAAC;GAED,MAAM,SAAS,MAAMA,OAAM,OAAO;GAElC,MAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,MAAM,EAAE,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,OACF,CAAC,CACH,CACF;EACF;CACF;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { t as RollupOptions } from "../build-BcwN3DuZ.cjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type RollupPluginOptions = Partial<RollupOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAyBY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAGO,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAO,CAAC,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAU;EACxD,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAGO,0BAAA,SAAmC,cAAc;EAChE,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as RollupOptions } from "../build-B0B1GOsk.mjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type RollupPluginOptions = Partial<RollupOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAyBY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAGO,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAO,CAAC,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAU;EACxD,MAAA,EAAQ,mBAAA;AAAA;AAAA,UAGO,0BAAA,SAAmC,cAAc;EAChE,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rollup",
3
- "version": "0.7.495",
3
+ "version": "0.7.497",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["rollup", "powerlines", "storm-software", "powerlines-plugin"],
@@ -73,8 +73,8 @@
73
73
  "typings": "dist/index.d.mts",
74
74
  "files": ["dist"],
75
75
  "dependencies": {
76
- "@powerlines/core": "^0.15.18",
77
- "@powerlines/unplugin": "^0.0.33",
76
+ "@powerlines/core": "^0.15.20",
77
+ "@powerlines/unplugin": "^0.0.35",
78
78
  "@rollup/plugin-alias": "^6.0.0",
79
79
  "@rollup/plugin-babel": "^7.0.0",
80
80
  "@rollup/plugin-inject": "^5.0.5",
@@ -88,12 +88,13 @@
88
88
  "@stryke/types": "^0.12.4",
89
89
  "defu": "^6.1.7",
90
90
  "jiti": "^2.7.0",
91
+ "powerlines": "^0.47.42",
91
92
  "rollup-plugin-typescript2": "^0.36.0",
92
93
  "unplugin": "^3.0.0"
93
94
  },
94
- "devDependencies": { "@types/node": "^25.8.0", "rollup": "^4.60.4" },
95
+ "devDependencies": { "@types/node": "^25.9.0", "rollup": "^4.60.4" },
95
96
  "peerDependencies": { "rollup": ">=4.46.4" },
96
97
  "peerDependenciesMeta": { "rollup": { "optional": false } },
97
98
  "publishConfig": { "access": "public" },
98
- "gitHead": "c5c293e753d59ab690265988c77bd535680ac71b"
99
+ "gitHead": "2dbbdb2f6fde8f0f49208757c7c1b18deb96ff97"
99
100
  }