@powerlines/plugin-rollup 0.7.443 → 0.7.445
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/helpers/unplugin.cjs +4 -1
- package/dist/helpers/unplugin.mjs +4 -1
- package/dist/helpers/unplugin.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/plugin.d.cts +3 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +3 -2
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +4 -4
|
@@ -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
|
|
@@ -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
|
|
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
|
package/dist/types/index.d.cts
CHANGED
|
@@ -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 };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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 };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -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":";;;;
|
|
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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -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":";;;;
|
|
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.
|
|
3
|
+
"version": "0.7.445",
|
|
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.
|
|
77
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
76
|
+
"@powerlines/core": "^0.45.1",
|
|
77
|
+
"@powerlines/plugin-babel": "^0.12.443",
|
|
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": "
|
|
98
|
+
"gitHead": "4efe7574db32436446080cdc605fd2819e192457"
|
|
99
99
|
}
|