@powerlines/plugin-rolldown 0.7.496 → 0.7.498
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-BdEj7BmI.d.mts.map +1 -1
- package/dist/build-D6-cmdSo.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 +6 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-BdEj7BmI.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,iBAAA,GAAkB,
|
|
1
|
+
{"version":3,"file":"build-BdEj7BmI.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,iBAAA,GAAkB,IAAI,CAChC,eAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-D6-cmdSo.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,iBAAA,GAAkB,
|
|
1
|
+
{"version":3,"file":"build-D6-cmdSo.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,iBAAA,GAAkB,IAAI,CAChC,eAAA;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_rolldown = require("@powerlines/unplugin/rolldown");
|
|
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 rolldown = require("rolldown");
|
|
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 Rolldown configuration: \n${(0,
|
|
65
|
+
message: `Resolved Rolldown configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
|
|
66
66
|
});
|
|
67
67
|
const result = await (0, rolldown.rolldown)(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 { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-D6-cmdSo.cjs";
|
|
2
2
|
import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig } 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
|
rolldown?: RolldownPluginOptions;
|
|
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":";;;;;;YAkCY,MAAA;IACR,QAAA,GAAW,qBAAqB;EAAA;AAAA;;;;cAOvB,MAAA,oBACM,qBAAA,GAAwB,qBAAA,EAEzC,OAAA,GAAS,qBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩRolldownOptions, t as RolldownOptions } from "./build-BdEj7BmI.mjs";
|
|
2
2
|
import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, RolldownPluginUserConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig, __ΩRolldownPluginUserConfig } 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
|
rolldown?: RolldownPluginOptions;
|
|
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":";;;;;;YAkCY,MAAA;IACR,QAAA,GAAW,qBAAqB;EAAA;AAAA;;;;cAOvB,MAAA,oBACM,qBAAA,GAAwB,qBAAA,EAEzC,OAAA,GAAS,qBAAA,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/rolldown";
|
|
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 { rolldown } from "rolldown";
|
|
8
8
|
import { createRolldownPlugin } 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 } from \"@powerlines/core\";\nimport {
|
|
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,EAAE,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,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 RolldownOptions } from "../build-D6-cmdSo.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 RolldownPluginOptions = Partial<RolldownOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,qBAAA,GAAwB,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,qBAAA,GAAwB,OAAO,CAAC,eAAA;AAAA,UAE3B,wBAAA,SAAiC,UAAU;EAC1D,QAAA,EAAU,qBAAA;AAAA;AAAA,UAGK,4BAAA,SAAqC,cAAc;EAClE,QAAA,EAAU,eAAA;AAAA;AAAA,KAGA,qBAAA,yBACc,4BAAA,GACtB,4BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as RolldownOptions } from "../build-BdEj7BmI.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 RolldownPluginOptions = Partial<RolldownOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,qBAAA,GAAwB,
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,qBAAA,GAAwB,OAAO,CAAC,eAAA;AAAA,UAE3B,wBAAA,SAAiC,UAAU;EAC1D,QAAA,EAAU,qBAAA;AAAA;AAAA,UAGK,4BAAA,SAAqC,cAAc;EAClE,QAAA,EAAU,eAAA;AAAA;AAAA,KAGA,qBAAA,yBACc,4BAAA,GACtB,4BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rolldown",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.498",
|
|
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"],
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"main": "./dist/index.cjs",
|
|
71
71
|
"module": "./dist/index.mjs",
|
|
72
72
|
"types": "./dist/index.d.cts",
|
|
73
|
-
"files": ["dist
|
|
73
|
+
"files": ["dist"],
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@powerlines/core": "^0.15.
|
|
76
|
-
"@powerlines/unplugin": "^0.0.
|
|
75
|
+
"@powerlines/core": "^0.15.19",
|
|
76
|
+
"@powerlines/unplugin": "^0.0.34",
|
|
77
77
|
"@stryke/convert": "^0.7.7",
|
|
78
78
|
"@stryke/fs": "^0.33.76",
|
|
79
79
|
"@stryke/helpers": "^0.10.16",
|
|
@@ -83,11 +83,12 @@
|
|
|
83
83
|
"defu": "^6.1.7",
|
|
84
84
|
"glob": "^13.0.6",
|
|
85
85
|
"jiti": "^2.7.0",
|
|
86
|
+
"powerlines": "^0.47.41",
|
|
86
87
|
"unplugin": "^3.0.0"
|
|
87
88
|
},
|
|
88
89
|
"devDependencies": { "@types/node": "^25.8.0", "rolldown": "^1.0.1" },
|
|
89
90
|
"peerDependencies": { "rolldown": ">=1.0.0-rc.9 <2.0.0" },
|
|
90
91
|
"peerDependenciesMeta": { "rolldown": { "optional": false } },
|
|
91
92
|
"publishConfig": { "access": "public" },
|
|
92
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
93
94
|
}
|