@powerlines/plugin-tsup 0.12.496 → 0.12.498
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/index.cjs +2 -3
- package/dist/index.d.cts +3 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -26,13 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
}) : target, mod));
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
|
-
require('./types/index.cjs');
|
|
30
29
|
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
31
|
-
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
32
30
|
let _powerlines_unplugin_tsup = require("@powerlines/unplugin/tsup");
|
|
33
31
|
let _storm_software_tsup = require("@storm-software/tsup");
|
|
34
32
|
let defu = require("defu");
|
|
35
33
|
defu = __toESM(defu, 1);
|
|
34
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
36
35
|
let unplugin = require("unplugin");
|
|
37
36
|
|
|
38
37
|
//#region src/index.ts
|
|
@@ -62,7 +61,7 @@ const plugin = (options = {}) => {
|
|
|
62
61
|
}));
|
|
63
62
|
this.debug({
|
|
64
63
|
meta: { category: "config" },
|
|
65
|
-
message: `Resolved Tsup configuration: \n${(0,
|
|
64
|
+
message: `Resolved Tsup configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
|
|
66
65
|
});
|
|
67
66
|
return (0, _storm_software_tsup.build)(options);
|
|
68
67
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩTsupOptions, t as TsupOptions } from "./build-MBkBmIxx.cjs";
|
|
2
2
|
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
-
import { Plugin } from "
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "powerlines" {
|
|
7
7
|
interface Config {
|
|
8
8
|
tsup?: TsupPluginOptions;
|
|
9
9
|
}
|
|
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { TsupOptions, TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupOptions, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, plugin as default, plugin };
|
|
16
|
+
export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, type __ΩTsupOptions, type __ΩTsupPluginContext, type __ΩTsupPluginOptions, type __ΩTsupPluginResolvedConfig, type __ΩTsupPluginUserConfig, plugin as default, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,iBAAiB;EAAA;AAAA;;;;cAOf,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩTsupOptions, t as TsupOptions } from "./build-D4pj3EFA.mjs";
|
|
2
2
|
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
-
import { Plugin } from "
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "powerlines" {
|
|
7
7
|
interface Config {
|
|
8
8
|
tsup?: TsupPluginOptions;
|
|
9
9
|
}
|
|
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { TsupOptions, TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupOptions, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, plugin as default, plugin };
|
|
16
|
+
export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, type __ΩTsupOptions, type __ΩTsupPluginContext, type __ΩTsupPluginOptions, type __ΩTsupPluginResolvedConfig, type __ΩTsupPluginUserConfig, plugin as default, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,iBAAiB;EAAA;AAAA;;;;cAOf,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./types/index.mjs";
|
|
2
1
|
import { createUnplugin } from "@powerlines/core/lib/unplugin";
|
|
3
|
-
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
4
2
|
import { resolveOptions } from "@powerlines/unplugin/tsup";
|
|
5
3
|
import { build, resolveOptions as resolveOptions$1 } from "@storm-software/tsup";
|
|
6
4
|
import defu from "defu";
|
|
5
|
+
import { formatConfig } from "powerlines/plugin-utils";
|
|
7
6
|
import { createEsbuildPlugin } from "unplugin";
|
|
8
7
|
|
|
9
8
|
//#region src/index.ts
|
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 {
|
|
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 { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { resolveOptions } from \"@powerlines/unplugin/tsup\";\nimport type { BuildOptions } from \"@storm-software/tsup\";\nimport {\n build,\n resolveOptions as resolveOptionsBase\n} from \"@storm-software/tsup\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport type { Options } from \"tsup\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport type { TsupPluginContext, TsupPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\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 };\n },\n async build() {\n this.debug(\"Starting Tsup build process...\");\n\n const resolved = resolveOptions(this);\n const options = resolveOptionsBase(\n defu(this.config.tsup, {\n ...resolved,\n config: false,\n esbuildPlugins: [\n createEsbuildPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"tsup\"\n })\n )()\n ]\n }) as BuildOptions\n ) as Options;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsup configuration: \\n${formatConfig(options)}`\n });\n\n return build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA2CA,MAAa,UACX,UAA6B,CAAC,MACT;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,yEACF;GAEA,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,MAAM,EACJ,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,gCAAgC;GAE3C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAUA,iBACd,KAAK,KAAK,OAAO,MAAM;IACrB,GAAG;IACH,QAAQ;IACR,gBAAgB,CACd,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC,CACH;GAEA,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,kCAAkC,aAAa,OAAO;GACjE,CAAC;GAED,OAAO,MAAM,OAAO;EACtB;CACF;AACF"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsupOptions } from "../build-MBkBmIxx.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type TsupPluginOptions = Partial<TsupOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,OAAO,CAAC,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAU;EACtD,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAc;EAC9D,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TsupOptions } from "../build-D4pj3EFA.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type TsupPluginOptions = Partial<TsupOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,OAAO,CAAC,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAU;EACtD,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAc;EAC9D,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsup",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.498",
|
|
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.15.
|
|
77
|
-
"@powerlines/unplugin": "^0.0.
|
|
76
|
+
"@powerlines/core": "^0.15.19",
|
|
77
|
+
"@powerlines/unplugin": "^0.0.34",
|
|
78
78
|
"@storm-software/build-tools": "^0.158.180",
|
|
79
79
|
"@stryke/convert": "^0.7.7",
|
|
80
80
|
"@stryke/helpers": "^0.10.16",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"@stryke/type-checks": "^0.6.9",
|
|
83
83
|
"@stryke/types": "^0.12.4",
|
|
84
84
|
"defu": "^6.1.7",
|
|
85
|
+
"powerlines": "^0.47.41",
|
|
85
86
|
"unplugin": "^3.0.0"
|
|
86
87
|
},
|
|
87
88
|
"devDependencies": {
|
|
@@ -95,5 +96,5 @@
|
|
|
95
96
|
"tsup": { "optional": false }
|
|
96
97
|
},
|
|
97
98
|
"publishConfig": { "access": "public" },
|
|
98
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
99
100
|
}
|