@powerlines/plugin-esbuild 0.13.313 → 0.13.315
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-CrohITJo.d.mts → build-Bw5BbOcS.d.mts} +1 -1
- package/dist/build-Bw5BbOcS.d.mts.map +1 -0
- package/dist/{bundle-z2FneKY-.d.mts → bundle-CC14KyoT.d.mts} +1 -1
- package/dist/{bundle-z2FneKY-.d.mts.map → bundle-CC14KyoT.d.mts.map} +1 -1
- package/dist/{bundle-D6QqCoyO.mjs → bundle-CVo6LDmp.mjs} +2 -2
- package/dist/{bundle-D6QqCoyO.mjs.map → bundle-CVo6LDmp.mjs.map} +1 -1
- package/dist/{bundle-DG12gVtZ.cjs → bundle-a75NYW0q.cjs} +1 -1
- package/dist/helpers/bundle.cjs +1 -1
- package/dist/helpers/bundle.d.mts +1 -1
- package/dist/helpers/bundle.mjs +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +0 -1
- package/dist/helpers/index.d.mts +7 -7
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/resolve-options.d.mts +1 -1
- package/dist/helpers/resolve.d.mts +1 -1
- package/dist/helpers/unplugin.d.cts +0 -1
- package/dist/helpers/unplugin.d.mts +3 -3
- package/dist/index.cjs +2 -4
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-B823wBIx.d.mts → plugin-Bg_EXmOz.d.mts} +2 -2
- package/dist/{plugin-B823wBIx.d.mts.map → plugin-Bg_EXmOz.d.mts.map} +1 -1
- package/dist/{resolve-Cy71IFTt.d.mts → resolve-CaJwH6sa.d.mts} +1 -1
- package/dist/{resolve-Cy71IFTt.d.mts.map → resolve-CaJwH6sa.d.mts.map} +1 -1
- package/dist/{resolve-options-XG5mcDGc.d.mts → resolve-options-2OYkM7N0.d.mts} +1 -1
- package/dist/{resolve-options-XG5mcDGc.d.mts.map → resolve-options-2OYkM7N0.d.mts.map} +1 -1
- package/dist/types/build.cjs +0 -1
- package/dist/types/build.d.mts +1 -1
- package/dist/types/build.mjs +0 -2
- package/dist/types/index.cjs +0 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.mjs +0 -4
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +0 -1
- package/dist/types/plugin.d.mts +2 -2
- package/dist/types/plugin.mjs +0 -2
- package/dist/{unplugin-BiqKxCQ7.d.mts → unplugin-Cv-iqtwL.d.mts} +2 -2
- package/dist/unplugin-Cv-iqtwL.d.mts.map +1 -0
- package/package.json +4 -4
- package/dist/build-CrohITJo.d.mts.map +0 -1
- package/dist/types-CvhspRRt.mjs +0 -1
- package/dist/types-DdloOYgD.cjs +0 -0
- package/dist/unplugin-BiqKxCQ7.d.mts.map +0 -1
- /package/dist/{index-DJOHDG5e.d.mts → index-BXxhKmeA.d.mts} +0 -0
|
@@ -5,4 +5,4 @@ type EsbuildOptions = Omit<BuildOptions, "entryPoints" | "platform" | "outdir" |
|
|
|
5
5
|
declare type __ΩEsbuildOptions = any[];
|
|
6
6
|
//#endregion
|
|
7
7
|
export { __ΩEsbuildOptions as n, EsbuildOptions as t };
|
|
8
|
-
//# sourceMappingURL=build-
|
|
8
|
+
//# sourceMappingURL=build-Bw5BbOcS.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-Bw5BbOcS.d.mts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,cAAA,GAAiB,KAC3B"}
|
|
@@ -14,4 +14,4 @@ import { PluginContext } from "@powerlines/core";
|
|
|
14
14
|
declare function bundle(context: PluginContext, file: string, overrides?: Partial<BuildOptions>): Promise<OutputFile>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { bundle as t };
|
|
17
|
-
//# sourceMappingURL=bundle-
|
|
17
|
+
//# sourceMappingURL=bundle-CC14KyoT.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-CC14KyoT.d.mts","names":[],"sources":["../src/helpers/bundle.ts"],"sourcesContent":[],"mappings":";;;;;;;AAkCA;;;;;;AAIU,iBAJY,MAAA,CAIZ,OAAA,EAHC,aAGD,EAAA,IAAA,EAAA,MAAA,EAAA,SAAA,CAAA,EADG,OACH,CADW,YACX,CAAA,CAAA,EAAP,OAAO,CAAC,UAAD,CAAA"}
|
|
@@ -29,7 +29,7 @@ async function bundle(context, file, overrides = {}) {
|
|
|
29
29
|
platform: "node",
|
|
30
30
|
logLevel: "silent",
|
|
31
31
|
...overrides
|
|
32
|
-
}, { plugins: [createEsbuildPlugin(createUnpluginResolver(context, `${findFileName(file)} Bundler`))({})] }));
|
|
32
|
+
}, { plugins: [createEsbuildPlugin(createUnpluginResolver(context, { name: `${findFileName(file)} Bundler` }))({})] }));
|
|
33
33
|
if (result.errors.length > 0) throw new Error(`Failed to bundle ${file}: ${result.errors.map((error) => error.text).join(", ")}`);
|
|
34
34
|
if (result.warnings.length > 0) context.warn(`Warnings while bundling ${file}: ${result.warnings.map((warning) => warning.text).join(", ")}`);
|
|
35
35
|
if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) throw new Error(`No output files generated for ${file}. Please check the configuration and try again.`);
|
|
@@ -38,4 +38,4 @@ async function bundle(context, file, overrides = {}) {
|
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { bundle as t };
|
|
41
|
-
//# sourceMappingURL=bundle-
|
|
41
|
+
//# sourceMappingURL=bundle-CVo6LDmp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-CVo6LDmp.mjs","names":[],"sources":["../src/helpers/bundle.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 type { PluginContext } from \"@powerlines/core\";\nimport { createUnpluginResolver } from \"@powerlines/core/lib/unplugin\";\nimport { findFileName } from \"@stryke/path/file-path-fns\";\nimport defu from \"defu\";\nimport { build, BuildOptions, OutputFile } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { resolveOptions } from \"./resolve-options\";\n\n/**\n * Bundle a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param file - The file path to bundle.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the bundled module.\n */\nexport async function bundle(\n context: PluginContext,\n file: string,\n overrides: Partial<BuildOptions> = {}\n): Promise<OutputFile> {\n const path = await context.fs.resolve(file);\n if (!path || !context.fs.existsSync(path)) {\n throw new Error(\n `Module not found: \"${file}\". Please check the path and try again.`\n );\n }\n\n const result = await build(\n defu(\n {\n ...resolveOptions(context),\n entryPoints: [path],\n write: false,\n sourcemap: false,\n splitting: false,\n treeShaking: false,\n bundle: true,\n packages: \"bundle\",\n platform: \"node\",\n logLevel: \"silent\",\n ...overrides\n } as BuildOptions,\n {\n plugins: [\n createEsbuildPlugin(\n createUnpluginResolver(context, {\n name: `${findFileName(file)} Bundler`\n })\n )({})\n ]\n }\n )\n );\n if (result.errors.length > 0) {\n throw new Error(\n `Failed to bundle ${file}: ${result.errors\n .map(error => error.text)\n .join(\", \")}`\n );\n }\n if (result.warnings.length > 0) {\n context.warn(\n `Warnings while bundling ${file}: ${result.warnings\n .map(warning => warning.text)\n .join(\", \")}`\n );\n }\n if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {\n throw new Error(\n `No output files generated for ${\n file\n }. Please check the configuration and try again.`\n );\n }\n\n return result.outputFiles.filter(Boolean)[0]!;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAkCA,eAAsB,OACpB,SACA,MACA,YAAmC,EAAE,EAChB;CACrB,MAAM,OAAO,MAAM,QAAQ,GAAG,QAAQ,KAAK;AAC3C,KAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,WAAW,KAAK,CACvC,OAAM,IAAI,MACR,sBAAsB,KAAK,yCAC5B;CAGH,MAAM,SAAS,MAAM,MACnB,KACE;EACE,GAAG,eAAe,QAAQ;EAC1B,aAAa,CAAC,KAAK;EACnB,OAAO;EACP,WAAW;EACX,WAAW;EACX,aAAa;EACb,QAAQ;EACR,UAAU;EACV,UAAU;EACV,UAAU;EACV,GAAG;EACJ,EACD,EACE,SAAS,CACP,oBACE,uBAAuB,SAAS,EAC9B,MAAM,GAAG,aAAa,KAAK,CAAC,WAC7B,CAAC,CACH,CAAC,EAAE,CAAC,CACN,EACF,CACF,CACF;AACD,KAAI,OAAO,OAAO,SAAS,EACzB,OAAM,IAAI,MACR,oBAAoB,KAAK,IAAI,OAAO,OACjC,KAAI,UAAS,MAAM,KAAK,CACxB,KAAK,KAAK,GACd;AAEH,KAAI,OAAO,SAAS,SAAS,EAC3B,SAAQ,KACN,2BAA2B,KAAK,IAAI,OAAO,SACxC,KAAI,YAAW,QAAQ,KAAK,CAC5B,KAAK,KAAK,GACd;AAEH,KAAI,CAAC,OAAO,eAAe,OAAO,YAAY,OAAO,QAAQ,CAAC,WAAW,EACvE,OAAM,IAAI,MACR,iCACE,KACD,iDACF;AAGH,QAAO,OAAO,YAAY,OAAO,QAAQ,CAAC"}
|
|
@@ -30,7 +30,7 @@ async function bundle(context, file, overrides = {}) {
|
|
|
30
30
|
platform: "node",
|
|
31
31
|
logLevel: "silent",
|
|
32
32
|
...overrides
|
|
33
|
-
}, { plugins: [(0, unplugin.createEsbuildPlugin)((0, __powerlines_core_lib_unplugin.createUnpluginResolver)(context, `${(0, __stryke_path_file_path_fns.findFileName)(file)} Bundler`))({})] }));
|
|
33
|
+
}, { plugins: [(0, unplugin.createEsbuildPlugin)((0, __powerlines_core_lib_unplugin.createUnpluginResolver)(context, { name: `${(0, __stryke_path_file_path_fns.findFileName)(file)} Bundler` }))({})] }));
|
|
34
34
|
if (result.errors.length > 0) throw new Error(`Failed to bundle ${file}: ${result.errors.map((error) => error.text).join(", ")}`);
|
|
35
35
|
if (result.warnings.length > 0) context.warn(`Warnings while bundling ${file}: ${result.warnings.map((warning) => warning.text).join(", ")}`);
|
|
36
36
|
if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) throw new Error(`No output files generated for ${file}. Please check the configuration and try again.`);
|
package/dist/helpers/bundle.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bundle } from "../bundle-
|
|
1
|
+
import { t as bundle } from "../bundle-CC14KyoT.mjs";
|
|
2
2
|
export { bundle };
|
package/dist/helpers/bundle.mjs
CHANGED
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_resolve_options = require('../resolve-options-C3WIGKaG.cjs');
|
|
2
2
|
const require_unplugin = require('../unplugin-CW_BVHFj.cjs');
|
|
3
|
-
const require_bundle = require('../bundle-
|
|
3
|
+
const require_bundle = require('../bundle-a75NYW0q.cjs');
|
|
4
4
|
const require_resolve = require('../resolve-CsStIaEj.cjs');
|
|
5
5
|
require('../helpers-CAF8Bmv1.cjs');
|
|
6
6
|
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as bundle } from "../bundle-CGOgHuWO.cjs";
|
|
2
2
|
import { n as resolveModule, t as resolve } from "../resolve-DaXV27Bb.cjs";
|
|
3
3
|
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "../resolve-options-Dv4d9qj2.cjs";
|
|
4
|
-
import "../build-Br4iCJ5d.cjs";
|
|
5
4
|
import "../plugin-7iQtkKC4.cjs";
|
|
6
5
|
import { t as createEsbuildPlugin } from "../unplugin-DYA9P9Jn.cjs";
|
|
7
6
|
import "../index-DeEmP3Jc.cjs";
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as bundle } from "../bundle-
|
|
2
|
-
import { n as resolveModule, t as resolve } from "../resolve-
|
|
3
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "../resolve-options-
|
|
4
|
-
import "../build-
|
|
5
|
-
import "../plugin-
|
|
6
|
-
import { t as createEsbuildPlugin } from "../unplugin-
|
|
7
|
-
import "../index-
|
|
1
|
+
import { t as bundle } from "../bundle-CC14KyoT.mjs";
|
|
2
|
+
import { n as resolveModule, t as resolve } from "../resolve-CaJwH6sa.mjs";
|
|
3
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "../resolve-options-2OYkM7N0.mjs";
|
|
4
|
+
import "../build-Bw5BbOcS.mjs";
|
|
5
|
+
import "../plugin-Bg_EXmOz.mjs";
|
|
6
|
+
import { t as createEsbuildPlugin } from "../unplugin-Cv-iqtwL.mjs";
|
|
7
|
+
import "../index-BXxhKmeA.mjs";
|
|
8
8
|
export { DEFAULT_ESBUILD_CONFIG, bundle, createEsbuildPlugin, resolve, resolveEntry, resolveModule, resolveOptions };
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "../resolve-options-C-213jz6.mjs";
|
|
2
2
|
import { t as createEsbuildPlugin } from "../unplugin-_Yvl6iM8.mjs";
|
|
3
|
-
import { t as bundle } from "../bundle-
|
|
3
|
+
import { t as bundle } from "../bundle-CVo6LDmp.mjs";
|
|
4
4
|
import { n as resolveModule, t as resolve } from "../resolve-C8OzoP-s.mjs";
|
|
5
5
|
import "../helpers-BAUlPOQe.mjs";
|
|
6
6
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "../resolve-options-
|
|
1
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "../resolve-options-2OYkM7N0.mjs";
|
|
2
2
|
export { DEFAULT_ESBUILD_CONFIG, resolveEntry, resolveOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveModule, t as resolve } from "../resolve-
|
|
1
|
+
import { n as resolveModule, t as resolve } from "../resolve-CaJwH6sa.mjs";
|
|
2
2
|
export { resolve, resolveModule };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../build-
|
|
2
|
-
import "../plugin-
|
|
3
|
-
import { t as createEsbuildPlugin } from "../unplugin-
|
|
1
|
+
import "../build-Bw5BbOcS.mjs";
|
|
2
|
+
import "../plugin-Bg_EXmOz.mjs";
|
|
3
|
+
import { t as createEsbuildPlugin } from "../unplugin-Cv-iqtwL.mjs";
|
|
4
4
|
export { createEsbuildPlugin };
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_resolve_options = require('./resolve-options-C3WIGKaG.cjs');
|
|
3
3
|
const require_unplugin = require('./unplugin-CW_BVHFj.cjs');
|
|
4
|
-
const require_bundle = require('./bundle-
|
|
4
|
+
const require_bundle = require('./bundle-a75NYW0q.cjs');
|
|
5
5
|
const require_resolve = require('./resolve-CsStIaEj.cjs');
|
|
6
6
|
require('./helpers-CAF8Bmv1.cjs');
|
|
7
|
-
require('./
|
|
8
|
-
require('./plugin-OjUZLLkc.cjs');
|
|
9
|
-
require('./types-DdloOYgD.cjs');
|
|
7
|
+
require('./types/index.cjs');
|
|
10
8
|
let defu = require("defu");
|
|
11
9
|
defu = require_resolve_options.__toESM(defu);
|
|
12
10
|
let esbuild = require("esbuild");
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as bundle } from "./bundle-
|
|
2
|
-
import { n as resolveModule, t as resolve } from "./resolve-
|
|
3
|
-
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "./resolve-options-
|
|
4
|
-
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "./build-
|
|
5
|
-
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "./plugin-
|
|
6
|
-
import { t as createEsbuildPlugin } from "./unplugin-
|
|
1
|
+
import { t as bundle } from "./bundle-CC14KyoT.mjs";
|
|
2
|
+
import { n as resolveModule, t as resolve } from "./resolve-CaJwH6sa.mjs";
|
|
3
|
+
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "./resolve-options-2OYkM7N0.mjs";
|
|
4
|
+
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "./build-Bw5BbOcS.mjs";
|
|
5
|
+
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "./plugin-Bg_EXmOz.mjs";
|
|
6
|
+
import { t as createEsbuildPlugin } from "./unplugin-Cv-iqtwL.mjs";
|
|
7
|
+
import "./index-BXxhKmeA.mjs";
|
|
7
8
|
import "./index-ClXLQ1fw.mjs";
|
|
8
|
-
import "./index-DJOHDG5e.mjs";
|
|
9
9
|
import { Plugin } from "@powerlines/core";
|
|
10
10
|
|
|
11
11
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { n as resolveEntry, r as resolveOptions, t as DEFAULT_ESBUILD_CONFIG } from "./resolve-options-C-213jz6.mjs";
|
|
2
2
|
import { t as createEsbuildPlugin } from "./unplugin-_Yvl6iM8.mjs";
|
|
3
|
-
import { t as bundle } from "./bundle-
|
|
3
|
+
import { t as bundle } from "./bundle-CVo6LDmp.mjs";
|
|
4
4
|
import { n as resolveModule, t as resolve } from "./resolve-C8OzoP-s.mjs";
|
|
5
5
|
import "./helpers-BAUlPOQe.mjs";
|
|
6
|
-
import "./
|
|
7
|
-
import "./plugin-BL8TLixo.mjs";
|
|
8
|
-
import "./types-CvhspRRt.mjs";
|
|
6
|
+
import "./types/index.mjs";
|
|
9
7
|
import defu from "defu";
|
|
10
8
|
import { build } from "esbuild";
|
|
11
9
|
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"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 defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n resolveEntry,\n resolveOptions\n} from \"./helpers/resolve-options\";\nimport { createEsbuildPlugin } from \"./helpers/unplugin\";\nimport {\n EsbuildPluginContext,\n EsbuildPluginOptions,\n EsbuildPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n esbuild?: EsbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends EsbuildPluginContext = EsbuildPluginContext\n>(\n options: EsbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"esbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n build: {\n ...DEFAULT_ESBUILD_CONFIG,\n ...options,\n variant: \"esbuild\"\n }\n } as Partial<EsbuildPluginUserConfig>;\n },\n async build() {\n await build(\n defu(\n {\n entryPoints: resolveEntry(this, this.entry),\n plugins: [createEsbuildPlugin(this)]\n },\n resolveOptions(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"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 defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n resolveEntry,\n resolveOptions\n} from \"./helpers/resolve-options\";\nimport { createEsbuildPlugin } from \"./helpers/unplugin\";\nimport {\n EsbuildPluginContext,\n EsbuildPluginOptions,\n EsbuildPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n esbuild?: EsbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends EsbuildPluginContext = EsbuildPluginContext\n>(\n options: EsbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"esbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n build: {\n ...DEFAULT_ESBUILD_CONFIG,\n ...options,\n variant: \"esbuild\"\n }\n } as Partial<EsbuildPluginUserConfig>;\n },\n async build() {\n await build(\n defu(\n {\n entryPoints: resolveEntry(this, this.entry),\n plugins: [createEsbuildPlugin(this)]\n },\n resolveOptions(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA6CA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,MAAM,EAChB;IACD,OAAO;KACL,GAAG;KACH,GAAG;KACH,SAAS;KACV;IACF;;EAEH,MAAM,QAAQ;AACZ,SAAM,MACJ,KACE;IACE,aAAa,aAAa,MAAM,KAAK,MAAM;IAC3C,SAAS,CAAC,oBAAoB,KAAK,CAAC;IACrC,EACD,eAAe,KAAK,CACrB,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EsbuildOptions } from "./build-
|
|
1
|
+
import { t as EsbuildOptions } from "./build-Bw5BbOcS.mjs";
|
|
2
2
|
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
@@ -16,4 +16,4 @@ declare type __ΩEsbuildPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩEsbuildPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩEsbuildPluginContext as a, __ΩEsbuildPluginUserConfig as c, EsbuildPluginUserConfig as i, EsbuildPluginOptions as n, __ΩEsbuildPluginOptions as o, EsbuildPluginResolvedConfig as r, __ΩEsbuildPluginResolvedConfig as s, EsbuildPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-Bg_EXmOz.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-Bg_EXmOz.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;UAE1B,uBAAA,SAAgC;EAFrC,OAAA,CAAA,EAGA,oBAHoB;AAEhC;AAIiB,UAAA,2BAAA,SAAoC,cAAA,CAAA;EAIzC,OAAA,EAHD,cAGqB;;AAE5B,KAFQ,oBAER,CAAA,wBADsB,2BACtB,GAAA,2BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,uCAAA,GAAA,EAAA;AAAd,0CAAA,GAAA,EAAA;AAAa,8CAAA,GAAA,EAAA"}
|
|
@@ -24,4 +24,4 @@ declare function resolveModule<TResult>(context: PluginContext, type: TypeDefini
|
|
|
24
24
|
declare function resolve<TResult>(context: PluginContext, type: TypeDefinitionParameter, overrides?: Partial<BuildOptions>): Promise<TResult>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { resolveModule as n, resolve as t };
|
|
27
|
-
//# sourceMappingURL=resolve-
|
|
27
|
+
//# sourceMappingURL=resolve-CaJwH6sa.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-
|
|
1
|
+
{"version":3,"file":"resolve-CaJwH6sa.d.mts","names":[],"sources":["../src/helpers/resolve.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAoCA;;;;;;AAIG,iBAJmB,aAInB,CAAA,OAAA,CAAA,CAAA,OAAA,EAHQ,aAGR,EAAA,IAAA,EAFK,uBAEL,EAAA,SAAA,CAAA,EADU,OACV,CADkB,YAClB,CAAA,CAAA,EAAA,OAAA,CAAQ,OAAR,CAAA;;AAqEH;;;;;;;AAIU,iBAJY,OAIZ,CAAA,OAAA,CAAA,CAAA,OAAA,EAHC,aAGD,EAAA,IAAA,EAFF,uBAEE,EAAA,SAAA,CAAA,EADG,OACH,CADW,YACX,CAAA,CAAA,EAAP,OAAO,CAAC,OAAD,CAAA"}
|
|
@@ -20,4 +20,4 @@ declare function resolveEntry(context: Context, entryPoints?: ResolvedEntryTypeD
|
|
|
20
20
|
declare function resolveOptions(context: Context): BuildOptions;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { resolveEntry as n, resolveOptions as r, DEFAULT_ESBUILD_CONFIG as t };
|
|
23
|
-
//# sourceMappingURL=resolve-options-
|
|
23
|
+
//# sourceMappingURL=resolve-options-2OYkM7N0.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-
|
|
1
|
+
{"version":3,"file":"resolve-options-2OYkM7N0.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;cA4Ba,wBAAwB,QAAQ;;AAA7C;AAqBA;;;;;AAyBgB,iBAzBA,YAAA,CAyBwB,OAAU,EAxBvC,OAwBuC,EAAY,WAAA,CAAA,EAvB/C,2BAuB+C,EAAA,GAAA,MAAA,EAAA,CAAA,EAtB3D,YAsB2D,CAAA,aAAA,CAAA;;;;;;;iBAA9C,cAAA,UAAwB,UAAU"}
|
package/dist/types/build.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('../build-CQpSv6Qa.cjs');
|
package/dist/types/build.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "../build-
|
|
1
|
+
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "../build-Bw5BbOcS.mjs";
|
|
2
2
|
export { EsbuildOptions, __ΩEsbuildOptions };
|
package/dist/types/build.mjs
CHANGED
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "../build-
|
|
2
|
-
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "../plugin-
|
|
3
|
-
import "../index-
|
|
1
|
+
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "../build-Bw5BbOcS.mjs";
|
|
2
|
+
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "../plugin-Bg_EXmOz.mjs";
|
|
3
|
+
import "../index-ClXLQ1fw.mjs";
|
|
4
4
|
export { EsbuildOptions, EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildOptions, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('../plugin-OjUZLLkc.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import "../build-Br4iCJ5d.cjs";
|
|
2
1
|
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "../plugin-7iQtkKC4.cjs";
|
|
3
2
|
export { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../build-
|
|
2
|
-
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "../plugin-
|
|
1
|
+
import "../build-Bw5BbOcS.mjs";
|
|
2
|
+
import { a as __ΩEsbuildPluginContext, c as __ΩEsbuildPluginUserConfig, i as EsbuildPluginUserConfig, n as EsbuildPluginOptions, o as __ΩEsbuildPluginOptions, r as EsbuildPluginResolvedConfig, s as __ΩEsbuildPluginResolvedConfig, t as EsbuildPluginContext } from "../plugin-Bg_EXmOz.mjs";
|
|
3
3
|
export { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as EsbuildPluginContext } from "./plugin-
|
|
1
|
+
import { t as EsbuildPluginContext } from "./plugin-Bg_EXmOz.mjs";
|
|
2
2
|
import * as esbuild0 from "esbuild";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createEsbuildPlugin(context: EsbuildPluginContext): esbuild0.Plugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createEsbuildPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-Cv-iqtwL.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-Cv-iqtwL.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-esbuild",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.315",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using esbuild.",
|
|
6
6
|
"keywords": ["esbuild", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -83,16 +83,16 @@
|
|
|
83
83
|
"peerDependencies": { "esbuild": ">=0.25.0" },
|
|
84
84
|
"peerDependenciesMeta": { "esbuild": { "optional": false } },
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@powerlines/core": "^0.1.
|
|
86
|
+
"@powerlines/core": "^0.1.4",
|
|
87
87
|
"@stryke/fs": "^0.33.43",
|
|
88
88
|
"@stryke/path": "^0.26.6",
|
|
89
89
|
"@stryke/type-checks": "^0.5.25",
|
|
90
90
|
"@stryke/types": "^0.10.39",
|
|
91
91
|
"defu": "^6.1.4",
|
|
92
92
|
"jiti": "^2.6.1",
|
|
93
|
-
"unplugin": "3.0.0
|
|
93
|
+
"unplugin": "^3.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": { "esbuild": "^0.25.12", "@types/node": "^25.3.3" },
|
|
96
96
|
"publishConfig": { "access": "public" },
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "a06fd299516eaa1263502746ed51daf5b8a80e80"
|
|
98
98
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-CrohITJo.d.mts","names":[],"sources":["../src/types/build.ts"],"sourcesContent":[],"mappings":";;;KAoBY,cAAA,GAAiB,KAC3B"}
|
package/dist/types-CvhspRRt.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types-DdloOYgD.cjs
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-BiqKxCQ7.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
File without changes
|