@powerlines/plugin-tsup 0.12.311 → 0.12.312
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/index.d.cts +3 -3
- package/dist/helpers/index.d.mts +3 -3
- package/dist/helpers/resolve-options.d.cts +2 -2
- package/dist/helpers/resolve-options.d.mts +2 -2
- package/dist/helpers/unplugin.d.cts +2 -2
- package/dist/helpers/unplugin.d.mts +2 -2
- package/dist/index.d.cts +9 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-D0kb_w4D.d.mts → plugin-BwRFBQum.d.mts} +2 -2
- package/dist/{plugin-BUuY_bKp.d.cts.map → plugin-BwRFBQum.d.mts.map} +1 -1
- package/dist/{plugin-BUuY_bKp.d.cts → plugin-C6Asuy6i.d.cts} +2 -2
- package/dist/{plugin-D0kb_w4D.d.mts.map → plugin-C6Asuy6i.d.cts.map} +1 -1
- package/dist/{resolve-options-CaiF-bem.d.cts → resolve-options-BR8kC4Vx.d.cts} +2 -2
- package/dist/{resolve-options-A50LA11B.d.mts.map → resolve-options-BR8kC4Vx.d.cts.map} +1 -1
- package/dist/resolve-options-DvCBX8Wl.mjs.map +1 -1
- package/dist/{resolve-options-A50LA11B.d.mts → resolve-options-GFSAsRe4.d.mts} +2 -2
- package/dist/{resolve-options-CaiF-bem.d.cts.map → resolve-options-GFSAsRe4.d.mts.map} +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/{unplugin-BNAHDEmx.d.cts → unplugin-1qJrQ8kB.d.mts} +2 -2
- package/dist/unplugin-1qJrQ8kB.d.mts.map +1 -0
- package/dist/{unplugin-DHNZtPIJ.d.mts → unplugin-BojCyphB.d.cts} +2 -2
- package/dist/unplugin-BojCyphB.d.cts.map +1 -0
- package/package.json +4 -4
- package/dist/unplugin-BNAHDEmx.d.cts.map +0 -1
- package/dist/unplugin-DHNZtPIJ.d.mts.map +0 -1
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../build-C-zKo4UO.cjs";
|
|
2
|
-
import "../plugin-
|
|
2
|
+
import "../plugin-C6Asuy6i.cjs";
|
|
3
3
|
import "../index-D4ELpJXS.cjs";
|
|
4
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-
|
|
5
|
-
import { t as createTsupPlugin } from "../unplugin-
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-BR8kC4Vx.cjs";
|
|
5
|
+
import { t as createTsupPlugin } from "../unplugin-BojCyphB.cjs";
|
|
6
6
|
import "../index-B_e8BwCm.cjs";
|
|
7
7
|
export { DEFAULT_TSUP_CONFIG, createTsupPlugin, resolveEntry, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../build-D6oFtT4i.mjs";
|
|
2
|
-
import "../plugin-
|
|
2
|
+
import "../plugin-BwRFBQum.mjs";
|
|
3
3
|
import "../index-2Ag-54t8.mjs";
|
|
4
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-
|
|
5
|
-
import { t as createTsupPlugin } from "../unplugin-
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-GFSAsRe4.mjs";
|
|
5
|
+
import { t as createTsupPlugin } from "../unplugin-1qJrQ8kB.mjs";
|
|
6
6
|
import "../index-Cc7fCJU9.mjs";
|
|
7
7
|
export { DEFAULT_TSUP_CONFIG, createTsupPlugin, resolveEntry, resolveOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../build-C-zKo4UO.cjs";
|
|
2
|
-
import "../plugin-
|
|
2
|
+
import "../plugin-C6Asuy6i.cjs";
|
|
3
3
|
import "../index-D4ELpJXS.cjs";
|
|
4
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-BR8kC4Vx.cjs";
|
|
5
5
|
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../build-D6oFtT4i.mjs";
|
|
2
|
-
import "../plugin-
|
|
2
|
+
import "../plugin-BwRFBQum.mjs";
|
|
3
3
|
import "../index-2Ag-54t8.mjs";
|
|
4
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "../resolve-options-GFSAsRe4.mjs";
|
|
5
5
|
export { DEFAULT_TSUP_CONFIG, resolveEntry, resolveOptions };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
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-
|
|
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-C6Asuy6i.cjs";
|
|
3
3
|
import "./index-D4ELpJXS.cjs";
|
|
4
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-
|
|
5
|
-
import { t as createTsupPlugin } from "./unplugin-
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-BR8kC4Vx.cjs";
|
|
5
|
+
import { t as createTsupPlugin } from "./unplugin-BojCyphB.cjs";
|
|
6
6
|
import "./index-B_e8BwCm.cjs";
|
|
7
|
-
import { Plugin } from "@powerlines/core
|
|
7
|
+
import { Plugin } from "@powerlines/core";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
tsup?: TsupPluginOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* A Powerlines plugin to use Tsup to build the project.
|
|
12
17
|
*/
|
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":";;;;;;;;;;;WAqCW;;;AAJa;;;AAII,cAOf,MAPe,EAAA,CAAA,iBAOY,iBAPZ,GAOgC,iBAPhC,CAAA,CAAA,OAAA,CAAA,EAQjB,iBARiB,EAAA,GASzB,MATyB,CASlB,QATkB,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
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-
|
|
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-BwRFBQum.mjs";
|
|
3
3
|
import "./index-2Ag-54t8.mjs";
|
|
4
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-
|
|
5
|
-
import { t as createTsupPlugin } from "./unplugin-
|
|
4
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_TSUP_CONFIG } from "./resolve-options-GFSAsRe4.mjs";
|
|
5
|
+
import { t as createTsupPlugin } from "./unplugin-1qJrQ8kB.mjs";
|
|
6
6
|
import "./index-Cc7fCJU9.mjs";
|
|
7
|
-
import { Plugin } from "@powerlines/core
|
|
7
|
+
import { Plugin } from "@powerlines/core";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
tsup?: TsupPluginOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* A Powerlines plugin to use Tsup to build the project.
|
|
12
17
|
*/
|
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":";;;;;;;;;;;WAqCW;;;AAJa;;;AAII,cAOf,MAPe,EAAA,CAAA,iBAOY,iBAPZ,GAOgC,iBAPhC,CAAA,CAAA,OAAA,CAAA,EAQjB,iBARiB,EAAA,GASzB,MATyB,CASlB,QATkB,CAAA"}
|
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
|
|
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\";\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\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n tsup?: TsupPluginOptions;\n }\n}\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":";;;;;;;;;;;;;AA4CA,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsupOptions } from "./build-D6oFtT4i.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type TsupPluginOptions = Partial<TsupOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩTsupPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩTsupPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
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-
|
|
19
|
+
//# sourceMappingURL=plugin-BwRFBQum.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-BwRFBQum.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsupOptions } from "./build-C-zKo4UO.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type TsupPluginOptions = Partial<TsupOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩTsupPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩTsupPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
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-
|
|
19
|
+
//# sourceMappingURL=plugin-C6Asuy6i.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-C6Asuy6i.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsupOptions } from "./build-C-zKo4UO.cjs";
|
|
2
|
-
import { Context, ResolvedEntryTypeDefinition } from "@powerlines/core
|
|
2
|
+
import { Context, ResolvedEntryTypeDefinition } from "@powerlines/core";
|
|
3
3
|
import { Entry } from "@storm-software/build-tools/types";
|
|
4
4
|
import { resolveOptions } from "@storm-software/tsup";
|
|
5
5
|
|
|
@@ -22,4 +22,4 @@ declare function resolveEntry(context: Context, entryPoints: ResolvedEntryTypeDe
|
|
|
22
22
|
declare function resolveOptions$1(context: Context): Parameters<typeof resolveOptions>[0];
|
|
23
23
|
//#endregion
|
|
24
24
|
export { resolveEntry as n, resolveOptions$1 as r, DEFAULT_TSUP_CONFIG as t };
|
|
25
|
-
//# sourceMappingURL=resolve-options-
|
|
25
|
+
//# sourceMappingURL=resolve-options-BR8kC4Vx.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-BR8kC4Vx.d.cts","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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-DvCBX8Wl.mjs","names":["DEFAULT_TSUP_CONFIG: Partial<TsupOptions>","resolveEntry","resolveEsbuildEntry"],"sources":["../src/helpers/resolve-options.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 { Context, ResolvedEntryTypeDefinition } from \"@powerlines/core
|
|
1
|
+
{"version":3,"file":"resolve-options-DvCBX8Wl.mjs","names":["DEFAULT_TSUP_CONFIG: Partial<TsupOptions>","resolveEntry","resolveEsbuildEntry"],"sources":["../src/helpers/resolve-options.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 { Context, ResolvedEntryTypeDefinition } from \"@powerlines/core\";\nimport { resolveEntry as resolveEsbuildEntry } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { AssetGlob, Entry } from \"@storm-software/build-tools/types\";\nimport { resolveOptions as resolveOptionsBase } from \"@storm-software/tsup\";\nimport { DEFAULT_BUILD_OPTIONS } from \"@storm-software/tsup/constants\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { getUnique } from \"@stryke/helpers/get-unique\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport { Options } from \"tsup\";\nimport { TsupOptions, TsupPluginResolvedConfig } from \"../types\";\n\nexport const DEFAULT_TSUP_CONFIG: Partial<TsupOptions> = {\n ...DEFAULT_BUILD_OPTIONS,\n target: \"esnext\",\n config: false,\n minify: true,\n sourcemap: false,\n cjsInterop: true,\n bundle: true,\n dts: true,\n shims: true,\n silent: true,\n treeshake: true,\n keepNames: true,\n splitting: true,\n banner: {}\n};\n\n/**\n * Resolves the entry options for [tsup](https://github.com/egoist/tsup).\n *\n * @param context - The build context.\n * @param entryPoints - The entry points to resolve.\n * @returns The resolved entry options.\n */\nexport function resolveEntry(\n context: Context,\n entryPoints: ResolvedEntryTypeDefinition[] | string[]\n): Entry {\n return resolveEsbuildEntry(context, entryPoints) as Entry;\n}\n\ntype TsupEsbuildOptionsHandler = NonNullable<Options[\"esbuildOptions\"]>;\ntype TsupEsbuildOptionsArgs = Parameters<TsupEsbuildOptionsHandler>;\ntype TsupEsbuildOptions = TsupEsbuildOptionsArgs[0];\ntype TsupEsbuildContext = TsupEsbuildOptionsArgs[1];\n\ninterface TsupResolvedBuildConfig extends Options {\n esbuildOptions?: TsupEsbuildOptionsHandler;\n workspaceConfig?: {\n workspaceRoot: string;\n };\n}\n\n/**\n * Resolves the options for [tsup](https://github.com/egoist/tsup).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(\n context: Context\n): Parameters<typeof resolveOptionsBase>[0] {\n const result = defu(\n {\n entry: Object.fromEntries(\n Object.entries(resolveEntry(context, context.entry)).map(\n ([key, value]) => [key, appendPath(value, context.config.root)]\n )\n ),\n esbuildOptions: ((\n options: TsupEsbuildOptions,\n ctx: TsupEsbuildContext\n ) => {\n if ((context.config as TsupPluginResolvedConfig).tsup?.esbuildOptions) {\n (context.config as TsupPluginResolvedConfig).tsup?.esbuildOptions?.(\n options,\n ctx\n );\n }\n\n options.alias = {\n ...context.alias,\n ...context.builtins.reduce(\n (ret, id) => {\n const path = context.fs.paths[id];\n if (path) {\n ret[id] = path;\n }\n\n return ret;\n },\n {} as Record<string, string>\n ),\n ...options.alias\n };\n }) as TsupResolvedBuildConfig[\"esbuildOptions\"],\n noExternal: context.builtins\n },\n (context.config as TsupPluginResolvedConfig).tsup\n ? (context.config as TsupPluginResolvedConfig).tsup\n : {},\n {\n name: context.config.name,\n root: context.config.root,\n projectRoot: context.config.root,\n assets: context.config.output.assets as (string | AssetGlob)[],\n resolveExtensions: context.config.resolve.extensions,\n outputPath: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n dts:\n (context.config as TsupPluginResolvedConfig).tsup &&\n !(context.config as TsupPluginResolvedConfig).tsup?.experimentalDts\n ? {\n compilerOptions: context.tsconfig.tsconfigJson.compilerOptions\n }\n : undefined,\n format: context.config.output.format,\n mode: context.config.mode,\n treeshake: (context.config as TsupPluginResolvedConfig).tsup\n ? (context.config as TsupPluginResolvedConfig).tsup?.treeshake\n : undefined,\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\",\n silent:\n context.config.logLevel === null ||\n context.config.mode === \"production\",\n verbose:\n context.config.logLevel === null ||\n context.config.logLevel === \"trace\" ||\n context.config.mode === \"development\",\n workspaceConfig: { workspaceRoot: context.workspaceConfig.workspaceRoot }\n },\n DEFAULT_TSUP_CONFIG\n );\n\n result.format = getUnique(toArray(result.format));\n return result;\n}\n"],"mappings":";;;;;;;;AA8BA,MAAaA,sBAA4C;CACvD,GAAG;CACH,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,KAAK;CACL,OAAO;CACP,QAAQ;CACR,WAAW;CACX,WAAW;CACX,WAAW;CACX,QAAQ,EAAE;CACX;;;;;;;;AASD,SAAgBC,eACd,SACA,aACO;AACP,QAAOC,aAAoB,SAAS,YAAY;;;;;;;;AAqBlD,SAAgB,eACd,SAC0C;CAC1C,MAAM,SAAS,KACb;EACE,OAAO,OAAO,YACZ,OAAO,QAAQD,eAAa,SAAS,QAAQ,MAAM,CAAC,CAAC,KAClD,CAAC,KAAK,WAAW,CAAC,KAAK,WAAW,OAAO,QAAQ,OAAO,KAAK,CAAC,CAChE,CACF;EACD,kBACE,SACA,QACG;AACH,OAAK,QAAQ,OAAoC,MAAM,eACrD,CAAC,QAAQ,OAAoC,MAAM,iBACjD,SACA,IACD;AAGH,WAAQ,QAAQ;IACd,GAAG,QAAQ;IACX,GAAG,QAAQ,SAAS,QACjB,KAAK,OAAO;KACX,MAAM,OAAO,QAAQ,GAAG,MAAM;AAC9B,SAAI,KACF,KAAI,MAAM;AAGZ,YAAO;OAET,EAAE,CACH;IACD,GAAG,QAAQ;IACZ;;EAEH,YAAY,QAAQ;EACrB,EACA,QAAQ,OAAoC,OACxC,QAAQ,OAAoC,OAC7C,EAAE,EACN;EACE,MAAM,QAAQ,OAAO;EACrB,MAAM,QAAQ,OAAO;EACrB,aAAa,QAAQ,OAAO;EAC5B,QAAQ,QAAQ,OAAO,OAAO;EAC9B,mBAAmB,QAAQ,OAAO,QAAQ;EAC1C,YAAY,QAAQ,OAAO,OAAO;EAClC,UAAU,QAAQ,SAAS;EAC3B,KACG,QAAQ,OAAoC,QAC7C,CAAE,QAAQ,OAAoC,MAAM,kBAChD,EACE,iBAAiB,QAAQ,SAAS,aAAa,iBAChD,GACD;EACN,QAAQ,QAAQ,OAAO,OAAO;EAC9B,MAAM,QAAQ,OAAO;EACrB,WAAY,QAAQ,OAAoC,OACnD,QAAQ,OAAoC,MAAM,YACnD;EACJ,QAAQ,QAAQ,OAAO,SAAS;EAChC,UAAU,QAAQ,OAAO,SAAS;EAClC,WAAW,QAAQ,OAAO,SAAS;EACnC,QACE,QAAQ,OAAO,aAAa,QAC5B,QAAQ,OAAO,SAAS;EAC1B,SACE,QAAQ,OAAO,aAAa,QAC5B,QAAQ,OAAO,aAAa,WAC5B,QAAQ,OAAO,SAAS;EAC1B,iBAAiB,EAAE,eAAe,QAAQ,gBAAgB,eAAe;EAC1E,EACD,oBACD;AAED,QAAO,SAAS,UAAU,QAAQ,OAAO,OAAO,CAAC;AACjD,QAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as TsupOptions } from "./build-D6oFtT4i.mjs";
|
|
2
2
|
import { resolveOptions } from "@storm-software/tsup";
|
|
3
|
-
import { Context, ResolvedEntryTypeDefinition } from "@powerlines/core
|
|
3
|
+
import { Context, ResolvedEntryTypeDefinition } from "@powerlines/core";
|
|
4
4
|
import { Entry } from "@storm-software/build-tools/types";
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/resolve-options.d.ts
|
|
@@ -22,4 +22,4 @@ declare function resolveEntry(context: Context, entryPoints: ResolvedEntryTypeDe
|
|
|
22
22
|
declare function resolveOptions$1(context: Context): Parameters<typeof resolveOptions>[0];
|
|
23
23
|
//#endregion
|
|
24
24
|
export { resolveEntry as n, resolveOptions$1 as r, DEFAULT_TSUP_CONFIG as t };
|
|
25
|
-
//# sourceMappingURL=resolve-options-
|
|
25
|
+
//# sourceMappingURL=resolve-options-GFSAsRe4.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-GFSAsRe4.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"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
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-
|
|
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-C6Asuy6i.cjs";
|
|
3
3
|
import "../index-D4ELpJXS.cjs";
|
|
4
4
|
export { TsupOptions, TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupOptions, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
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-
|
|
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-BwRFBQum.mjs";
|
|
3
3
|
import "../index-2Ag-54t8.mjs";
|
|
4
4
|
export { TsupOptions, TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupOptions, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../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-
|
|
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-C6Asuy6i.cjs";
|
|
3
3
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../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-
|
|
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-BwRFBQum.mjs";
|
|
3
3
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TsupPluginContext } from "./plugin-
|
|
1
|
+
import { t as TsupPluginContext } from "./plugin-BwRFBQum.mjs";
|
|
2
2
|
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createTsupPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-1qJrQ8kB.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-1qJrQ8kB.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TsupPluginContext } from "./plugin-
|
|
1
|
+
import { t as TsupPluginContext } from "./plugin-C6Asuy6i.cjs";
|
|
2
2
|
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createTsupPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-BojCyphB.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-BojCyphB.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsup",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.312",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["tsup", "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.0
|
|
77
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
76
|
+
"@powerlines/core": "^0.1.0",
|
|
77
|
+
"@powerlines/plugin-esbuild": "^0.13.311",
|
|
78
78
|
"@storm-software/build-tools": "^0.158.91",
|
|
79
79
|
"@stryke/convert": "^0.6.40",
|
|
80
80
|
"@stryke/helpers": "^0.9.42",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"tsup": { "optional": false }
|
|
96
96
|
},
|
|
97
97
|
"publishConfig": { "access": "public" },
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
|
|
99
99
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-BNAHDEmx.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-DHNZtPIJ.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|