@powerlines/plugin-tsup 0.12.666 → 0.12.667

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
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -69,5 +69,4 @@ const plugin = (options = {}) => {
69
69
  };
70
70
 
71
71
  //#endregion
72
- exports.default = plugin;
73
72
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, plugin as default, plugin };
16
+ export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, plugin };
17
17
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -13,5 +13,5 @@ declare module "powerlines" {
13
13
  */
14
14
  declare const plugin: <TContext extends TsupPluginContext = TsupPluginContext>(options?: TsupPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, plugin as default, plugin };
16
+ export { type TsupOptions, type TsupPluginContext, type TsupPluginOptions, type TsupPluginResolvedConfig, type TsupPluginUserConfig, plugin };
17
17
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -40,5 +40,5 @@ const plugin = (options = {}) => {
40
40
  };
41
41
 
42
42
  //#endregion
43
- export { plugin as default, plugin };
43
+ export { plugin };
44
44
  //# sourceMappingURL=index.mjs.map
@@ -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 { 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,CAAC,CAAC,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"}
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\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,CAAC,CAAC,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsup",
3
- "version": "0.12.666",
3
+ "version": "0.12.667",
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"],
@@ -68,8 +68,8 @@
68
68
  "typings": "dist/index.d.mts",
69
69
  "files": ["dist"],
70
70
  "dependencies": {
71
- "@powerlines/core": "^0.48.128",
72
- "@powerlines/unplugin": "^0.0.176",
71
+ "@powerlines/core": "^0.48.129",
72
+ "@powerlines/unplugin": "^0.0.177",
73
73
  "@storm-software/build-tools": "^0.158.293",
74
74
  "@stryke/convert": "^0.7.39",
75
75
  "@stryke/helpers": "^0.10.48",
@@ -77,7 +77,7 @@
77
77
  "@stryke/type-checks": "^0.6.41",
78
78
  "@stryke/types": "^0.12.36",
79
79
  "defu": "^6.1.7",
80
- "powerlines": "^0.47.209",
80
+ "powerlines": "^0.47.210",
81
81
  "unplugin": "^3.3.0"
82
82
  },
83
83
  "devDependencies": {
@@ -91,5 +91,5 @@
91
91
  "tsup": { "optional": false }
92
92
  },
93
93
  "publishConfig": { "access": "public" },
94
- "gitHead": "88974b224a5cdb97dbd377373c9ed7f8a8780324"
94
+ "gitHead": "4ee69b33975e2fa912d2c73700dc7e949f25b2d4"
95
95
  }