@powerlines/plugin-tsup 0.12.247 → 0.12.249
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.cjs +3 -2
- package/dist/helpers/index.d.cts +3 -1
- package/dist/helpers/index.d.mts +3 -1
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers/unplugin.cjs +2 -10
- package/dist/helpers/unplugin.d.cts +2 -6
- package/dist/helpers/unplugin.d.mts +2 -6
- package/dist/helpers/unplugin.mjs +1 -8
- package/dist/helpers-B15z10jN.mjs +1 -0
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-9iG2qHLe.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DL0uimUT.d.mts +1 -0
- package/dist/index.cjs +35 -6
- package/dist/index.d.cts +6 -5
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +6 -5
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-Dlslt7Cx.d.cts +17 -0
- package/dist/plugin-Dlslt7Cx.d.cts.map +1 -0
- package/dist/plugin-ifZVa20V.mjs +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/plugin-yZdu54RB.d.mts +17 -0
- package/dist/plugin-yZdu54RB.d.mts.map +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -15
- package/dist/types/plugin.d.mts +1 -15
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-U3zd8PTP.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-BiuVZTPz.d.cts +8 -0
- package/dist/unplugin-BiuVZTPz.d.cts.map +1 -0
- package/dist/unplugin-CeWxRT5f.d.mts +8 -0
- package/dist/unplugin-CeWxRT5f.d.mts.map +1 -0
- package/dist/unplugin-Cowq2Wte.mjs +11 -0
- package/dist/unplugin-Cowq2Wte.mjs.map +1 -0
- package/dist/unplugin-xBBj8hW5.cjs +16 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_unplugin = require('../unplugin-xBBj8hW5.cjs');
|
|
2
|
+
require('../helpers-LF26RHol.cjs');
|
|
2
3
|
|
|
3
|
-
exports.createTsupPlugin =
|
|
4
|
+
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
-
let unplugin = require("unplugin");
|
|
1
|
+
const require_unplugin = require('../unplugin-xBBj8hW5.cjs');
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
function createTsupPlugin(context) {
|
|
7
|
-
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.createTsupPlugin = createTsupPlugin;
|
|
3
|
+
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-Dlslt7Cx.cjs";
|
|
2
|
+
import { t as createTsupPlugin } from "../unplugin-BiuVZTPz.cjs";
|
|
7
3
|
export { createTsupPlugin };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
|
-
//#endregion
|
|
1
|
+
import "../plugin-yZdu54RB.mjs";
|
|
2
|
+
import { t as createTsupPlugin } from "../unplugin-CeWxRT5f.mjs";
|
|
7
3
|
export { createTsupPlugin };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
1
|
+
import { t as createTsupPlugin } from "../unplugin-Cowq2Wte.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/helpers/unplugin.ts
|
|
5
|
-
function createTsupPlugin(context) {
|
|
6
|
-
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
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,39 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
const require_unplugin = require('./unplugin-xBBj8hW5.cjs');
|
|
30
|
+
require('./helpers-LF26RHol.cjs');
|
|
31
|
+
require('./plugin-pBKbb5K9.cjs');
|
|
32
|
+
require('./types-o3zWarRp.cjs');
|
|
5
33
|
let __storm_software_tsup = require("@storm-software/tsup");
|
|
6
34
|
let __stryke_path_append = require("@stryke/path/append");
|
|
7
35
|
let defu = require("defu");
|
|
8
|
-
defu =
|
|
36
|
+
defu = __toESM(defu);
|
|
9
37
|
let powerlines_lib_build_tsup = require("powerlines/lib/build/tsup");
|
|
10
38
|
|
|
11
39
|
//#region src/index.ts
|
|
@@ -44,13 +72,14 @@ const plugin = (options = {}) => {
|
|
|
44
72
|
},
|
|
45
73
|
silent: false,
|
|
46
74
|
verbose: true
|
|
47
|
-
}, (0, powerlines_lib_build_tsup.extractTsupConfig)(this), { esbuildPlugins: [
|
|
75
|
+
}, (0, powerlines_lib_build_tsup.extractTsupConfig)(this), { esbuildPlugins: [require_unplugin.createTsupPlugin(this)] })));
|
|
48
76
|
}
|
|
49
77
|
};
|
|
50
78
|
};
|
|
51
79
|
var src_default = plugin;
|
|
52
80
|
|
|
53
81
|
//#endregion
|
|
54
|
-
exports.
|
|
82
|
+
exports.__toESM = __toESM;
|
|
83
|
+
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
|
55
84
|
exports.default = src_default;
|
|
56
85
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TsupPluginContext,
|
|
2
|
-
import { createTsupPlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
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-Dlslt7Cx.cjs";
|
|
2
|
+
import { t as createTsupPlugin } from "./unplugin-BiuVZTPz.cjs";
|
|
3
|
+
import "./index-D6CnpA_r.cjs";
|
|
4
|
+
import "./index-D4ELpJXS.cjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, createTsupPlugin, plugin as default, plugin };
|
|
13
|
+
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, createTsupPlugin, plugin as default, plugin };
|
|
14
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAqCa,cAAA,MAgFZ,EAAA,CAAA,iBAhFuC,iBAgFvC,GAhF2D,iBAgF3D,CAAA,CAAA,OAAA,CAAA,EA/EU,iBA+EV,EAAA,GA9EE,MA8EF,CA9ES,QA8ET,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TsupPluginContext,
|
|
2
|
-
import { createTsupPlugin } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
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-yZdu54RB.mjs";
|
|
2
|
+
import { t as createTsupPlugin } from "./unplugin-CeWxRT5f.mjs";
|
|
3
|
+
import "./index-DL0uimUT.mjs";
|
|
4
|
+
import "./index-9iG2qHLe.mjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, createTsupPlugin, plugin as default, plugin };
|
|
13
|
+
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, createTsupPlugin, plugin as default, plugin };
|
|
14
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAqCa,cAAA,MAgFZ,EAAA,CAAA,iBAhFuC,iBAgFvC,GAhF2D,iBAgF3D,CAAA,CAAA,OAAA,CAAA,EA/EU,iBA+EV,EAAA,GA9EE,MA8EF,CA9ES,QA8ET,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { createTsupPlugin } from "./
|
|
2
|
-
import "./helpers
|
|
1
|
+
import { t as createTsupPlugin } from "./unplugin-Cowq2Wte.mjs";
|
|
2
|
+
import "./helpers-B15z10jN.mjs";
|
|
3
|
+
import "./plugin-ifZVa20V.mjs";
|
|
4
|
+
import "./types-U3zd8PTP.mjs";
|
|
3
5
|
import { build, resolveOptions } from "@storm-software/tsup";
|
|
4
6
|
import { appendPath } from "@stryke/path/append";
|
|
5
7
|
import defu from "defu";
|
|
@@ -48,4 +50,5 @@ const plugin = (options = {}) => {
|
|
|
48
50
|
var src_default = plugin;
|
|
49
51
|
|
|
50
52
|
//#endregion
|
|
51
|
-
export { createTsupPlugin, src_default as default, plugin };
|
|
53
|
+
export { createTsupPlugin, src_default as default, plugin };
|
|
54
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["options"],"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 { build, resolveOptions } from \"@storm-software/tsup\";\nimport { appendPath } from \"@stryke/path/append\";\nimport defu from \"defu\";\nimport { extractTsupConfig, resolveTsupEntry } from \"powerlines/lib/build/tsup\";\nimport { TsupResolvedBuildConfig } from \"powerlines/types/build\";\nimport { Plugin } from \"powerlines/types/plugin\";\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 build: {\n ...options,\n variant: \"tsup\"\n }\n } as Partial<TsupPluginResolvedConfig>;\n },\n async build() {\n return build(\n await resolveOptions(\n defu(\n {\n config: false,\n entry: Object.fromEntries(\n Object.entries(resolveTsupEntry(this, this.entry)).map(\n ([key, value]) => [\n key,\n appendPath(value, this.config.projectRoot)\n ]\n )\n ),\n esbuildOptions: (options, ctx) => {\n if (this.config.build.variant === \"tsup\") {\n if (\n (\n this.config.build as Omit<\n TsupResolvedBuildConfig,\n \"projectRoot\"\n >\n ).esbuildOptions\n ) {\n (\n this.config.build as Omit<\n TsupResolvedBuildConfig,\n \"projectRoot\"\n >\n ).esbuildOptions?.(options, ctx);\n }\n }\n\n options.alias = {\n ...this.builtins.reduce(\n (ret, id) => {\n const path = this.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 },\n silent: false,\n verbose: true\n },\n extractTsupConfig(this),\n {\n esbuildPlugins: [createTsupPlugin(this)]\n }\n )\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAqCA,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,OAAO;KACL,GAAG;KACH,SAAS;KACV;IACF;;EAEH,MAAM,QAAQ;AACZ,UAAO,MACL,MAAM,eACJ,KACE;IACE,QAAQ;IACR,OAAO,OAAO,YACZ,OAAO,QAAQ,iBAAiB,MAAM,KAAK,MAAM,CAAC,CAAC,KAChD,CAAC,KAAK,WAAW,CAChB,KACA,WAAW,OAAO,KAAK,OAAO,YAAY,CAC3C,CACF,CACF;IACD,iBAAiB,WAAS,QAAQ;AAChC,SAAI,KAAK,OAAO,MAAM,YAAY,QAChC;UAEI,KAAK,OAAO,MAIZ,eAEF,CACE,KAAK,OAAO,MAIZ,iBAAiBA,WAAS,IAAI;;AAIpC,eAAQ,QAAQ;MACd,GAAG,KAAK,SAAS,QACd,KAAK,OAAO;OACX,MAAM,OAAO,KAAK,GAAG,MAAM;AAC3B,WAAI,KACF,KAAI,MAAM;AAGZ,cAAO;SAET,EAAE,CACH;MACD,GAAGA,UAAQ;MACZ;;IAEH,QAAQ;IACR,SAAS;IACV,EACD,kBAAkB,KAAK,EACvB,EACE,gBAAgB,CAAC,iBAAiB,KAAK,CAAC,EACzC,CACF,CACF,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TsupBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { TsupUserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { TsupResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type TsupPluginOptions = Partial<TsupBuildConfig>;
|
|
8
|
+
type TsupPluginUserConfig = TsupUserConfig;
|
|
9
|
+
type TsupPluginResolvedConfig = TsupResolvedConfig;
|
|
10
|
+
type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
11
|
+
declare type __ΩTsupPluginOptions = any[];
|
|
12
|
+
declare type __ΩTsupPluginUserConfig = any[];
|
|
13
|
+
declare type __ΩTsupPluginResolvedConfig = any[];
|
|
14
|
+
declare type __ΩTsupPluginContext = any[];
|
|
15
|
+
//#endregion
|
|
16
|
+
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 };
|
|
17
|
+
//# sourceMappingURL=plugin-Dlslt7Cx.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-Dlslt7Cx.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,iBAAA,GAAoB,QAAQ;KAE5B,oBAAA,GAAuB;AAFvB,KAIA,wBAAA,GAA2B,kBAJP;AAEpB,KAIA,iBAJoB,CAAA,wBAKN,wBALuB,GAKI,wBALJ,CAAA,GAM7C,aAN6C,CAM/B,eAN+B,CAAA;AAErC,oCAA2B,GAAA,EAAA;AAE3B,uCAAiB,GAAA,EAAA;AACH,2CAAA,GAAA,EAAA;AAA2B,oCAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TsupBuildConfig } from "powerlines/types/build";
|
|
2
|
+
import { TsupUserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { TsupResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type TsupPluginOptions = Partial<TsupBuildConfig>;
|
|
8
|
+
type TsupPluginUserConfig = TsupUserConfig;
|
|
9
|
+
type TsupPluginResolvedConfig = TsupResolvedConfig;
|
|
10
|
+
type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
11
|
+
declare type __ΩTsupPluginOptions = any[];
|
|
12
|
+
declare type __ΩTsupPluginUserConfig = any[];
|
|
13
|
+
declare type __ΩTsupPluginResolvedConfig = any[];
|
|
14
|
+
declare type __ΩTsupPluginContext = any[];
|
|
15
|
+
//#endregion
|
|
16
|
+
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 };
|
|
17
|
+
//# sourceMappingURL=plugin-yZdu54RB.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-yZdu54RB.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,iBAAA,GAAoB,QAAQ;KAE5B,oBAAA,GAAuB;AAFvB,KAIA,wBAAA,GAA2B,kBAJP;AAEpB,KAIA,iBAJoB,CAAA,wBAKN,wBALuB,GAKI,wBALJ,CAAA,GAM7C,aAN6C,CAM/B,eAN+B,CAAA;AAErC,oCAA2B,GAAA,EAAA;AAE3B,uCAAiB,GAAA,EAAA;AACH,2CAAA,GAAA,EAAA;AAA2B,oCAAA,GAAA,EAAA"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { TsupPluginContext,
|
|
1
|
+
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-Dlslt7Cx.cjs";
|
|
2
|
+
import "../index-D4ELpJXS.cjs";
|
|
2
3
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { TsupPluginContext,
|
|
1
|
+
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-yZdu54RB.mjs";
|
|
2
|
+
import "../index-9iG2qHLe.mjs";
|
|
2
3
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-pBKbb5K9.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TsupUserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { TsupResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type TsupPluginOptions = Partial<TsupBuildConfig>;
|
|
8
|
-
type TsupPluginUserConfig = TsupUserConfig;
|
|
9
|
-
type TsupPluginResolvedConfig = TsupResolvedConfig;
|
|
10
|
-
type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
11
|
-
declare type __ΩTsupPluginOptions = any[];
|
|
12
|
-
declare type __ΩTsupPluginUserConfig = any[];
|
|
13
|
-
declare type __ΩTsupPluginResolvedConfig = any[];
|
|
14
|
-
declare type __ΩTsupPluginContext = any[];
|
|
15
|
-
//#endregion
|
|
1
|
+
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-Dlslt7Cx.cjs";
|
|
16
2
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TsupUserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { TsupResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type TsupPluginOptions = Partial<TsupBuildConfig>;
|
|
8
|
-
type TsupPluginUserConfig = TsupUserConfig;
|
|
9
|
-
type TsupPluginResolvedConfig = TsupResolvedConfig;
|
|
10
|
-
type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
11
|
-
declare type __ΩTsupPluginOptions = any[];
|
|
12
|
-
declare type __ΩTsupPluginUserConfig = any[];
|
|
13
|
-
declare type __ΩTsupPluginResolvedConfig = any[];
|
|
14
|
-
declare type __ΩTsupPluginContext = any[];
|
|
15
|
-
//#endregion
|
|
1
|
+
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-yZdu54RB.mjs";
|
|
16
2
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as TsupPluginContext } from "./plugin-Dlslt7Cx.cjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createTsupPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-BiuVZTPz.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-BiuVZTPz.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as TsupPluginContext } from "./plugin-yZdu54RB.mjs";
|
|
2
|
+
import * as esbuild0 from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createTsupPlugin(context: TsupPluginContext): esbuild0.Plugin;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createTsupPlugin as t };
|
|
8
|
+
//# sourceMappingURL=unplugin-CeWxRT5f.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-CeWxRT5f.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
2
|
+
import { createEsbuildPlugin } from "unplugin";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.ts
|
|
5
|
+
function createTsupPlugin(context) {
|
|
6
|
+
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createTsupPlugin as t };
|
|
11
|
+
//# sourceMappingURL=unplugin-Cowq2Wte.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-Cowq2Wte.mjs","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"powerlines/lib/unplugin\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { TsupPluginContext } from \"../types/plugin\";\n\nexport function createTsupPlugin(context: TsupPluginContext) {\n return createEsbuildPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,iBAAiB,SAA4B;AAC3D,QAAO,oBAAoB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_index = require('./index.cjs');
|
|
2
|
+
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
+
let unplugin = require("unplugin");
|
|
4
|
+
|
|
5
|
+
//#region src/helpers/unplugin.ts
|
|
6
|
+
function createTsupPlugin(context) {
|
|
7
|
+
return (0, unplugin.createEsbuildPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'createTsupPlugin', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return createTsupPlugin;
|
|
15
|
+
}
|
|
16
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsup",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.249",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -122,14 +122,14 @@
|
|
|
122
122
|
"@stryke/type-checks": "^0.5.22",
|
|
123
123
|
"@stryke/types": "^0.10.36",
|
|
124
124
|
"defu": "^6.1.4",
|
|
125
|
-
"powerlines": "^0.38.
|
|
125
|
+
"powerlines": "^0.38.6",
|
|
126
126
|
"unplugin": "3.0.0-beta.3"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
129
|
+
"@powerlines/plugin-plugin": "^0.12.190",
|
|
130
130
|
"@types/node": "^24.10.9"
|
|
131
131
|
},
|
|
132
132
|
"publishConfig": { "access": "public" },
|
|
133
133
|
"types": "./dist/index.d.cts",
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
|
|
135
135
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|