@powerlines/plugin-rollup 0.7.443 → 0.7.444

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.
@@ -8,7 +8,10 @@ function createRollupPlugin(context) {
8
8
  return (0, unplugin.createEsbuildPlugin)((0, _powerlines_core_lib_unplugin.createUnplugin)(context, {
9
9
  silenceHookLogging: true,
10
10
  name: "rollup"
11
- }))({});
11
+ }))({
12
+ ...context.options,
13
+ ...context.initialConfig
14
+ });
12
15
  }
13
16
 
14
17
  //#endregion
@@ -6,7 +6,10 @@ function createRollupPlugin(context) {
6
6
  return createEsbuildPlugin(createUnplugin(context, {
7
7
  silenceHookLogging: true,
8
8
  name: "rollup"
9
- }))({});
9
+ }))({
10
+ ...context.options,
11
+ ...context.initialConfig
12
+ });
10
13
  }
11
14
 
12
15
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"unplugin.mjs","names":[],"sources":["../../src/helpers/unplugin.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/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { RollupPluginContext } from \"../types/plugin\";\n\nexport function createRollupPlugin(context: RollupPluginContext) {\n return createEsbuildPlugin(\n createUnplugin(context, { silenceHookLogging: true, name: \"rollup\" })\n )({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,mBAAmB,SAA8B;AAC/D,QAAO,oBACL,eAAe,SAAS;EAAE,oBAAoB;EAAM,MAAM;EAAU,CAAC,CACtE,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"unplugin.mjs","names":[],"sources":["../../src/helpers/unplugin.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/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { RollupPluginContext } from \"../types/plugin\";\n\nexport function createRollupPlugin(context: RollupPluginContext) {\n return createEsbuildPlugin(\n createUnplugin(context, { silenceHookLogging: true, name: \"rollup\" })\n )({ ...context.options, ...context.initialConfig });\n}\n"],"mappings":";;;;AAsBA,SAAgB,mBAAmB,SAA8B;AAC/D,QAAO,oBACL,eAAe,SAAS;EAAE,oBAAoB;EAAM,MAAM;EAAU,CAAC,CACtE,CAAC;EAAE,GAAG,QAAQ;EAAS,GAAG,QAAQ;EAAe,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { dtsBundlePlugin, resolveOptions } from "./helpers/resolve-options.cjs";
2
2
  import { RollupOptions } from "./types/build.cjs";
