@powerlines/plugin-tsup 0.12.308 → 0.12.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-C-zKo4UO.d.cts +8 -0
- package/dist/build-C-zKo4UO.d.cts.map +1 -0
- package/dist/build-D6oFtT4i.d.mts +8 -0
- package/dist/build-D6oFtT4i.d.mts.map +1 -0
- package/dist/build-DJTI0ZMx.cjs +0 -0
- package/dist/build-XTM4L3VY.mjs +1 -0
- package/dist/helpers/index.cjs +7 -6
- package/dist/helpers/index.d.cts +6 -2
- package/dist/helpers/index.d.mts +6 -2
- package/dist/helpers/index.mjs +3 -2
- package/dist/helpers/resolve-options.cjs +4 -84
- package/dist/helpers/resolve-options.d.cts +5 -26
- package/dist/helpers/resolve-options.d.mts +5 -28
- package/dist/helpers/resolve-options.mjs +2 -81
- 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-2Ag-54t8.d.mts +1 -0
- package/dist/index-B_e8BwCm.d.cts +1 -0
- package/dist/index-Cc7fCJU9.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index.cjs +12 -10
- 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-BUuY_bKp.d.cts +19 -0
- package/dist/plugin-BUuY_bKp.d.cts.map +1 -0
- package/dist/plugin-D0kb_w4D.d.mts +19 -0
- package/dist/plugin-D0kb_w4D.d.mts.map +1 -0
- package/dist/plugin-D3B5E_Hg.mjs +1 -0
- package/dist/plugin-D5qyQPqC.cjs +0 -0
- package/dist/resolve-options-A50LA11B.d.mts +25 -0
- package/dist/resolve-options-A50LA11B.d.mts.map +1 -0
- package/dist/resolve-options-CaiF-bem.d.cts +25 -0
- package/dist/resolve-options-CaiF-bem.d.cts.map +1 -0
- package/dist/resolve-options-DPfS2t2w.cjs +132 -0
- package/dist/resolve-options-DvCBX8Wl.mjs +82 -0
- package/dist/resolve-options-DvCBX8Wl.mjs.map +1 -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-BNAHDEmx.d.cts +8 -0
- package/dist/unplugin-BNAHDEmx.d.cts.map +1 -0
- package/dist/unplugin-C0RKBWXe.cjs +16 -0
- package/dist/unplugin-D-dKnxUW.mjs +11 -0
- package/dist/unplugin-D-dKnxUW.mjs.map +1 -0
- package/dist/unplugin-DHNZtPIJ.d.mts +8 -0
- package/dist/unplugin-DHNZtPIJ.d.mts.map +1 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
- package/dist/core/src/lib/entry.cjs +0 -22
- package/dist/core/src/lib/entry.mjs +0 -22
- package/dist/core/src/lib/entry.mjs.map +0 -1
- 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/plugin-utils/paths.cjs +0 -2
- package/dist/core/src/plugin-utils/paths.mjs +0 -4
- 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/plugin-esbuild/src/helpers/resolve-options.cjs +0 -27
- package/dist/plugin-esbuild/src/helpers/resolve-options.mjs +0 -26
- package/dist/plugin-esbuild/src/helpers/resolve-options.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 { BuildOptions } from "@storm-software/tsup/types";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type TsupOptions = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">>;
|
|
5
|
+
declare type __ΩTsupOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __ΩTsupOptions as n, TsupOptions as t };
|
|
8
|
+
//# sourceMappingURL=build-C-zKo4UO.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-C-zKo4UO.d.cts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,WAAA,GAAc,QACxB,KACE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BuildOptions } from "@storm-software/tsup/types";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type TsupOptions = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">>;
|
|
5
|
+
declare type __ΩTsupOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { __ΩTsupOptions as n, TsupOptions as t };
|
|
8
|
+
//# sourceMappingURL=build-D6oFtT4i.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-D6oFtT4i.d.mts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,WAAA,GAAc,QACxB,KACE"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_resolve_options = require('../resolve-options-DPfS2t2w.cjs');
|
|
2
|
+
const require_unplugin = require('../unplugin-C0RKBWXe.cjs');
|
|
3
|
+
require('../helpers-yB1XkvQI.cjs');
|
|
3
4
|
|
|
4
|
-
exports.DEFAULT_TSUP_CONFIG =
|
|
5
|
-
exports.createTsupPlugin =
|
|
6
|
-
exports.resolveEntry =
|
|
7
|
-
exports.resolveOptions =
|
|
5
|
+
exports.DEFAULT_TSUP_CONFIG = require_resolve_options.DEFAULT_TSUP_CONFIG;
|
|
6
|
+
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
|
7
|
+
exports.resolveEntry = require_resolve_options.resolveEntry;
|
|
8
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../build-C-zKo4UO.cjs";
|
|
2
|
+
import "../plugin-BUuY_bKp.cjs";
|
|
3
|
+
import "../index-D4ELpJXS.cjs";
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-CaiF-bem.cjs";
|
|
5
|
+
import { t as createTsupPlugin } from "../unplugin-BNAHDEmx.cjs";
|
|
6
|
+
import "../index-B_e8BwCm.cjs";
|
|
3
7
|
export { DEFAULT_TSUP_CONFIG, createTsupPlugin, resolveEntry, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../build-D6oFtT4i.mjs";
|
|
2
|
+
import "../plugin-D0kb_w4D.mjs";
|
|
3
|
+
import "../index-2Ag-54t8.mjs";
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-A50LA11B.mjs";
|
|
5
|
+
import { t as createTsupPlugin } from "../unplugin-DHNZtPIJ.mjs";
|
|
6
|
+
import "../index-Cc7fCJU9.mjs";
|
|
3
7
|
export { DEFAULT_TSUP_CONFIG, createTsupPlugin, resolveEntry, resolveOptions };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createTsupPlugin } from "
|
|
1
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-DvCBX8Wl.mjs";
|
|
2
|
+
import { t as createTsupPlugin } from "../unplugin-D-dKnxUW.mjs";
|
|
3
|
+
import "../helpers-C9XSjwSZ.mjs";
|
|
3
4
|
|
|
4
5
|
export { DEFAULT_TSUP_CONFIG, createTsupPlugin, resolveEntry, resolveOptions };
|
|
@@ -1,85 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_resolve_options = require('../plugin-esbuild/src/helpers/resolve-options.cjs');
|
|
3
|
-
let defu = require("defu");
|
|
4
|
-
defu = require_rolldown_runtime.__toESM(defu);
|
|
5
|
-
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
6
|
-
let __stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
7
|
-
let __stryke_path_append = require("@stryke/path/append");
|
|
8
|
-
let __storm_software_tsup_constants = require("@storm-software/tsup/constants");
|
|
1
|
+
const require_resolve_options = require('../resolve-options-DPfS2t2w.cjs');
|
|
9
2
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
target: "esnext",
|
|
14
|
-
config: false,
|
|
15
|
-
minify: true,
|
|
16
|
-
sourcemap: false,
|
|
17
|
-
cjsInterop: true,
|
|
18
|
-
bundle: true,
|
|
19
|
-
dts: true,
|
|
20
|
-
shims: true,
|
|
21
|
-
silent: true,
|
|
22
|
-
treeshake: true,
|
|
23
|
-
keepNames: true,
|
|
24
|
-
splitting: true,
|
|
25
|
-
banner: {}
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Resolves the entry options for [tsup](https://github.com/egoist/tsup).
|
|
29
|
-
*
|
|
30
|
-
* @param context - The build context.
|
|
31
|
-
* @param entryPoints - The entry points to resolve.
|
|
32
|
-
* @returns The resolved entry options.
|
|
33
|
-
*/
|
|
34
|
-
function resolveEntry(context, entryPoints) {
|
|
35
|
-
return require_resolve_options.resolveEntry(context, entryPoints);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Resolves the options for [tsup](https://github.com/egoist/tsup).
|
|
39
|
-
*
|
|
40
|
-
* @param context - The build context.
|
|
41
|
-
* @returns The resolved options.
|
|
42
|
-
*/
|
|
43
|
-
function resolveOptions(context) {
|
|
44
|
-
const result = (0, defu.default)({
|
|
45
|
-
entry: Object.fromEntries(Object.entries(resolveEntry(context, context.entry)).map(([key, value]) => [key, (0, __stryke_path_append.appendPath)(value, context.config.root)])),
|
|
46
|
-
esbuildOptions: ((options, ctx) => {
|
|
47
|
-
if (context.config.tsup?.esbuildOptions) context.config.tsup?.esbuildOptions?.(options, ctx);
|
|
48
|
-
options.alias = {
|
|
49
|
-
...context.alias,
|
|
50
|
-
...context.builtins.reduce((ret, id) => {
|
|
51
|
-
const path = context.fs.paths[id];
|
|
52
|
-
if (path) ret[id] = path;
|
|
53
|
-
return ret;
|
|
54
|
-
}, {}),
|
|
55
|
-
...options.alias
|
|
56
|
-
};
|
|
57
|
-
}),
|
|
58
|
-
noExternal: context.builtins
|
|
59
|
-
}, context.config.tsup ? context.config.tsup : {}, {
|
|
60
|
-
name: context.config.name,
|
|
61
|
-
root: context.config.root,
|
|
62
|
-
projectRoot: context.config.root,
|
|
63
|
-
assets: context.config.output.assets,
|
|
64
|
-
resolveExtensions: context.config.resolve.extensions,
|
|
65
|
-
outputPath: context.config.output.buildPath,
|
|
66
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
67
|
-
dts: context.config.tsup && !context.config.tsup?.experimentalDts ? { compilerOptions: context.tsconfig.tsconfigJson.compilerOptions } : void 0,
|
|
68
|
-
format: context.config.output.format,
|
|
69
|
-
mode: context.config.mode,
|
|
70
|
-
treeshake: context.config.tsup ? context.config.tsup?.treeshake : void 0,
|
|
71
|
-
minify: context.config.mode !== "development",
|
|
72
|
-
metafile: context.config.mode === "development",
|
|
73
|
-
sourcemap: context.config.mode === "development",
|
|
74
|
-
silent: context.config.logLevel === null || context.config.mode === "production",
|
|
75
|
-
verbose: context.config.logLevel === null || context.config.logLevel === "trace" || context.config.mode === "development",
|
|
76
|
-
workspaceConfig: { workspaceRoot: context.workspaceConfig.workspaceRoot }
|
|
77
|
-
}, DEFAULT_TSUP_CONFIG);
|
|
78
|
-
result.format = (0, __stryke_helpers_get_unique.getUnique)((0, __stryke_convert_to_array.toArray)(result.format));
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
exports.DEFAULT_TSUP_CONFIG = DEFAULT_TSUP_CONFIG;
|
|
84
|
-
exports.resolveEntry = resolveEntry;
|
|
85
|
-
exports.resolveOptions = resolveOptions;
|
|
3
|
+
exports.DEFAULT_TSUP_CONFIG = require_resolve_options.DEFAULT_TSUP_CONFIG;
|
|
4
|
+
exports.resolveEntry = require_resolve_options.resolveEntry;
|
|
5
|
+
exports.resolveOptions = require_resolve_options.resolveOptions;
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//#region src/helpers/resolve-options.d.ts
|
|
8
|
-
declare const DEFAULT_TSUP_CONFIG: Partial<TsupOptions>;
|
|
9
|
-
/**
|
|
10
|
-
* Resolves the entry options for [tsup](https://github.com/egoist/tsup).
|
|
11
|
-
*
|
|
12
|
-
* @param context - The build context.
|
|
13
|
-
* @param entryPoints - The entry points to resolve.
|
|
14
|
-
* @returns The resolved entry options.
|
|
15
|
-
*/
|
|
16
|
-
declare function resolveEntry(context: Context, entryPoints: ResolvedEntryTypeDefinition[] | string[]): Entry;
|
|
17
|
-
/**
|
|
18
|
-
* Resolves the options for [tsup](https://github.com/egoist/tsup).
|
|
19
|
-
*
|
|
20
|
-
* @param context - The build context.
|
|
21
|
-
* @returns The resolved options.
|
|
22
|
-
*/
|
|
23
|
-
declare function resolveOptions(context: Context): Parameters<typeof resolveOptions$1>[0];
|
|
24
|
-
//#endregion
|
|
25
|
-
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
|
26
|
-
//# sourceMappingURL=resolve-options.d.cts.map
|
|
1
|
+
import "../build-C-zKo4UO.cjs";
|
|
2
|
+
import "../plugin-BUuY_bKp.cjs";
|
|
3
|
+
import "../index-D4ELpJXS.cjs";
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-CaiF-bem.cjs";
|
|
5
|
+
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "../
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { resolveOptions as resolveOptions$1 } from "@storm-software/tsup";
|
|
7
|
-
import { Entry } from "@storm-software/build-tools/types";
|
|
8
|
-
|
|
9
|
-
//#region src/helpers/resolve-options.d.ts
|
|
10
|
-
declare const DEFAULT_TSUP_CONFIG: Partial<TsupOptions>;
|
|
11
|
-
/**
|
|
12
|
-
* Resolves the entry options for [tsup](https://github.com/egoist/tsup).
|
|
13
|
-
*
|
|
14
|
-
* @param context - The build context.
|
|
15
|
-
* @param entryPoints - The entry points to resolve.
|
|
16
|
-
* @returns The resolved entry options.
|
|
17
|
-
*/
|
|
18
|
-
declare function resolveEntry(context: Context, entryPoints: ResolvedEntryTypeDefinition[] | string[]): Entry;
|
|
19
|
-
/**
|
|
20
|
-
* Resolves the options for [tsup](https://github.com/egoist/tsup).
|
|
21
|
-
*
|
|
22
|
-
* @param context - The build context.
|
|
23
|
-
* @returns The resolved options.
|
|
24
|
-
*/
|
|
25
|
-
declare function resolveOptions(context: Context): Parameters<typeof resolveOptions$1>[0];
|
|
26
|
-
//#endregion
|
|
27
|
-
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
|
28
|
-
//# sourceMappingURL=resolve-options.d.mts.map
|
|
1
|
+
import "../build-D6oFtT4i.mjs";
|
|
2
|
+
import "../plugin-D0kb_w4D.mjs";
|
|
3
|
+
import "../index-2Ag-54t8.mjs";
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-A50LA11B.mjs";
|
|
5
|
+
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
|
@@ -1,82 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import defu from "defu";
|
|
3
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
4
|
-
import { getUnique } from "@stryke/helpers/get-unique";
|
|
5
|
-
import { appendPath } from "@stryke/path/append";
|
|
6
|
-
import { DEFAULT_BUILD_OPTIONS } from "@storm-software/tsup/constants";
|
|
1
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-DvCBX8Wl.mjs";
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
const DEFAULT_TSUP_CONFIG = {
|
|
10
|
-
...DEFAULT_BUILD_OPTIONS,
|
|
11
|
-
target: "esnext",
|
|
12
|
-
config: false,
|
|
13
|
-
minify: true,
|
|
14
|
-
sourcemap: false,
|
|
15
|
-
cjsInterop: true,
|
|
16
|
-
bundle: true,
|
|
17
|
-
dts: true,
|
|
18
|
-
shims: true,
|
|
19
|
-
silent: true,
|
|
20
|
-
treeshake: true,
|
|
21
|
-
keepNames: true,
|
|
22
|
-
splitting: true,
|
|
23
|
-
banner: {}
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Resolves the entry options for [tsup](https://github.com/egoist/tsup).
|
|
27
|
-
*
|
|
28
|
-
* @param context - The build context.
|
|
29
|
-
* @param entryPoints - The entry points to resolve.
|
|
30
|
-
* @returns The resolved entry options.
|
|
31
|
-
*/
|
|
32
|
-
function resolveEntry(context, entryPoints) {
|
|
33
|
-
return resolveEntry$1(context, entryPoints);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Resolves the options for [tsup](https://github.com/egoist/tsup).
|
|
37
|
-
*
|
|
38
|
-
* @param context - The build context.
|
|
39
|
-
* @returns The resolved options.
|
|
40
|
-
*/
|
|
41
|
-
function resolveOptions(context) {
|
|
42
|
-
const result = defu({
|
|
43
|
-
entry: Object.fromEntries(Object.entries(resolveEntry(context, context.entry)).map(([key, value]) => [key, appendPath(value, context.config.root)])),
|
|
44
|
-
esbuildOptions: ((options, ctx) => {
|
|
45
|
-
if (context.config.tsup?.esbuildOptions) context.config.tsup?.esbuildOptions?.(options, ctx);
|
|
46
|
-
options.alias = {
|
|
47
|
-
...context.alias,
|
|
48
|
-
...context.builtins.reduce((ret, id) => {
|
|
49
|
-
const path = context.fs.paths[id];
|
|
50
|
-
if (path) ret[id] = path;
|
|
51
|
-
return ret;
|
|
52
|
-
}, {}),
|
|
53
|
-
...options.alias
|
|
54
|
-
};
|
|
55
|
-
}),
|
|
56
|
-
noExternal: context.builtins
|
|
57
|
-
}, context.config.tsup ? context.config.tsup : {}, {
|
|
58
|
-
name: context.config.name,
|
|
59
|
-
root: context.config.root,
|
|
60
|
-
projectRoot: context.config.root,
|
|
61
|
-
assets: context.config.output.assets,
|
|
62
|
-
resolveExtensions: context.config.resolve.extensions,
|
|
63
|
-
outputPath: context.config.output.buildPath,
|
|
64
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
65
|
-
dts: context.config.tsup && !context.config.tsup?.experimentalDts ? { compilerOptions: context.tsconfig.tsconfigJson.compilerOptions } : void 0,
|
|
66
|
-
format: context.config.output.format,
|
|
67
|
-
mode: context.config.mode,
|
|
68
|
-
treeshake: context.config.tsup ? context.config.tsup?.treeshake : void 0,
|
|
69
|
-
minify: context.config.mode !== "development",
|
|
70
|
-
metafile: context.config.mode === "development",
|
|
71
|
-
sourcemap: context.config.mode === "development",
|
|
72
|
-
silent: context.config.logLevel === null || context.config.mode === "production",
|
|
73
|
-
verbose: context.config.logLevel === null || context.config.logLevel === "trace" || context.config.mode === "development",
|
|
74
|
-
workspaceConfig: { workspaceRoot: context.workspaceConfig.workspaceRoot }
|
|
75
|
-
}, DEFAULT_TSUP_CONFIG);
|
|
76
|
-
result.format = getUnique(toArray(result.format));
|
|
77
|
-
return result;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
//#endregion
|
|
81
|
-
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
|
82
|
-
//# sourceMappingURL=resolve-options.mjs.map
|
|
3
|
+
export { DEFAULT_TSUP_CONFIG, resolveEntry, 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-C0RKBWXe.cjs');
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
function createTsupPlugin(context) {
|
|
8
|
-
return (0, unplugin.createEsbuildPlugin)(require_plugin.createUnplugin(context))({});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.createTsupPlugin = createTsupPlugin;
|
|
3
|
+
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createTsupPlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.cts.map
|
|
1
|
+
import "../build-C-zKo4UO.cjs";
|
|
2
|
+
import "../plugin-BUuY_bKp.cjs";
|
|
3
|
+
import { t as createTsupPlugin } from "../unplugin-BNAHDEmx.cjs";
|
|
4
|
+
export { createTsupPlugin };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createTsupPlugin };
|
|
8
|
-
//# sourceMappingURL=unplugin.d.mts.map
|
|
1
|
+
import "../build-D6oFtT4i.mjs";
|
|
2
|
+
import "../plugin-D0kb_w4D.mjs";
|
|
3
|
+
import { t as createTsupPlugin } from "../unplugin-DHNZtPIJ.mjs";
|
|
4
|
+
export { createTsupPlugin };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../core/src/lib/unplugin/index.mjs";
|
|
3
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
1
|
+
import { t as createTsupPlugin } from "../unplugin-D-dKnxUW.mjs";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createTsupPlugin(context) {
|
|
7
|
-
return createEsbuildPlugin(createUnplugin(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { createTsupPlugin };
|
|
12
|
-
//# sourceMappingURL=unplugin.mjs.map
|
|
3
|
+
export { createTsupPlugin };
|
|
@@ -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-DPfS2t2w.cjs');
|
|
3
|
+
const require_unplugin = require('./unplugin-C0RKBWXe.cjs');
|
|
4
|
+
require('./helpers-yB1XkvQI.cjs');
|
|
5
|
+
require('./build-DJTI0ZMx.cjs');
|
|
6
|
+
require('./plugin-D5qyQPqC.cjs');
|
|
7
|
+
require('./types-D208vOSb.cjs');
|
|
6
8
|
let __storm_software_tsup = require("@storm-software/tsup");
|
|
7
9
|
let defu = require("defu");
|
|
8
|
-
defu =
|
|
10
|
+
defu = require_resolve_options.__toESM(defu);
|
|
9
11
|
|
|
10
12
|
//#region src/index.ts
|
|
11
13
|
/**
|
|
@@ -22,16 +24,16 @@ const plugin = (options = {}) => {
|
|
|
22
24
|
};
|
|
23
25
|
},
|
|
24
26
|
async build() {
|
|
25
|
-
return (0, __storm_software_tsup.build)(await (0, __storm_software_tsup.resolveOptions)((0, defu.default)(
|
|
27
|
+
return (0, __storm_software_tsup.build)(await (0, __storm_software_tsup.resolveOptions)((0, defu.default)(require_resolve_options.resolveOptions(this), { esbuildPlugins: [require_unplugin.createTsupPlugin(this)] })));
|
|
26
28
|
}
|
|
27
29
|
};
|
|
28
30
|
};
|
|
29
31
|
var src_default = plugin;
|
|
30
32
|
|
|
31
33
|
//#endregion
|
|
32
|
-
exports.DEFAULT_TSUP_CONFIG =
|
|
33
|
-
exports.createTsupPlugin =
|
|
34
|
+
exports.DEFAULT_TSUP_CONFIG = require_resolve_options.DEFAULT_TSUP_CONFIG;
|
|
35
|
+
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
|
34
36
|
exports.default = src_default;
|
|
35
37
|
exports.plugin = plugin;
|
|
36
|
-
exports.resolveEntry =
|
|
37
|
-
exports.resolveOptions =
|
|
38
|
+
exports.resolveEntry = require_resolve_options.resolveEntry;
|
|
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 { createTsupPlugin } from "./
|
|
1
|
+
import { n as __ΩTsupOptions, t as TsupOptions } from "./build-C-zKo4UO.cjs";
|
|
2
|
+
import { a as __ΩTsupPluginContext, c as __ΩTsupPluginUserConfig, i as TsupPluginUserConfig, n as TsupPluginOptions, o as __ΩTsupPluginOptions, r as TsupPluginResolvedConfig, s as __ΩTsupPluginResolvedConfig, t as TsupPluginContext } from "./plugin-BUuY_bKp.cjs";
|
|
3
|
+
import "./index-D4ELpJXS.cjs";
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-CaiF-bem.cjs";
|
|
5
|
+
import { t as createTsupPlugin } from "./unplugin-BNAHDEmx.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":";;;;;;;;;;;;cAsCa,0BAA2B,oBAAoB,6BACjD,sBACR,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 "./helpers/index.mjs";
|
|
1
|
+
import { n as __ΩTsupOptions, t as TsupOptions } from "./build-D6oFtT4i.mjs";
|
|
2
|
+
import { a as __ΩTsupPluginContext, c as __ΩTsupPluginUserConfig, i as TsupPluginUserConfig, n as TsupPluginOptions, o as __ΩTsupPluginOptions, r as TsupPluginResolvedConfig, s as __ΩTsupPluginResolvedConfig, t as TsupPluginContext } from "./plugin-D0kb_w4D.mjs";
|
|
3
|
+
import "./index-2Ag-54t8.mjs";
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-A50LA11B.mjs";
|
|
5
|
+
import { t as createTsupPlugin } from "./unplugin-DHNZtPIJ.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":";;;;;;;;;;;;cAsCa,0BAA2B,oBAAoB,6BACjD,sBACR,OAAO"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createTsupPlugin } from "./
|
|
3
|
-
import "./helpers
|
|
1
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-DvCBX8Wl.mjs";
|
|
2
|
+
import { t as createTsupPlugin } from "./unplugin-D-dKnxUW.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 { build, resolveOptions as resolveOptions$1 } from "@storm-software/tsup";
|
|
5
8
|
import defu from "defu";
|
|
6
9
|
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["resolveOptionsBase"],"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 {\n build,\n resolveOptions as resolveOptionsBase\n} from \"@storm-software/tsup\";\nimport defu from \"defu\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createTsupPlugin } from \"./helpers/unplugin\";\nimport {\n TsupPluginContext,\n TsupPluginOptions,\n TsupPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to use Tsup to build the project.\n */\nexport const plugin = <TContext extends TsupPluginContext = TsupPluginContext>(\n options: TsupPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsup\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `tsup` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsup: {\n ...options\n }\n } as Partial<TsupPluginResolvedConfig>;\n },\n async build() {\n return build(\n await resolveOptionsBase(\n defu(resolveOptions(this), {\n esbuildPlugins: [createTsupPlugin(this)]\n })\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["resolveOptionsBase"],"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 {\n build,\n resolveOptions as resolveOptionsBase\n} from \"@storm-software/tsup\";\nimport defu from \"defu\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createTsupPlugin } from \"./helpers/unplugin\";\nimport {\n TsupPluginContext,\n TsupPluginOptions,\n TsupPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to use Tsup to build the project.\n */\nexport const plugin = <TContext extends TsupPluginContext = TsupPluginContext>(\n options: TsupPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsup\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `tsup` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsup: {\n ...options\n }\n } as Partial<TsupPluginResolvedConfig>;\n },\n async build() {\n return build(\n await resolveOptionsBase(\n defu(resolveOptions(this), {\n esbuildPlugins: [createTsupPlugin(this)]\n })\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAsCA,MAAa,UACX,UAA6B,EAAE,KACV;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,0EACD;AAED,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,MAAM,EACJ,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,UAAO,MACL,MAAMA,iBACJ,KAAK,eAAe,KAAK,EAAE,EACzB,gBAAgB,CAAC,iBAAiB,KAAK,CAAC,EACzC,CAAC,CACH,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as TsupOptions } from "./build-C-zKo4UO.cjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type TsupPluginOptions = Partial<TsupOptions>;
|
|
6
|
+
interface TsupPluginUserConfig extends UserConfig {
|
|
7
|
+
tsup?: TsupPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface TsupPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
tsup: TsupOptions;
|
|
11
|
+
}
|
|
12
|
+
type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩTsupPluginOptions = any[];
|
|
14
|
+
declare type __ΩTsupPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩTsupPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩTsupPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __ΩTsupPluginContext as a, __ΩTsupPluginUserConfig as c, TsupPluginUserConfig as i, TsupPluginOptions as n, __ΩTsupPluginOptions as o, TsupPluginResolvedConfig as r, __ΩTsupPluginResolvedConfig as s, TsupPluginContext as t };
|
|
19
|
+
//# sourceMappingURL=plugin-BUuY_bKp.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BUuY_bKp.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAyBY,iBAAA,GAAoB,QAAQ;UAEvB,oBAAA,SAA6B;EAFlC,IAAA,CAAA,EAGH,iBAHoB;AAE7B;AAIiB,UAAA,wBAAA,SAAiC,cAAA,CAAA;EAItC,IAAA,EAHJ,WAGI;;AACyC,KADzC,iBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,aADiD,CACnC,eADmC,CAAA;AACnC,oCAAA,GAAA,EAAA;AAAd,uCAAA,GAAA,EAAA;AAAa,2CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as TsupOptions } from "./build-D6oFtT4i.mjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core/types";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type TsupPluginOptions = Partial<TsupOptions>;
|
|
6
|
+
interface TsupPluginUserConfig extends UserConfig {
|
|
7
|
+
tsup?: TsupPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface TsupPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
tsup: TsupOptions;
|
|
11
|
+
}
|
|
12
|
+
type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩTsupPluginOptions = any[];
|
|
14
|
+
declare type __ΩTsupPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩTsupPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩTsupPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __ΩTsupPluginContext as a, __ΩTsupPluginUserConfig as c, TsupPluginUserConfig as i, TsupPluginOptions as n, __ΩTsupPluginOptions as o, TsupPluginResolvedConfig as r, __ΩTsupPluginResolvedConfig as s, TsupPluginContext as t };
|
|
19
|
+
//# sourceMappingURL=plugin-D0kb_w4D.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-D0kb_w4D.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAyBY,iBAAA,GAAoB,QAAQ;UAEvB,oBAAA,SAA6B;EAFlC,IAAA,CAAA,EAGH,iBAHoB;AAE7B;AAIiB,UAAA,wBAAA,SAAiC,cAAA,CAAA;EAItC,IAAA,EAHJ,WAGI;;AACyC,KADzC,iBACyC,CAAA,wBAA3B,wBAA2B,GAAA,wBAAA,CAAA,GACjD,aADiD,CACnC,eADmC,CAAA;AACnC,oCAAA,GAAA,EAAA;AAAd,uCAAA,GAAA,EAAA;AAAa,2CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as TsupOptions } from "./build-D6oFtT4i.mjs";
|
|
2
|
+
import { resolveOptions } from "@storm-software/tsup";
|
|
3
|
+
import { Context, ResolvedEntryTypeDefinition } from "@powerlines/core/types";
|
|
4
|
+
import { Entry } from "@storm-software/build-tools/types";
|
|
5
|
+
|
|
6
|
+
//#region src/helpers/resolve-options.d.ts
|
|
7
|
+
declare const DEFAULT_TSUP_CONFIG: Partial<TsupOptions>;
|
|
8
|
+
/**
|
|
9
|
+
* Resolves the entry options for [tsup](https://github.com/egoist/tsup).
|
|
10
|
+
*
|
|
11
|
+
* @param context - The build context.
|
|
12
|
+
* @param entryPoints - The entry points to resolve.
|
|
13
|
+
* @returns The resolved entry options.
|
|
14
|
+
*/
|
|
15
|
+
declare function resolveEntry(context: Context, entryPoints: ResolvedEntryTypeDefinition[] | string[]): Entry;
|
|
16
|
+
/**
|
|
17
|
+
* Resolves the options for [tsup](https://github.com/egoist/tsup).
|
|
18
|
+
*
|
|
19
|
+
* @param context - The build context.
|
|
20
|
+
* @returns The resolved options.
|
|
21
|
+
*/
|
|
22
|
+
declare function resolveOptions$1(context: Context): Parameters<typeof resolveOptions>[0];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { resolveEntry as n, resolveOptions$1 as r, DEFAULT_TSUP_CONFIG as t };
|
|
25
|
+
//# sourceMappingURL=resolve-options-A50LA11B.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-A50LA11B.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;cA8Ba,qBAAqB,QAAQ;;AAA1C;AAwBA;;;;;AAyBgB,iBAzBA,YAAA,CAyBc,OAAA,EAxBnB,OAwBmB,EAAA,WAAA,EAvBf,2BAuBe,EAAA,GAAA,MAAA,EAAA,CAAA,EAtB3B,KAsB2B;;;;;;;iBAAd,gBAAA,UACL,UACR,kBAAkB"}
|