@powerlines/plugin-rollup 0.7.308 → 0.7.310
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-CZBW0WlF.d.cts +8 -0
- package/dist/build-CZBW0WlF.d.cts.map +1 -0
- package/dist/build-DJTI0ZMx.cjs +0 -0
- package/dist/build-DZybhECU.d.mts +8 -0
- package/dist/build-DZybhECU.d.mts.map +1 -0
- package/dist/build-XTM4L3VY.mjs +1 -0
- package/dist/helpers/index.cjs +6 -5
- package/dist/helpers/index.d.cts +5 -2
- package/dist/helpers/index.d.mts +5 -2
- package/dist/helpers/index.mjs +3 -2
- package/dist/helpers/resolve-options.cjs +3 -122
- package/dist/helpers/resolve-options.d.cts +2 -22
- package/dist/helpers/resolve-options.d.mts +2 -23
- package/dist/helpers/resolve-options.mjs +2 -115
- package/dist/helpers/unplugin.cjs +2 -11
- package/dist/helpers/unplugin.d.cts +4 -8
- package/dist/helpers/unplugin.d.mts +4 -8
- package/dist/helpers/unplugin.mjs +2 -11
- package/dist/helpers-C9XSjwSZ.mjs +1 -0
- package/dist/helpers-yB1XkvQI.cjs +0 -0
- package/dist/index-B_e8BwCm.d.cts +1 -0
- package/dist/index-CW2WHUXP.d.mts +1 -0
- package/dist/index-Cc7fCJU9.d.mts +1 -0
- package/dist/index-CiBIKhMu.d.cts +1 -0
- package/dist/index.cjs +11 -9
- package/dist/index.d.cts +7 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/plugin-D3B5E_Hg.mjs +1 -0
- package/dist/plugin-D5qyQPqC.cjs +0 -0
- package/dist/plugin-Diu2VjRD.d.mts +19 -0
- package/dist/plugin-Diu2VjRD.d.mts.map +1 -0
- package/dist/plugin-jKu50p7w.d.cts +19 -0
- package/dist/plugin-jKu50p7w.d.cts.map +1 -0
- package/dist/resolve-options-Aps_4r5P.mjs +116 -0
- package/dist/resolve-options-Aps_4r5P.mjs.map +1 -0
- package/dist/resolve-options-CDAAEyhT.d.cts +22 -0
- package/dist/resolve-options-CDAAEyhT.d.cts.map +1 -0
- package/dist/resolve-options-E_fWwC71.d.mts +22 -0
- package/dist/resolve-options-E_fWwC71.d.mts.map +1 -0
- package/dist/resolve-options-JUh7vwne.cjs +165 -0
- package/dist/types/build.cjs +1 -0
- package/dist/types/build.d.cts +2 -8
- package/dist/types/build.d.mts +2 -8
- package/dist/types/build.mjs +2 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.mjs +4 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +3 -20
- package/dist/types/plugin.d.mts +3 -21
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-D208vOSb.cjs +0 -0
- package/dist/types-Dv2cgIDx.mjs +1 -0
- package/dist/unplugin-BMtcWvP4.d.mts +8 -0
- package/dist/unplugin-BMtcWvP4.d.mts.map +1 -0
- package/dist/unplugin-ByRbaNtu.cjs +16 -0
- package/dist/unplugin-DrmiEjBF.mjs +11 -0
- package/dist/unplugin-DrmiEjBF.mjs.map +1 -0
- package/dist/unplugin-JxAcixPP.d.cts +8 -0
- package/dist/unplugin-JxAcixPP.d.cts.map +1 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
- package/dist/core/src/lib/logger.cjs +0 -41
- package/dist/core/src/lib/logger.mjs +0 -40
- package/dist/core/src/lib/logger.mjs.map +0 -1
- package/dist/core/src/lib/unplugin/helpers.cjs +0 -19
- package/dist/core/src/lib/unplugin/helpers.mjs +0 -19
- package/dist/core/src/lib/unplugin/helpers.mjs.map +0 -1
- package/dist/core/src/lib/unplugin/index.cjs +0 -3
- package/dist/core/src/lib/unplugin/index.mjs +0 -5
- package/dist/core/src/lib/unplugin/module-resolution.cjs +0 -66
- package/dist/core/src/lib/unplugin/module-resolution.mjs +0 -66
- package/dist/core/src/lib/unplugin/module-resolution.mjs.map +0 -1
- package/dist/core/src/lib/unplugin/plugin.cjs +0 -71
- package/dist/core/src/lib/unplugin/plugin.mjs +0 -71
- package/dist/core/src/lib/unplugin/plugin.mjs.map +0 -1
- package/dist/core/src/lib/utilities/source-file.cjs +0 -22
- package/dist/core/src/lib/utilities/source-file.mjs +0 -22
- package/dist/core/src/lib/utilities/source-file.mjs.map +0 -1
- package/dist/core/src/types/api.d.cts +0 -103
- package/dist/core/src/types/api.d.cts.map +0 -1
- package/dist/core/src/types/api.d.mts +0 -103
- package/dist/core/src/types/api.d.mts.map +0 -1
- package/dist/core/src/types/commands.d.cts +0 -9
- package/dist/core/src/types/commands.d.cts.map +0 -1
- package/dist/core/src/types/commands.d.mts +0 -10
- package/dist/core/src/types/commands.d.mts.map +0 -1
- package/dist/core/src/types/config.d.cts +0 -551
- package/dist/core/src/types/config.d.cts.map +0 -1
- package/dist/core/src/types/config.d.mts +0 -551
- package/dist/core/src/types/config.d.mts.map +0 -1
- package/dist/core/src/types/context.d.cts +0 -511
- package/dist/core/src/types/context.d.cts.map +0 -1
- package/dist/core/src/types/context.d.mts +0 -511
- package/dist/core/src/types/context.d.mts.map +0 -1
- package/dist/core/src/types/fs.d.cts +0 -487
- package/dist/core/src/types/fs.d.cts.map +0 -1
- package/dist/core/src/types/fs.d.mts +0 -487
- package/dist/core/src/types/fs.d.mts.map +0 -1
- package/dist/core/src/types/hooks.d.cts +0 -99
- package/dist/core/src/types/hooks.d.cts.map +0 -1
- package/dist/core/src/types/hooks.d.mts +0 -99
- package/dist/core/src/types/hooks.d.mts.map +0 -1
- package/dist/core/src/types/index.d.mts +0 -9
- package/dist/core/src/types/plugin.d.cts +0 -204
- package/dist/core/src/types/plugin.d.cts.map +0 -1
- package/dist/core/src/types/plugin.d.mts +0 -204
- package/dist/core/src/types/plugin.d.mts.map +0 -1
- package/dist/core/src/types/tsconfig.d.cts +0 -70
- package/dist/core/src/types/tsconfig.d.cts.map +0 -1
- package/dist/core/src/types/tsconfig.d.mts +0 -70
- package/dist/core/src/types/tsconfig.d.mts.map +0 -1
- package/dist/core/src/types/unplugin.cjs +0 -21
- package/dist/core/src/types/unplugin.d.cts +0 -24
- package/dist/core/src/types/unplugin.d.cts.map +0 -1
- package/dist/core/src/types/unplugin.d.mts +0 -25
- package/dist/core/src/types/unplugin.d.mts.map +0 -1
- package/dist/core/src/types/unplugin.mjs +0 -22
- package/dist/core/src/types/unplugin.mjs.map +0 -1
- package/dist/helpers/resolve-options.d.cts.map +0 -1
- package/dist/helpers/resolve-options.d.mts.map +0 -1
- package/dist/helpers/resolve-options.mjs.map +0 -1
- package/dist/helpers/unplugin.d.cts.map +0 -1
- package/dist/helpers/unplugin.d.mts.map +0 -1
- package/dist/helpers/unplugin.mjs.map +0 -1
- package/dist/types/build.d.cts.map +0 -1
- package/dist/types/build.d.mts.map +0 -1
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RollupOptions } from "rollup";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type RollupOptions$1 = Omit<RollupOptions, "entry" | "external" | "input" | "output" | "logLevel">;
|
|
5
|
+
declare type __ΩRollupOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __ΩRollupOptions as n, RollupOptions$1 as t };
|
|
8
|
+
//# sourceMappingURL=build-CZBW0WlF.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-CZBW0WlF.d.cts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,eAAA,GAAgB,KAC1B"}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RollupOptions } from "rollup";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type RollupOptions$1 = Omit<RollupOptions, "entry" | "external" | "input" | "output" | "logLevel">;
|
|
5
|
+
declare type __ΩRollupOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __ΩRollupOptions as n, RollupOptions$1 as t };
|
|
8
|
+
//# sourceMappingURL=build-DZybhECU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-DZybhECU.d.mts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,eAAA,GAAgB,KAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_resolve_options = require('../resolve-options-JUh7vwne.cjs');
|
|
2
|
+
const require_unplugin = require('../unplugin-ByRbaNtu.cjs');
|
|
3
|
+
require('../helpers-yB1XkvQI.cjs');
|
|
3
4
|
|
|
4
|
-
exports.createRollupPlugin =
|
|
5
|
-
exports.dtsBundlePlugin =
|
|
6
|
-
exports.resolveOptions =
|
|
5
|
+
exports.createRollupPlugin = require_unplugin.createRollupPlugin;
|
|
6
|
+
exports.dtsBundlePlugin = require_resolve_options.dtsBundlePlugin;
|
|
7
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "../resolve-options-CDAAEyhT.cjs";
|
|
2
|
+
import "../build-CZBW0WlF.cjs";
|
|
3
|
+
import "../plugin-jKu50p7w.cjs";
|
|
4
|
+
import { t as createRollupPlugin } from "../unplugin-JxAcixPP.cjs";
|
|
5
|
+
import "../index-CiBIKhMu.cjs";
|
|
3
6
|
export { createRollupPlugin, dtsBundlePlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "../resolve-options-E_fWwC71.mjs";
|
|
2
|
+
import "../build-DZybhECU.mjs";
|
|
3
|
+
import "../plugin-Diu2VjRD.mjs";
|
|
4
|
+
import { t as createRollupPlugin } from "../unplugin-BMtcWvP4.mjs";
|
|
5
|
+
import "../index-CW2WHUXP.mjs";
|
|
3
6
|
export { createRollupPlugin, dtsBundlePlugin, resolveOptions };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createRollupPlugin } from "
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "../resolve-options-Aps_4r5P.mjs";
|
|
2
|
+
import { t as createRollupPlugin } from "../unplugin-DrmiEjBF.mjs";
|
|
3
|
+
import "../helpers-C9XSjwSZ.mjs";
|
|
3
4
|
|
|
4
5
|
export { createRollupPlugin, dtsBundlePlugin, resolveOptions };
|
|
@@ -1,123 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
3
|
-
let defu = require("defu");
|
|
4
|
-
defu = require_rolldown_runtime.__toESM(defu);
|
|
5
|
-
let __rollup_plugin_alias = require("@rollup/plugin-alias");
|
|
6
|
-
__rollup_plugin_alias = require_rolldown_runtime.__toESM(__rollup_plugin_alias);
|
|
7
|
-
let __rollup_plugin_babel = require("@rollup/plugin-babel");
|
|
8
|
-
let __rollup_plugin_inject = require("@rollup/plugin-inject");
|
|
9
|
-
__rollup_plugin_inject = require_rolldown_runtime.__toESM(__rollup_plugin_inject);
|
|
10
|
-
let __rollup_plugin_node_resolve = require("@rollup/plugin-node-resolve");
|
|
11
|
-
__rollup_plugin_node_resolve = require_rolldown_runtime.__toESM(__rollup_plugin_node_resolve);
|
|
12
|
-
let __rollup_plugin_replace = require("@rollup/plugin-replace");
|
|
13
|
-
__rollup_plugin_replace = require_rolldown_runtime.__toESM(__rollup_plugin_replace);
|
|
14
|
-
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
15
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
16
|
-
let node_fs = require("node:fs");
|
|
17
|
-
let rollup_plugin_typescript2 = require("rollup-plugin-typescript2");
|
|
18
|
-
rollup_plugin_typescript2 = require_rolldown_runtime.__toESM(rollup_plugin_typescript2);
|
|
1
|
+
const require_resolve_options = require('../resolve-options-JUh7vwne.cjs');
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* A Rollup plugin to bundle TypeScript declaration files (.d.ts) alongside the JavaScript output files.
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* This plugin generates .d.ts files for each entry point in the bundle, ensuring that type definitions are available for consumers of the library.
|
|
26
|
-
*/
|
|
27
|
-
const dtsBundlePlugin = {
|
|
28
|
-
name: "powerlines:dts-bundle",
|
|
29
|
-
async generateBundle(_opts, bundle) {
|
|
30
|
-
for (const [, file] of Object.entries(bundle)) {
|
|
31
|
-
if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) continue;
|
|
32
|
-
const dtsFileName = file.fileName.replace(/(?:\.cjs|\.mjs|\.esm\.js|\.cjs\.js|\.mjs\.js|\.js)$/, ".d.ts");
|
|
33
|
-
const relativeSourceDtsName = JSON.stringify(`./${file.facadeModuleId.replace(/\.[cm]?[jt]sx?$/, "")}`);
|
|
34
|
-
this.emitFile({
|
|
35
|
-
type: "asset",
|
|
36
|
-
fileName: dtsFileName,
|
|
37
|
-
source: file.exports.includes("default") ? `export * from ${relativeSourceDtsName};\nexport { default } from ${relativeSourceDtsName};\n` : `export * from ${relativeSourceDtsName};\n`
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Resolves the options for [rollup](https://rollupjs.org).
|
|
44
|
-
*
|
|
45
|
-
* @param context - The build context.
|
|
46
|
-
* @returns The resolved options.
|
|
47
|
-
*/
|
|
48
|
-
function resolveOptions(context) {
|
|
49
|
-
return (0, defu.default)({
|
|
50
|
-
input: (0, node_fs.globSync)((0, __stryke_convert_to_array.toArray)(context.entry).map((entry) => (0, __stryke_type_checks_is_string.isString)(entry) ? entry : entry.file)).flat(),
|
|
51
|
-
external: (source) => {
|
|
52
|
-
if (context.config.resolve.external && (0, __stryke_convert_to_array.toArray)(context.config.resolve.external).includes(source)) return true;
|
|
53
|
-
if (context.config.resolve.noExternal && (0, __stryke_convert_to_array.toArray)(context.config.resolve.noExternal).includes(source)) return false;
|
|
54
|
-
if (context.builtins.includes(source)) return context.config.projectType !== "application";
|
|
55
|
-
return !context.config.resolve.skipNodeModulesBundle;
|
|
56
|
-
},
|
|
57
|
-
plugins: [
|
|
58
|
-
(0, rollup_plugin_typescript2.default)({
|
|
59
|
-
check: false,
|
|
60
|
-
tsconfig: context.tsconfig.tsconfigFilePath
|
|
61
|
-
}),
|
|
62
|
-
context.config.define && Object.keys(context.config.define).length > 0 && (0, __rollup_plugin_replace.default)({
|
|
63
|
-
sourceMap: context.config.mode === "development",
|
|
64
|
-
preventAssignment: true,
|
|
65
|
-
...context.config.define ?? {}
|
|
66
|
-
}),
|
|
67
|
-
context.config.inject && Object.keys(context.config.inject).length > 0 && (0, __rollup_plugin_inject.default)({
|
|
68
|
-
sourceMap: context.config.mode === "development",
|
|
69
|
-
...context.config.inject
|
|
70
|
-
}),
|
|
71
|
-
(0, __rollup_plugin_alias.default)({ entries: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
72
|
-
if (!ret.find((e) => e.find === id)) ret.push({
|
|
73
|
-
find: id,
|
|
74
|
-
replacement: path
|
|
75
|
-
});
|
|
76
|
-
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
77
|
-
return ret;
|
|
78
|
-
}, []) }),
|
|
79
|
-
context.config.babel && (0, __rollup_plugin_babel.getBabelInputPlugin)((0, defu.default)(context.config.babel, {
|
|
80
|
-
caller: {
|
|
81
|
-
name: "powerlines",
|
|
82
|
-
supportsStaticESM: true
|
|
83
|
-
},
|
|
84
|
-
cwd: context.config.root,
|
|
85
|
-
babelrc: false,
|
|
86
|
-
extensions: [
|
|
87
|
-
".js",
|
|
88
|
-
".jsx",
|
|
89
|
-
".ts",
|
|
90
|
-
".tsx"
|
|
91
|
-
],
|
|
92
|
-
babelHelpers: "bundled",
|
|
93
|
-
skipPreflightCheck: true,
|
|
94
|
-
exclude: /node_modules/
|
|
95
|
-
})),
|
|
96
|
-
(0, __rollup_plugin_node_resolve.default)({
|
|
97
|
-
moduleDirectories: ["node_modules"],
|
|
98
|
-
preferBuiltins: true
|
|
99
|
-
}),
|
|
100
|
-
dtsBundlePlugin
|
|
101
|
-
].filter(Boolean)
|
|
102
|
-
}, context.config?.rollup ? context.config?.rollup : {}, {
|
|
103
|
-
cache: !context.config.skipCache ? (0, __stryke_path_join_paths.joinPaths)(context.cachePath, "rollup") : false,
|
|
104
|
-
logLevel: context.config.logLevel,
|
|
105
|
-
output: [{
|
|
106
|
-
dir: context.config.output.buildPath,
|
|
107
|
-
format: "es",
|
|
108
|
-
entryFileNames: "[name].js",
|
|
109
|
-
preserveModules: true,
|
|
110
|
-
sourcemap: context.config.mode === "development"
|
|
111
|
-
}, {
|
|
112
|
-
dir: context.config.output.buildPath,
|
|
113
|
-
format: "cjs",
|
|
114
|
-
entryFileNames: "[name].cjs",
|
|
115
|
-
preserveModules: true,
|
|
116
|
-
sourcemap: context.config.mode === "development"
|
|
117
|
-
}]
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
//#endregion
|
|
122
|
-
exports.dtsBundlePlugin = dtsBundlePlugin;
|
|
123
|
-
exports.resolveOptions = resolveOptions;
|
|
3
|
+
exports.dtsBundlePlugin = require_resolve_options.dtsBundlePlugin;
|
|
4
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A Rollup plugin to bundle TypeScript declaration files (.d.ts) alongside the JavaScript output files.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* This plugin generates .d.ts files for each entry point in the bundle, ensuring that type definitions are available for consumers of the library.
|
|
11
|
-
*/
|
|
12
|
-
declare const dtsBundlePlugin: Plugin;
|
|
13
|
-
/**
|
|
14
|
-
* Resolves the options for [rollup](https://rollupjs.org).
|
|
15
|
-
*
|
|
16
|
-
* @param context - The build context.
|
|
17
|
-
* @returns The resolved options.
|
|
18
|
-
*/
|
|
19
|
-
declare function resolveOptions(context: Context): RollupOptions;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { dtsBundlePlugin, resolveOptions };
|
|
22
|
-
//# sourceMappingURL=resolve-options.d.cts.map
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "../resolve-options-CDAAEyhT.cjs";
|
|
2
|
+
export { dtsBundlePlugin, resolveOptions };
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Plugin, RollupOptions } from "rollup";
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/resolve-options.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A Rollup plugin to bundle TypeScript declaration files (.d.ts) alongside the JavaScript output files.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* This plugin generates .d.ts files for each entry point in the bundle, ensuring that type definitions are available for consumers of the library.
|
|
12
|
-
*/
|
|
13
|
-
declare const dtsBundlePlugin: Plugin;
|
|
14
|
-
/**
|
|
15
|
-
* Resolves the options for [rollup](https://rollupjs.org).
|
|
16
|
-
*
|
|
17
|
-
* @param context - The build context.
|
|
18
|
-
* @returns The resolved options.
|
|
19
|
-
*/
|
|
20
|
-
declare function resolveOptions(context: Context): RollupOptions;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { dtsBundlePlugin, resolveOptions };
|
|
23
|
-
//# sourceMappingURL=resolve-options.d.mts.map
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "../resolve-options-E_fWwC71.mjs";
|
|
2
|
+
export { dtsBundlePlugin, resolveOptions };
|
|
@@ -1,116 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import defu from "defu";
|
|
3
|
-
import alias from "@rollup/plugin-alias";
|
|
4
|
-
import { getBabelInputPlugin } from "@rollup/plugin-babel";
|
|
5
|
-
import inject from "@rollup/plugin-inject";
|
|
6
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
7
|
-
import replace from "@rollup/plugin-replace";
|
|
8
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
9
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
10
|
-
import { globSync } from "node:fs";
|
|
11
|
-
import typescriptPlugin from "rollup-plugin-typescript2";
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "../resolve-options-Aps_4r5P.mjs";
|
|
12
2
|
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* A Rollup plugin to bundle TypeScript declaration files (.d.ts) alongside the JavaScript output files.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* This plugin generates .d.ts files for each entry point in the bundle, ensuring that type definitions are available for consumers of the library.
|
|
19
|
-
*/
|
|
20
|
-
const dtsBundlePlugin = {
|
|
21
|
-
name: "powerlines:dts-bundle",
|
|
22
|
-
async generateBundle(_opts, bundle) {
|
|
23
|
-
for (const [, file] of Object.entries(bundle)) {
|
|
24
|
-
if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) continue;
|
|
25
|
-
const dtsFileName = file.fileName.replace(/(?:\.cjs|\.mjs|\.esm\.js|\.cjs\.js|\.mjs\.js|\.js)$/, ".d.ts");
|
|
26
|
-
const relativeSourceDtsName = JSON.stringify(`./${file.facadeModuleId.replace(/\.[cm]?[jt]sx?$/, "")}`);
|
|
27
|
-
this.emitFile({
|
|
28
|
-
type: "asset",
|
|
29
|
-
fileName: dtsFileName,
|
|
30
|
-
source: file.exports.includes("default") ? `export * from ${relativeSourceDtsName};\nexport { default } from ${relativeSourceDtsName};\n` : `export * from ${relativeSourceDtsName};\n`
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Resolves the options for [rollup](https://rollupjs.org).
|
|
37
|
-
*
|
|
38
|
-
* @param context - The build context.
|
|
39
|
-
* @returns The resolved options.
|
|
40
|
-
*/
|
|
41
|
-
function resolveOptions(context) {
|
|
42
|
-
return defu({
|
|
43
|
-
input: globSync(toArray(context.entry).map((entry) => isString(entry) ? entry : entry.file)).flat(),
|
|
44
|
-
external: (source) => {
|
|
45
|
-
if (context.config.resolve.external && toArray(context.config.resolve.external).includes(source)) return true;
|
|
46
|
-
if (context.config.resolve.noExternal && toArray(context.config.resolve.noExternal).includes(source)) return false;
|
|
47
|
-
if (context.builtins.includes(source)) return context.config.projectType !== "application";
|
|
48
|
-
return !context.config.resolve.skipNodeModulesBundle;
|
|
49
|
-
},
|
|
50
|
-
plugins: [
|
|
51
|
-
typescriptPlugin({
|
|
52
|
-
check: false,
|
|
53
|
-
tsconfig: context.tsconfig.tsconfigFilePath
|
|
54
|
-
}),
|
|
55
|
-
context.config.define && Object.keys(context.config.define).length > 0 && replace({
|
|
56
|
-
sourceMap: context.config.mode === "development",
|
|
57
|
-
preventAssignment: true,
|
|
58
|
-
...context.config.define ?? {}
|
|
59
|
-
}),
|
|
60
|
-
context.config.inject && Object.keys(context.config.inject).length > 0 && inject({
|
|
61
|
-
sourceMap: context.config.mode === "development",
|
|
62
|
-
...context.config.inject
|
|
63
|
-
}),
|
|
64
|
-
alias({ entries: Object.entries(context.alias).reduce((ret, [id, path]) => {
|
|
65
|
-
if (!ret.find((e) => e.find === id)) ret.push({
|
|
66
|
-
find: id,
|
|
67
|
-
replacement: path
|
|
68
|
-
});
|
|
69
|
-
else context.warn(`Duplicate alias entry for '${id}' detected. The first entry will be used.`);
|
|
70
|
-
return ret;
|
|
71
|
-
}, []) }),
|
|
72
|
-
context.config.babel && getBabelInputPlugin(defu(context.config.babel, {
|
|
73
|
-
caller: {
|
|
74
|
-
name: "powerlines",
|
|
75
|
-
supportsStaticESM: true
|
|
76
|
-
},
|
|
77
|
-
cwd: context.config.root,
|
|
78
|
-
babelrc: false,
|
|
79
|
-
extensions: [
|
|
80
|
-
".js",
|
|
81
|
-
".jsx",
|
|
82
|
-
".ts",
|
|
83
|
-
".tsx"
|
|
84
|
-
],
|
|
85
|
-
babelHelpers: "bundled",
|
|
86
|
-
skipPreflightCheck: true,
|
|
87
|
-
exclude: /node_modules/
|
|
88
|
-
})),
|
|
89
|
-
resolve({
|
|
90
|
-
moduleDirectories: ["node_modules"],
|
|
91
|
-
preferBuiltins: true
|
|
92
|
-
}),
|
|
93
|
-
dtsBundlePlugin
|
|
94
|
-
].filter(Boolean)
|
|
95
|
-
}, context.config?.rollup ? context.config?.rollup : {}, {
|
|
96
|
-
cache: !context.config.skipCache ? joinPaths(context.cachePath, "rollup") : false,
|
|
97
|
-
logLevel: context.config.logLevel,
|
|
98
|
-
output: [{
|
|
99
|
-
dir: context.config.output.buildPath,
|
|
100
|
-
format: "es",
|
|
101
|
-
entryFileNames: "[name].js",
|
|
102
|
-
preserveModules: true,
|
|
103
|
-
sourcemap: context.config.mode === "development"
|
|
104
|
-
}, {
|
|
105
|
-
dir: context.config.output.buildPath,
|
|
106
|
-
format: "cjs",
|
|
107
|
-
entryFileNames: "[name].cjs",
|
|
108
|
-
preserveModules: true,
|
|
109
|
-
sourcemap: context.config.mode === "development"
|
|
110
|
-
}]
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
//#endregion
|
|
115
|
-
export { dtsBundlePlugin, resolveOptions };
|
|
116
|
-
//# sourceMappingURL=resolve-options.mjs.map
|
|
3
|
+
export { dtsBundlePlugin, resolveOptions };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_plugin = require('../core/src/lib/unplugin/plugin.cjs');
|
|
3
|
-
require('../core/src/lib/unplugin/index.cjs');
|
|
4
|
-
let unplugin = require("unplugin");
|
|
1
|
+
const require_unplugin = require('../unplugin-ByRbaNtu.cjs');
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
function createRollupPlugin(context) {
|
|
8
|
-
return (0, unplugin.createEsbuildPlugin)(require_plugin.createUnplugin(context))({});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.createRollupPlugin = createRollupPlugin;
|
|
3
|
+
exports.createRollupPlugin = require_unplugin.createRollupPlugin;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function createRollupPlugin(context: RollupPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createRollupPlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.cts.map
|
|
1
|
+
import "../build-CZBW0WlF.cjs";
|
|
2
|
+
import "../plugin-jKu50p7w.cjs";
|
|
3
|
+
import { t as createRollupPlugin } from "../unplugin-JxAcixPP.cjs";
|
|
4
|
+
export { createRollupPlugin };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function createRollupPlugin(context: RollupPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createRollupPlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.mts.map
|
|
1
|
+
import "../build-DZybhECU.mjs";
|
|
2
|
+
import "../plugin-Diu2VjRD.mjs";
|
|
3
|
+
import { t as createRollupPlugin } from "../unplugin-BMtcWvP4.mjs";
|
|
4
|
+
export { createRollupPlugin };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../core/src/lib/unplugin/index.mjs";
|
|
3
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
1
|
+
import { t as createRollupPlugin } from "../unplugin-DrmiEjBF.mjs";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createRollupPlugin(context) {
|
|
7
|
-
return createEsbuildPlugin(createUnplugin(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { createRollupPlugin };
|
|
12
|
-
//# sourceMappingURL=unplugin.mjs.map
|
|
3
|
+
export { createRollupPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
require('./
|
|
2
|
+
const require_resolve_options = require('./resolve-options-JUh7vwne.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin-ByRbaNtu.cjs');
|
|
4
|
+
require('./helpers-yB1XkvQI.cjs');
|
|
5
|
+
require('./build-DJTI0ZMx.cjs');
|
|
6
|
+
require('./plugin-D5qyQPqC.cjs');
|
|
7
|
+
require('./types-D208vOSb.cjs');
|
|
6
8
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
7
9
|
let defu = require("defu");
|
|
8
|
-
defu =
|
|
10
|
+
defu = require_resolve_options.__toESM(defu);
|
|
9
11
|
let rollup = require("rollup");
|
|
10
12
|
|
|
11
13
|
//#region src/index.ts
|
|
@@ -22,7 +24,7 @@ const plugin = (options = {}) => {
|
|
|
22
24
|
};
|
|
23
25
|
},
|
|
24
26
|
async build() {
|
|
25
|
-
const result = await (0, rollup.rollup)((0, defu.default)({ plugins: [
|
|
27
|
+
const result = await (0, rollup.rollup)((0, defu.default)({ plugins: [require_unplugin.createRollupPlugin(this)] }, require_resolve_options.resolveOptions(this)));
|
|
26
28
|
await Promise.all((0, __stryke_convert_to_array.toArray)(this.config.output.format).map(async (format) => result.write({ format })));
|
|
27
29
|
}
|
|
28
30
|
};
|
|
@@ -30,8 +32,8 @@ const plugin = (options = {}) => {
|
|
|
30
32
|
var src_default = plugin;
|
|
31
33
|
|
|
32
34
|
//#endregion
|
|
33
|
-
exports.createRollupPlugin =
|
|
35
|
+
exports.createRollupPlugin = require_unplugin.createRollupPlugin;
|
|
34
36
|
exports.default = src_default;
|
|
35
|
-
exports.dtsBundlePlugin =
|
|
37
|
+
exports.dtsBundlePlugin = require_resolve_options.dtsBundlePlugin;
|
|
36
38
|
exports.plugin = plugin;
|
|
37
|
-
exports.resolveOptions =
|
|
39
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "./resolve-options-CDAAEyhT.cjs";
|
|
2
|
+
import { n as __ΩRollupOptions, t as RollupOptions } from "./build-CZBW0WlF.cjs";
|
|
3
|
+
import { a as __ΩRollupPluginContext, c as __ΩRollupPluginUserConfig, i as RollupPluginUserConfig, n as RollupPluginOptions, o as __ΩRollupPluginOptions, r as RollupPluginResolvedConfig, s as __ΩRollupPluginResolvedConfig, t as RollupPluginContext } from "./plugin-jKu50p7w.cjs";
|
|
4
|
+
import { t as createRollupPlugin } from "./unplugin-JxAcixPP.cjs";
|
|
5
|
+
import "./index-CiBIKhMu.cjs";
|
|
6
|
+
import "./index-B_e8BwCm.cjs";
|
|
7
|
+
import { Plugin } from "@powerlines/core/types";
|
|
6
8
|
|
|
7
9
|
//#region src/index.d.ts
|
|
8
10
|
/**
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;cAoCa,0BACM,sBAAsB,+BAE9B,wBACR,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
import "./types/index.mjs";
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "./resolve-options-E_fWwC71.mjs";
|
|
2
|
+
import { n as __ΩRollupOptions, t as RollupOptions } from "./build-DZybhECU.mjs";
|
|
3
|
+
import { a as __ΩRollupPluginContext, c as __ΩRollupPluginUserConfig, i as RollupPluginUserConfig, n as RollupPluginOptions, o as __ΩRollupPluginOptions, r as RollupPluginResolvedConfig, s as __ΩRollupPluginResolvedConfig, t as RollupPluginContext } from "./plugin-Diu2VjRD.mjs";
|
|
4
|
+
import { t as createRollupPlugin } from "./unplugin-BMtcWvP4.mjs";
|
|
5
|
+
import "./index-CW2WHUXP.mjs";
|
|
6
|
+
import "./index-Cc7fCJU9.mjs";
|
|
7
|
+
import { Plugin } from "@powerlines/core/types";
|
|
9
8
|
|
|
10
9
|
//#region src/index.d.ts
|
|
11
10
|
/**
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;cAoCa,0BACM,sBAAsB,+BAE9B,wBACR,OAAO"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createRollupPlugin } from "./
|
|
3
|
-
import "./helpers
|
|
1
|
+
import { n as resolveOptions, t as dtsBundlePlugin } from "./resolve-options-Aps_4r5P.mjs";
|
|
2
|
+
import { t as createRollupPlugin } from "./unplugin-DrmiEjBF.mjs";
|
|
3
|
+
import "./helpers-C9XSjwSZ.mjs";
|
|
4
|
+
import "./build-XTM4L3VY.mjs";
|
|
5
|
+
import "./plugin-D3B5E_Hg.mjs";
|
|
6
|
+
import "./types-Dv2cgIDx.mjs";
|
|
4
7
|
import { toArray } from "@stryke/convert/to-array";
|
|
5
8
|
import defu from "defu";
|
|
6
9
|
import { rollup } from "rollup";
|
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 { Plugin } from \"@powerlines/core/types\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { rollup as build } from \"rollup\";\nimport { resolveOptions } from \"./helpers\";\nimport { createRollupPlugin } from \"./helpers/unplugin\";\nimport {\n RollupPluginContext,\n RollupPluginOptions,\n RollupPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\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 } as Partial<RollupPluginUserConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRollupPlugin(this)]\n },\n resolveOptions(this)\n )\n );\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":"
|
|
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 { Plugin } from \"@powerlines/core/types\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { rollup as build } from \"rollup\";\nimport { resolveOptions } from \"./helpers\";\nimport { createRollupPlugin } from \"./helpers/unplugin\";\nimport {\n RollupPluginContext,\n RollupPluginOptions,\n RollupPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\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 } as Partial<RollupPluginUserConfig>;\n },\n async build() {\n const result = await build(\n defu(\n {\n plugins: [createRollupPlugin(this)]\n },\n resolveOptions(this)\n )\n );\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":";;;;;;;;;;;;;;AAoCA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,QAAQ,EACN,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;GACZ,MAAM,SAAS,MAAMA,OACnB,KACE,EACE,SAAS,CAAC,mBAAmB,KAAK,CAAC,EACpC,EACD,eAAe,KAAK,CACrB,CACF;AAED,SAAM,QAAQ,IACZ,QAAQ,KAAK,OAAO,OAAO,OAAO,CAAC,IAAI,OAAM,WAC3C,OAAO,MAAM,EACX,QACD,CAAC,CACH,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as RollupOptions } from "./build-DZybhECU.mjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type RollupPluginOptions = Partial<RollupOptions>;
|
|
6
|
+
interface RollupPluginUserConfig extends UserConfig {
|
|
7
|
+
rollup: RollupPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface RollupPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
rollup: RollupOptions;
|
|
11
|
+
}
|
|
12
|
+
type RollupPluginContext<TResolvedConfig extends RollupPluginResolvedConfig = RollupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩRollupPluginOptions = any[];
|
|
14
|
+
declare type __ΩRollupPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩRollupPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩRollupPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __ΩRollupPluginContext as a, __ΩRollupPluginUserConfig as c, RollupPluginUserConfig as i, RollupPluginOptions as n, __ΩRollupPluginOptions as o, RollupPluginResolvedConfig as r, __ΩRollupPluginResolvedConfig as s, RollupPluginContext as t };
|
|
19
|
+
//# sourceMappingURL=plugin-Diu2VjRD.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-Diu2VjRD.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAyBY,mBAAA,GAAsB,QAAQ;UAEzB,sBAAA,SAA+B;EAFpC,MAAA,EAGF,mBAHqB;AAE/B;AAIiB,UAAA,0BAAA,SAAmC,cAAA,CAAA;EAIxC,MAAA,EAHF,aAGE;;AAER,KAFQ,mBAER,CAAA,wBADsB,0BACtB,GAAA,0BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,sCAAA,GAAA,EAAA;AAAd,yCAAA,GAAA,EAAA;AAAa,6CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as RollupOptions } from "./build-CZBW0WlF.cjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type RollupPluginOptions = Partial<RollupOptions>;
|
|
6
|
+
interface RollupPluginUserConfig extends UserConfig {
|
|
7
|
+
rollup: RollupPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface RollupPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
rollup: RollupOptions;
|
|
11
|
+
}
|
|
12
|
+
type RollupPluginContext<TResolvedConfig extends RollupPluginResolvedConfig = RollupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩRollupPluginOptions = any[];
|
|
14
|
+
declare type __ΩRollupPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩRollupPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩRollupPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __ΩRollupPluginContext as a, __ΩRollupPluginUserConfig as c, RollupPluginUserConfig as i, RollupPluginOptions as n, __ΩRollupPluginOptions as o, RollupPluginResolvedConfig as r, __ΩRollupPluginResolvedConfig as s, RollupPluginContext as t };
|
|
19
|
+
//# sourceMappingURL=plugin-jKu50p7w.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-jKu50p7w.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAyBY,mBAAA,GAAsB,QAAQ;UAEzB,sBAAA,SAA+B;EAFpC,MAAA,EAGF,mBAHqB;AAE/B;AAIiB,UAAA,0BAAA,SAAmC,cAAA,CAAA;EAIxC,MAAA,EAHF,aAGE;;AAER,KAFQ,mBAER,CAAA,wBADsB,0BACtB,GAAA,0BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,sCAAA,GAAA,EAAA;AAAd,yCAAA,GAAA,EAAA;AAAa,6CAAA,GAAA,EAAA"}
|