@powerlines/plugin-tsup 0.12.497 → 0.12.499

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -26,13 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  }) : target, mod));
27
27
 
28
28
  //#endregion
29
- require('./types/index.cjs');
30
29
  let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
31
- let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
32
30
  let _powerlines_unplugin_tsup = require("@powerlines/unplugin/tsup");
33
31
  let _storm_software_tsup = require("@storm-software/tsup");
34
32
  let defu = require("defu");
35
33
  defu = __toESM(defu, 1);
34
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
36
35
  let unplugin = require("unplugin");
37
36
 
38
37
  //#region src/index.ts
@@ -62,7 +61,7 @@ const plugin = (options = {}) => {
62
61
  }));
63
62
  this.debug({
64
63
  meta: { category: "config" },
65
- message: `Resolved Tsup configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
64
+ message: `Resolved Tsup configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
66
65
  });
67
66
  return (0, _storm_software_tsup.build)(options);
68
67
  }
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { n as __ΩTsupOptions, t as TsupOptions } from "./build-MBkBmIxx.cjs";
2
2
  import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.cjs";
3
- import { Plugin } from "@powerlines/core";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
- declare module "@powerlines/core" {
6
+ declare module "powerlines" {
7
7
  interface Config {
8
8
  tsup?: TsupPluginOptions;
9
9
  }
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
13
13
  */
14
14
  declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { TsupOptions, TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupOptions, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, plugin as default, plugin };
16
+ export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, type __ΩTsupOptions, type __ΩTsupPluginContext, type __ΩTsupPluginOptions, type __ΩTsupPluginResolvedConfig, type __ΩTsupPluginUserConfig, plugin as default, plugin };
17
17
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,iBAAA;EAAA;AAAA;;;;cAOE,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,iBAAiB;EAAA;AAAA;;;;cAOf,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { n as __ΩTsupOptions, t as TsupOptions } from "./build-D4pj3EFA.mjs";
2
2
  import { TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig } from "./types/plugin.mjs";
3
- import { Plugin } from "@powerlines/core";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
- declare module "@powerlines/core" {
6
+ declare module "powerlines" {
7
7
  interface Config {
8
8
  tsup?: TsupPluginOptions;
9
9
  }
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
13
13
  */
14
14
  declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { TsupOptions, TsupPluginContext, TsupPluginOptions, TsupPluginResolvedConfig, TsupPluginUserConfig, __ΩTsupOptions, __ΩTsupPluginContext, __ΩTsupPluginOptions, __ΩTsupPluginResolvedConfig, __ΩTsupPluginUserConfig, plugin as default, plugin };
16
+ export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, type __ΩTsupOptions, type __ΩTsupPluginContext, type __ΩTsupPluginOptions, type __ΩTsupPluginResolvedConfig, type __ΩTsupPluginUserConfig, plugin as default, plugin };
17
17
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,iBAAA;EAAA;AAAA;;;;cAOE,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAmCY,MAAA;IACR,IAAA,GAAO,iBAAiB;EAAA;AAAA;;;;cAOf,MAAA,oBAA2B,iBAAA,GAAoB,iBAAA,EAC1D,OAAA,GAAS,iBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,9 +1,8 @@
1
- import "./types/index.mjs";
2
1
  import { createUnplugin } from "@powerlines/core/lib/unplugin";
3
- import { formatConfig } from "@powerlines/core/plugin-utils";
4
2
  import { resolveOptions } from "@powerlines/unplugin/tsup";
5
3
  import { build, resolveOptions as resolveOptions$1 } from "@storm-software/tsup";
6
4
  import defu from "defu";
5
+ import { formatConfig } from "powerlines/plugin-utils";
7
6
  import { createEsbuildPlugin } from "unplugin";
8
7
 
9
8
  //#region src/index.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["resolveOptionsBase"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Plugin } from \"@powerlines/core\";\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { resolveOptions } from \"@powerlines/unplugin/tsup\";\nimport {\n build,\n BuildOptions,\n resolveOptions as resolveOptionsBase\n} from \"@storm-software/tsup\";\nimport defu from \"defu\";\nimport { Options } from \"tsup\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { TsupPluginContext, TsupPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n tsup?: TsupPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to use Tsup to build the project.\n */\nexport const plugin = <TContext extends TsupPluginContext = TsupPluginContext>(\n options: TsupPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsup\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `tsup` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsup: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Tsup build process...\");\n\n const resolved = resolveOptions(this);\n const options = resolveOptionsBase(\n defu(this.config.tsup, {\n ...resolved,\n config: false,\n esbuildPlugins: [\n createEsbuildPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"tsup\"\n })\n )()\n ]\n }) as BuildOptions\n ) as Options;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsup configuration: \\n${formatConfig(options)}`\n });\n\n return build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AA2CA,MAAa,UACX,UAA6B,EAAE,KACV;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,0EACD;AAED,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,MAAM,EACJ,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,iCAAiC;GAE5C,MAAM,WAAW,eAAe,KAAK;GACrC,MAAM,UAAUA,iBACd,KAAK,KAAK,OAAO,MAAM;IACrB,GAAG;IACH,QAAQ;IACR,gBAAgB,CACd,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;KACP,CAAC,CACH,EAAE,CACJ;IACF,CAAC,CACH;AAED,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,kCAAkC,aAAa,QAAQ;IACjE,CAAC;AAEF,UAAO,MAAM,QAAQ;;EAExB"}
1
+ {"version":3,"file":"index.mjs","names":["resolveOptionsBase"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { resolveOptions } from \"@powerlines/unplugin/tsup\";\nimport type { BuildOptions } from \"@storm-software/tsup\";\nimport {\n build,\n resolveOptions as resolveOptionsBase\n} from \"@storm-software/tsup\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig } from \"powerlines/plugin-utils\";\nimport type { Options } from \"tsup\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport type { TsupPluginContext, TsupPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n tsup?: TsupPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to use Tsup to build the project.\n */\nexport const plugin = <TContext extends TsupPluginContext = TsupPluginContext>(\n options: TsupPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsup\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `tsup` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsup: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Tsup build process...\");\n\n const resolved = resolveOptions(this);\n const options = resolveOptionsBase(\n defu(this.config.tsup, {\n ...resolved,\n config: false,\n esbuildPlugins: [\n createEsbuildPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"tsup\"\n })\n )()\n ]\n }) as BuildOptions\n ) as Options;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsup configuration: \\n${formatConfig(options)}`\n });\n\n return build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA2CA,MAAa,UACX,UAA6B,CAAC,MACT;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,yEACF;GAEA,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,MAAM,EACJ,GAAG,QACL;GACF;EACF;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,gCAAgC;GAE3C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAUA,iBACd,KAAK,KAAK,OAAO,MAAM;IACrB,GAAG;IACH,QAAQ;IACR,gBAAgB,CACd,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC,CACH;GAEA,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,kCAAkC,aAAa,OAAO;GACjE,CAAC;GAED,OAAO,MAAM,OAAO;EACtB;CACF;AACF"}
@@ -0,0 +1,2 @@
1
+ require('./plugin.cjs');
2
+ require('./build.cjs');
@@ -1 +1,4 @@
1
+ import "./plugin.mjs";
2
+ import "./build.mjs";
3
+
1
4
  export { };
@@ -1,5 +1,5 @@
1
1
  import { t as TsupOptions } from "../build-MBkBmIxx.cjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type TsupPluginOptions = Partial<TsupOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,OAAA,CAAQ,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAA;EAC5C,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAA;EAChD,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,OAAO,CAAC,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAU;EACtD,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAc;EAC9D,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as TsupOptions } from "../build-D4pj3EFA.mjs";
2
- import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type TsupPluginOptions = Partial<TsupOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,OAAA,CAAQ,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAA;EAC5C,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAA;EAChD,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,iBAAA,GAAoB,OAAO,CAAC,WAAA;AAAA,UAEvB,oBAAA,SAA6B,UAAU;EACtD,IAAA,GAAO,iBAAA;AAAA;AAAA,UAGQ,wBAAA,SAAiC,cAAc;EAC9D,IAAA,EAAM,WAAA;AAAA;AAAA,KAGI,iBAAA,yBACc,wBAAA,GAA2B,wBAAA,IACjD,aAAA,CAAc,eAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsup",
3
- "version": "0.12.497",
3
+ "version": "0.12.499",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["tsup", "powerlines", "storm-software", "powerlines-plugin"],
@@ -73,8 +73,8 @@
73
73
  "typings": "dist/index.d.mts",
74
74
  "files": ["dist"],
75
75
  "dependencies": {
76
- "@powerlines/core": "^0.15.18",
77
- "@powerlines/unplugin": "^0.0.33",
76
+ "@powerlines/core": "^0.15.20",
77
+ "@powerlines/unplugin": "^0.0.35",
78
78
  "@storm-software/build-tools": "^0.158.180",
79
79
  "@stryke/convert": "^0.7.7",
80
80
  "@stryke/helpers": "^0.10.16",
@@ -82,11 +82,12 @@
82
82
  "@stryke/type-checks": "^0.6.9",
83
83
  "@stryke/types": "^0.12.4",
84
84
  "defu": "^6.1.7",
85
+ "powerlines": "^0.47.42",
85
86
  "unplugin": "^3.0.0"
86
87
  },
87
88
  "devDependencies": {
88
89
  "@storm-software/tsup": "^0.2.178",
89
- "@types/node": "^25.8.0",
90
+ "@types/node": "^25.9.0",
90
91
  "tsup": "8.4.0"
91
92
  },
92
93
  "peerDependencies": { "@storm-software/tsup": ">=0.57.0", "tsup": ">=8.4.0" },
@@ -95,5 +96,5 @@
95
96
  "tsup": { "optional": false }
96
97
  },
97
98
  "publishConfig": { "access": "public" },
98
- "gitHead": "c5c293e753d59ab690265988c77bd535680ac71b"
99
+ "gitHead": "2dbbdb2f6fde8f0f49208757c7c1b18deb96ff97"
99
100
  }