@powerlines/plugin-esbuild 0.13.495 → 0.13.496
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-B8u-bRQt.d.cts.map +1 -1
- package/dist/build-VnV0tsb3.d.mts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- 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 +8 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-B8u-bRQt.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,
|
|
1
|
+
{"version":3,"file":"build-B8u-bRQt.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAI,CAC/B,YAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-VnV0tsb3.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,
|
|
1
|
+
{"version":3,"file":"build-VnV0tsb3.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAI,CAC/B,YAAA;AAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
//#endregion
|
|
29
29
|
require('./types/index.cjs');
|
|
30
30
|
let _powerlines_core = require("@powerlines/core");
|
|
31
|
-
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
32
31
|
let _powerlines_unplugin_esbuild = require("@powerlines/unplugin/esbuild");
|
|
33
32
|
let defu = require("defu");
|
|
34
33
|
defu = __toESM(defu, 1);
|
|
35
34
|
let esbuild = require("esbuild");
|
|
35
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
36
36
|
let unplugin = require("unplugin");
|
|
37
37
|
|
|
38
38
|
//#region src/index.ts
|
|
@@ -62,7 +62,7 @@ const plugin = (options = {}) => {
|
|
|
62
62
|
});
|
|
63
63
|
this.debug({
|
|
64
64
|
meta: { category: "config" },
|
|
65
|
-
message: `Resolved Esbuild configuration: \n${(0,
|
|
65
|
+
message: `Resolved Esbuild configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
|
|
66
66
|
});
|
|
67
67
|
await (0, esbuild.build)(options);
|
|
68
68
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "./build-B8u-bRQt.cjs";
|
|
2
2
|
import { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig } 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
|
esbuild?: EsbuildPluginOptions;
|
|
9
9
|
}
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,OAAA,GAAU,oBAAoB;EAAA;AAAA;;;;cAOrB,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "./build-VnV0tsb3.mjs";
|
|
2
2
|
import { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig } 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
|
esbuild?: EsbuildPluginOptions;
|
|
9
9
|
}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,OAAA,GAAU,oBAAoB;EAAA;AAAA;;;;cAOrB,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./types/index.mjs";
|
|
2
2
|
import { createUnplugin } from "@powerlines/core";
|
|
3
|
-
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
4
3
|
import { resolveEntry, resolveOptions } from "@powerlines/unplugin/esbuild";
|
|
5
4
|
import defu from "defu";
|
|
6
5
|
import { build } from "esbuild";
|
|
6
|
+
import { formatConfig } from "powerlines/plugin-utils";
|
|
7
7
|
import { createEsbuildPlugin } from "unplugin";
|
|
8
8
|
|
|
9
9
|
//#region src/index.ts
|
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 { createUnplugin
|
|
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 { createUnplugin } from \"@powerlines/core\";\nimport { resolveEntry, resolveOptions } from \"@powerlines/unplugin/esbuild\";\nimport defu from \"defu\";\nimport { build, BuildOptions, SameShape } from \"esbuild\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { EsbuildPluginContext, EsbuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\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 esbuild: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Esbuild build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.esbuild, {\n ...resolved,\n entryPoints: resolveEntry(this, this.entry),\n config: false,\n plugins: [\n createEsbuildPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"esbuild\"\n })\n )()\n ]\n }) as SameShape<BuildOptions, BuildOptions>;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Esbuild configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAsCA,MAAa,UAGX,UAAgC,CAAC,MACZ;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,KAAK,EAChB;IACA,SAAS,EACP,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,mCAAmC;GAE9C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,SAAS;IACxC,GAAG;IACH,aAAa,aAAa,MAAM,KAAK,KAAK;IAC1C,QAAQ;IACR,SAAS,CACP,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,qCAAqC,aAAa,OAAO;GACpE,CAAC;GAED,MAAM,MAAM,OAAO;EACrB;CACF;AACF"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EsbuildOptions } from "../build-B8u-bRQt.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 EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAO,CAAC,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAU;EACzD,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAc;EACjE,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as EsbuildOptions } from "../build-VnV0tsb3.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 EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAO,CAAC,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAU;EACzD,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAc;EACjE,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-esbuild",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.496",
|
|
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"],
|
|
@@ -79,12 +79,10 @@
|
|
|
79
79
|
"module": "./dist/index.mjs",
|
|
80
80
|
"types": "./dist/index.d.cts",
|
|
81
81
|
"typings": "dist/index.d.mts",
|
|
82
|
-
"files": ["dist
|
|
83
|
-
"peerDependencies": { "esbuild": ">=0.27.3" },
|
|
84
|
-
"peerDependenciesMeta": { "esbuild": { "optional": false } },
|
|
82
|
+
"files": ["dist"],
|
|
85
83
|
"dependencies": {
|
|
86
|
-
"@powerlines/core": "^0.15.
|
|
87
|
-
"@powerlines/unplugin": "^0.0.
|
|
84
|
+
"@powerlines/core": "^0.15.19",
|
|
85
|
+
"@powerlines/unplugin": "^0.0.34",
|
|
88
86
|
"@stryke/fs": "^0.33.76",
|
|
89
87
|
"@stryke/helpers": "^0.10.16",
|
|
90
88
|
"@stryke/path": "^0.29.3",
|
|
@@ -92,9 +90,12 @@
|
|
|
92
90
|
"@stryke/types": "^0.12.4",
|
|
93
91
|
"defu": "^6.1.7",
|
|
94
92
|
"jiti": "^2.7.0",
|
|
93
|
+
"powerlines": "^0.47.41",
|
|
95
94
|
"unplugin": "^3.0.0"
|
|
96
95
|
},
|
|
97
96
|
"devDependencies": { "@types/node": "^25.8.0", "esbuild": "^0.27.7" },
|
|
97
|
+
"peerDependencies": { "esbuild": ">=0.27.3" },
|
|
98
|
+
"peerDependenciesMeta": { "esbuild": { "optional": false } },
|
|
98
99
|
"publishConfig": { "access": "public" },
|
|
99
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
100
101
|
}
|