3
- import { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./types/plugin.cjs";
3
+ import { RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./types/plugin.cjs";
4
4
  import { createRollupPlugin } from "./helpers/unplugin.cjs";
5
5
  import { Plugin } from "@powerlines/core";
6
6
 
@@ -15,5 +15,5 @@ declare module "@powerlines/core" {
15
15
  */
16
16
  declare const plugin: <TContext extends RollupPluginContext = RollupPluginContext>(options?: RollupPluginOptions) => Plugin<TContext>;
17
17
  //#endregion
18
- export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, createRollupPlugin, plugin as default, plugin, dtsBundlePlugin, resolveOptions };
18
+ export { RollupOptions, RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, createRollupPlugin, plugin as default, plugin, dtsBundlePlugin, resolveOptions };
19
19
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { dtsBundlePlugin, resolveOptions } from "./helpers/resolve-options.mjs";
2
2
  import { RollupOptions } from "./types/build.mjs";
3
- import { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./types/plugin.mjs";
3
+ import { RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./types/plugin.mjs";
4
4
  import { createRollupPlugin } from "./helpers/unplugin.mjs";
5
5
  import { Plugin } from "@powerlines/core";
6
6
 
@@ -15,5 +15,5 @@ declare module "@powerlines/core" {
15
15
  */
16
16
  declare const plugin: <TContext extends RollupPluginContext = RollupPluginContext>(options?: RollupPluginOptions) => Plugin<TContext>;
17
17
  //#endregion
18
- export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, createRollupPlugin, plugin as default, plugin, dtsBundlePlugin, resolveOptions };
18
+ export { RollupOptions, RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig, createRollupPlugin, plugin as default, plugin, dtsBundlePlugin, resolveOptions };
19
19
  //# sourceMappingURL=index.d.mts.map
@@ -1,3 +1,3 @@
1
1
  import { RollupOptions } from "./build.cjs";
2
- import { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./plugin.cjs";
3
- export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
2
+ import { RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./plugin.cjs";
3
+ export { RollupOptions, RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
@@ -1,3 +1,3 @@
1
1
  import { RollupOptions } from "./build.mjs";
2
- import { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./plugin.mjs";
3
- export { RollupOptions, RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
2
+ import { RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig } from "./plugin.mjs";
3
+ export { RollupOptions, RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
@@ -1,15 +1,16 @@
1
1
  import { RollupOptions } from "./build.cjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { InitialPluginConfig, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type RollupPluginOptions = Partial<RollupOptions>;
6
6
  interface RollupPluginUserConfig extends UserConfig {
7
7
  rollup: RollupPluginOptions;
8
8
  }
9
+ type RollupPluginInitialConfig = InitialPluginConfig<RollupPluginUserConfig>;
9
10
  interface RollupPluginResolvedConfig extends ResolvedConfig {
10
11
  rollup: RollupOptions;
11
12
  }
12
13
  type RollupPluginContext<TResolvedConfig extends RollupPluginResolvedConfig = RollupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
13
14
  //#endregion
14
- export { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
15
+ export { RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
15
16
  //# sourceMappingURL=plugin.d.cts.map
@@ -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":";;;;KA0BY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,yBAAA,GACV,mBAAA,CAAoB,sBAAA;AAAA,UAEL,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA"}
@@ -1,15 +1,16 @@
1
1
  import { RollupOptions } from "./build.mjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { InitialPluginConfig, PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type RollupPluginOptions = Partial<RollupOptions>;
6
6
  interface RollupPluginUserConfig extends UserConfig {
7
7
  rollup: RollupPluginOptions;
8
8
  }
9
+ type RollupPluginInitialConfig = InitialPluginConfig<RollupPluginUserConfig>;
9
10
  interface RollupPluginResolvedConfig extends ResolvedConfig {
10
11
  rollup: RollupOptions;
11
12
  }
12
13
  type RollupPluginContext<TResolvedConfig extends RollupPluginResolvedConfig = RollupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
13
14
  //#endregion
14
- export { RollupPluginContext, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
15
+ export { RollupPluginContext, RollupPluginInitialConfig, RollupPluginOptions, RollupPluginResolvedConfig, RollupPluginUserConfig };
15
16
  //# sourceMappingURL=plugin.d.mts.map
@@ -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":";;;;KA0BY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,yBAAA,GACV,mBAAA,CAAoB,sBAAA;AAAA,UAEL,0BAAA,SAAmC,cAAA;EAClD,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.443",
3
+ "version": "0.7.444",
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.44.12",
77
- "@powerlines/plugin-babel": "^0.12.441",
76
+ "@powerlines/core": "^0.45.0",
77
+ "@powerlines/plugin-babel": "^0.12.442",
78
78
  "@rollup/plugin-alias": "^6.0.0",
79
79
  "@rollup/plugin-babel": "^6.1.0",
80
80
  "@rollup/plugin-inject": "^5.0.5",
@@ -95,5 +95,5 @@
95
95
  "peerDependencies": { "rollup": ">=4.46.4" },
96
96
  "peerDependenciesMeta": { "rollup": { "optional": false } },
97
97
  "publishConfig": { "access": "public" },
98
- "gitHead": "93fe3bf5054baa0bb1841c64fe082da56631a010"
98
+ "gitHead": "8a559d0939f118a77d189638644589ce33e56a7e"
99
99
  }