@powerlines/plugin-rollup 0.7.663 → 0.7.665
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 +1 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.
|
|
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 RollupPluginContext = RollupPluginContext>(options?: RollupPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, plugin
|
|
16
|
+
export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, 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 RollupPluginContext = RollupPluginContext>(options?: RollupPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, plugin
|
|
16
|
+
export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
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 { 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\
|
|
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\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,CAAC,CAAC,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,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-rollup",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.665",
|
|
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"],
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"typings": "dist/index.d.mts",
|
|
84
84
|
"files": ["dist"],
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@powerlines/core": "^0.48.
|
|
87
|
-
"@powerlines/unplugin": "^0.0.
|
|
86
|
+
"@powerlines/core": "^0.48.129",
|
|
87
|
+
"@powerlines/unplugin": "^0.0.177",
|
|
88
88
|
"@rollup/plugin-alias": "^6.0.0",
|
|
89
89
|
"@rollup/plugin-babel": "^7.1.0",
|
|
90
90
|
"@rollup/plugin-inject": "^5.0.5",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@stryke/types": "^0.12.36",
|
|
99
99
|
"defu": "^6.1.7",
|
|
100
100
|
"jiti": "^2.7.0",
|
|
101
|
-
"powerlines": "^0.47.
|
|
101
|
+
"powerlines": "^0.47.210",
|
|
102
102
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
103
103
|
"unplugin": "^3.3.0"
|
|
104
104
|
},
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"peerDependencies": { "rollup": ">=4.46.4" },
|
|
107
107
|
"peerDependenciesMeta": { "rollup": { "optional": false } },
|
|
108
108
|
"publishConfig": { "access": "public" },
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "4ee69b33975e2fa912d2c73700dc7e949f25b2d4"
|
|
110
110
|
}
|