@powerlines/plugin-rollup 0.7.494 → 0.7.496
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/build-B0B1GOsk.d.mts.map +1 -1
- package/dist/build-BcwN3DuZ.d.cts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-B0B1GOsk.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,eAAA,GAAgB,
|
|
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,
|
|
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,
|
|
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 "
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "powerlines" {
|
|
7
7
|
interface Config {
|
|
8
8
|
rollup?: RollupPluginOptions;
|
|
9
9
|
}
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;
|
|
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 "
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "powerlines" {
|
|
7
7
|
interface Config {
|
|
8
8
|
rollup?: RollupPluginOptions;
|
|
9
9
|
}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;
|
|
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
|
|
package/dist/index.mjs.map
CHANGED
|
@@ -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
|
|
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"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as RollupOptions } from "../build-BcwN3DuZ.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "
|
|
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":";;;;
|
|
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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as RollupOptions } from "../build-B0B1GOsk.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "
|
|
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":";;;;
|
|
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.
|
|
3
|
+
"version": "0.7.496",
|
|
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.
|
|
77
|
-
"@powerlines/unplugin": "^0.0.
|
|
76
|
+
"@powerlines/core": "^0.15.19",
|
|
77
|
+
"@powerlines/unplugin": "^0.0.34",
|
|
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,6 +88,7 @@
|
|
|
88
88
|
"@stryke/types": "^0.12.4",
|
|
89
89
|
"defu": "^6.1.7",
|
|
90
90
|
"jiti": "^2.7.0",
|
|
91
|
+
"powerlines": "^0.47.41",
|
|
91
92
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
92
93
|
"unplugin": "^3.0.0"
|
|
93
94
|
},
|
|
@@ -95,5 +96,5 @@
|
|
|
95
96
|
"peerDependencies": { "rollup": ">=4.46.4" },
|
|
96
97
|
"peerDependenciesMeta": { "rollup": { "optional": false } },
|
|
97
98
|
"publishConfig": { "access": "public" },
|
|
98
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
99
100
|
}
|