@powerlines/plugin-tsup 0.12.262 → 0.12.264
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/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/helpers/index.cjs +2 -3
- package/dist/helpers/index.d.cts +1 -3
- package/dist/helpers/index.d.mts +1 -3
- package/dist/helpers/index.mjs +1 -2
- package/dist/helpers/unplugin.cjs +10 -2
- package/dist/helpers/unplugin.d.cts +8 -3
- package/dist/helpers/unplugin.d.cts.map +1 -0
- package/dist/helpers/unplugin.d.mts +8 -3
- package/dist/helpers/unplugin.d.mts.map +1 -0
- package/dist/helpers/unplugin.mjs +10 -2
- package/dist/helpers/unplugin.mjs.map +1 -0
- package/dist/index.cjs +6 -35
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +17 -2
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +17 -2
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +0 -2
- package/package.json +7 -7
- package/dist/helpers-B15z10jN.mjs +0 -1
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-9iG2qHLe.d.mts +0 -1
- package/dist/index-D4ELpJXS.d.cts +0 -1
- package/dist/index-D6CnpA_r.d.cts +0 -1
- package/dist/index-DL0uimUT.d.mts +0 -1
- package/dist/plugin-Dlslt7Cx.d.cts +0 -17
- package/dist/plugin-Dlslt7Cx.d.cts.map +0 -1
- package/dist/plugin-ifZVa20V.mjs +0 -1
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/plugin-yZdu54RB.d.mts +0 -17
- package/dist/plugin-yZdu54RB.d.mts.map +0 -1
- package/dist/types-U3zd8PTP.mjs +0 -1
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-BiuVZTPz.d.cts +0 -8
- package/dist/unplugin-BiuVZTPz.d.cts.map +0 -1
- package/dist/unplugin-CeWxRT5f.d.mts +0 -8
- package/dist/unplugin-CeWxRT5f.d.mts.map +0 -1
- package/dist/unplugin-Cowq2Wte.mjs +0 -11
- package/dist/unplugin-Cowq2Wte.mjs.map +0 -1
- package/dist/unplugin-xBBj8hW5.cjs +0 -16
|
@@ -0,0 +1,29 @@
|
|
|
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;
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
require('../helpers-LF26RHol.cjs');
|
|
1
|
+
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
3
2
|
|
|
4
|
-
exports.createTsupPlugin =
|
|
3
|
+
exports.createTsupPlugin = require_helpers_unplugin.createTsupPlugin;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
3
|
+
let unplugin = require("unplugin");
|
|
2
4
|
|
|
3
|
-
|
|
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
|
+
exports.createTsupPlugin = createTsupPlugin;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import "../plugin
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { TsupPluginContext } from "../types/plugin.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 };
|
|
8
|
+
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import "../plugin
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { TsupPluginContext } from "../types/plugin.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 };
|
|
8
|
+
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
2
|
+
import { createEsbuildPlugin } from "unplugin";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/helpers/unplugin.ts
|
|
5
|
+
function createTsupPlugin(context) {
|
|
6
|
+
return createEsbuildPlugin(createUnplugin(context))({});
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { createTsupPlugin };
|
|
11
|
+
//# sourceMappingURL=unplugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.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"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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');
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
4
|
+
require('./helpers/index.cjs');
|
|
33
5
|
let __storm_software_tsup = require("@storm-software/tsup");
|
|
34
6
|
let __stryke_path_append = require("@stryke/path/append");
|
|
35
7
|
let defu = require("defu");
|
|
36
|
-
defu = __toESM(defu);
|
|
8
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
37
9
|
let powerlines_lib_build_tsup = require("powerlines/lib/build/tsup");
|
|
38
10
|
|
|
39
11
|
//#region src/index.ts
|
|
@@ -72,14 +44,13 @@ const plugin = (options = {}) => {
|
|
|
72
44
|
},
|
|
73
45
|
silent: false,
|
|
74
46
|
verbose: true
|
|
75
|
-
}, (0, powerlines_lib_build_tsup.extractTsupConfig)(this), { esbuildPlugins: [
|
|
47
|
+
}, (0, powerlines_lib_build_tsup.extractTsupConfig)(this), { esbuildPlugins: [require_helpers_unplugin.createTsupPlugin(this)] })));
|
|
76
48
|
}
|
|
77
49
|
};
|
|
78
50
|
};
|
|
79
51
|
var src_default = plugin;
|
|
80
52
|
|
|
81
53
|
//#endregion
|
|
82
|
-
exports.
|
|
83
|
-
exports.createTsupPlugin = require_unplugin.createTsupPlugin;
|
|
54
|
+
exports.createTsupPlugin = require_helpers_unplugin.createTsupPlugin;
|
|
84
55
|
exports.default = src_default;
|
|
85
56
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./index
|
|
4
|
-
import "./index
|
|
1
|
+
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
+
import { createTsupPlugin } from "./helpers/unplugin.cjs";
|
|
3
|
+
import "./helpers/index.cjs";
|
|
4
|
+
import "./types/index.cjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./index
|
|
4
|
-
import "./index
|
|
1
|
+
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
+
import { createTsupPlugin } from "./helpers/unplugin.mjs";
|
|
3
|
+
import "./helpers/index.mjs";
|
|
4
|
+
import "./types/index.mjs";
|
|
5
5
|
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./helpers
|
|
3
|
-
import "./plugin-ifZVa20V.mjs";
|
|
4
|
-
import "./types-U3zd8PTP.mjs";
|
|
1
|
+
import { createTsupPlugin } from "./helpers/unplugin.mjs";
|
|
2
|
+
import "./helpers/index.mjs";
|
|
5
3
|
import { build, resolveOptions } from "@storm-software/tsup";
|
|
6
4
|
import { appendPath } from "@stryke/path/append";
|
|
7
5
|
import defu from "defu";
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +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":"
|
|
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"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-D4ELpJXS.cjs";
|
|
1
|
+
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./plugin.cjs";
|
|
3
2
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-9iG2qHLe.mjs";
|
|
1
|
+
import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./plugin.mjs";
|
|
3
2
|
export { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('../plugin-pBKbb5K9.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
|
17
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig };
|
|
17
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.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/plugin.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsup",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.264",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -118,18 +118,18 @@
|
|
|
118
118
|
"keywords": ["tsup", "powerlines", "storm-software", "powerlines-plugin"],
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@storm-software/tsup": "^0.2.79",
|
|
121
|
-
"@stryke/path": "^0.26.
|
|
122
|
-
"@stryke/type-checks": "^0.5.
|
|
123
|
-
"@stryke/types": "^0.10.
|
|
121
|
+
"@stryke/path": "^0.26.4",
|
|
122
|
+
"@stryke/type-checks": "^0.5.23",
|
|
123
|
+
"@stryke/types": "^0.10.37",
|
|
124
124
|
"defu": "^6.1.4",
|
|
125
|
-
"powerlines": "^0.38.
|
|
125
|
+
"powerlines": "^0.38.21",
|
|
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.205",
|
|
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": "6000a15bf3fbc1b7eaaf967088c68eef9949786a"
|
|
135
135
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/plugin-ifZVa20V.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-pBKbb5K9.cjs
DELETED
|
File without changes
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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-U3zd8PTP.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types-o3zWarRp.cjs
DELETED
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-BiuVZTPz.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-CeWxRT5f.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,gBAAA,UAA0B,oBAAiB,QAAA,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
});
|