@powerlines/plugin-tsdown 0.1.441 → 0.1.442

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
@@ -27,11 +27,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
 
28
28
  //#endregion
29
29
  let _powerlines_core = require("@powerlines/core");
30
- let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
31
- let _powerlines_core_plugin_utils_format_package_json = require("@powerlines/core/plugin-utils/format-package-json");
32
30
  let _powerlines_unplugin_tsdown = require("@powerlines/unplugin/tsdown");
33
31
  let defu = require("defu");
34
32
  defu = __toESM(defu, 1);
33
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
35
34
  let tsdown = require("tsdown");
36
35
  let unplugin = require("unplugin");
37
36
 
@@ -67,10 +66,10 @@ const plugin = (options = {}) => {
67
66
  });
68
67
  this.debug({
69
68
  meta: { category: "config" },
70
- message: `Resolved Tsdown configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
69
+ message: `Resolved Tsdown configuration: \n${(0, powerlines_plugin_utils.formatConfig)(options)}`
71
70
  });
72
71
  await (0, tsdown.build)(options);
73
- await (0, _powerlines_core_plugin_utils_format_package_json.formatPackageJson)(this);
72
+ await (0, powerlines_plugin_utils.formatPackageJson)(this);
74
73
  }
75
74
  };
76
75
  };
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { n as __ΩTsdownOptions, t as TsdownOptions } from "./build-DGSkbjen.cjs";
2
2
  import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } 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
  tsdown?: TsdownPluginOptions;
9
9
  }
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
13
13
  */
14
14
  declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { TsdownOptions, TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownOptions, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, plugin as default, plugin };
16
+ export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, type __ΩTsdownOptions, type __ΩTsdownPluginContext, type __ΩTsdownPluginOptions, type __ΩTsdownPluginResolvedConfig, type __ΩTsdownPluginUserConfig, 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":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAmB;EAAA;AAAA;;;;cAOnB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { n as __ΩTsdownOptions, t as TsdownOptions } from "./build-CFHXlkSV.mjs";
2
2
  import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } 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
  tsdown?: TsdownPluginOptions;
9
9
  }
@@ -13,5 +13,5 @@ declare module "@powerlines/core" {
13
13
  */
14
14
  declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
15
15
  //#endregion
16
- export { TsdownOptions, TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownOptions, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, plugin as default, plugin };
16
+ export { type TsdownOptions, type TsdownPluginContext, type TsdownPluginOptions, type TsdownPluginResolvedConfig, type TsdownPluginUserConfig, type __ΩTsdownOptions, type __ΩTsdownPluginContext, type __ΩTsdownPluginOptions, type __ΩTsdownPluginResolvedConfig, type __ΩTsdownPluginUserConfig, 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":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAmB;EAAA;AAAA;;;;cAOnB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import { createUnplugin } from "@powerlines/core";
2
- import { formatConfig } from "@powerlines/core/plugin-utils";
3
- import { formatPackageJson } from "@powerlines/core/plugin-utils/format-package-json";
4
2
  import { resolveOptions } from "@powerlines/unplugin/tsdown";
5
3
  import defu from "defu";
4
+ import { formatConfig, formatPackageJson } from "powerlines/plugin-utils";
6
5
  import { build } from "tsdown";
7
6
  import { createRolldownPlugin } from "unplugin";
8
7
 
@@ -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, Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { formatPackageJson } from \"@powerlines/core/plugin-utils/format-package-json\";\nimport { resolveOptions } from \"@powerlines/unplugin/tsdown\";\nimport defu from \"defu\";\nimport { build, InlineConfig } from \"tsdown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { TsdownPluginContext, TsdownPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n tsdown?: TsdownPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to use Tsdown to build the project.\n */\nexport const plugin = <\n TContext extends TsdownPluginContext = TsdownPluginContext\n>(\n options: TsdownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsdown\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `tsdown` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsdown: {\n ...options\n }\n };\n },\n configResolved() {\n this.debug(\n \"Checking for Tsdown related dependencies required by the project.\"\n );\n\n if (this.config.tsdown?.attw) {\n this.devDependencies[\"@arethetypeswrong/core\"] = \"^0.18.2\";\n }\n\n if (this.config.tsdown?.publint) {\n this.devDependencies.publint = \"^0.3.18\";\n }\n },\n async build() {\n this.debug(\"Starting Tsdown build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.tsdown, {\n ...resolved,\n config: false,\n plugins: [\n createRolldownPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"tsdown\"\n })\n )()\n ]\n }) as InlineConfig;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsdown configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAsCA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,4EACD;AAED,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,MAAM,EACvB;IACD,QAAQ,EACN,GAAG,SACJ;IACF;;EAEH,iBAAiB;AACf,QAAK,MACH,oEACD;AAED,OAAI,KAAK,OAAO,QAAQ,KACtB,MAAK,gBAAgB,4BAA4B;AAGnD,OAAI,KAAK,OAAO,QAAQ,QACtB,MAAK,gBAAgB,UAAU;;EAGnC,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;GAE9C,MAAM,WAAW,eAAe,KAAK;GACrC,MAAM,UAAU,KAAK,KAAK,OAAO,QAAQ;IACvC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,qBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;KACP,CAAC,CACH,EAAE,CACJ;IACF,CAAC;AAEF,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,oCAAoC,aAAa,QAAQ;IACnE,CAAC;AAEF,SAAM,MAAM,QAAQ;AACpB,SAAM,kBAAkB,KAAK;;EAEhC"}
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 { resolveOptions } from \"@powerlines/unplugin/tsdown\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { formatConfig, formatPackageJson } from \"powerlines/plugin-utils\";\nimport { build, InlineConfig } from \"tsdown\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport type { TsdownPluginContext, TsdownPluginOptions } from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n tsdown?: TsdownPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to use Tsdown to build the project.\n */\nexport const plugin = <\n TContext extends TsdownPluginContext = TsdownPluginContext\n>(\n options: TsdownPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsdown\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines `tsdown` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n tsdown: {\n ...options\n }\n };\n },\n configResolved() {\n this.debug(\n \"Checking for Tsdown related dependencies required by the project.\"\n );\n\n if (this.config.tsdown?.attw) {\n this.devDependencies[\"@arethetypeswrong/core\"] = \"^0.18.2\";\n }\n\n if (this.config.tsdown?.publint) {\n this.devDependencies.publint = \"^0.3.18\";\n }\n },\n async build() {\n this.debug(\"Starting Tsdown build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.tsdown, {\n ...resolved,\n config: false,\n plugins: [\n createRolldownPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"tsdown\"\n })\n )()\n ]\n }) as InlineConfig;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsdown configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAsCA,MAAa,UAGX,UAA+B,CAAC,MACX;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,KAAK,MACH,2EACF;GAEA,OAAO;IACL,QAAQ,EACN,QAAQ,CAAC,OAAO,KAAK,EACvB;IACA,QAAQ,EACN,GAAG,QACL;GACF;EACF;EACA,iBAAiB;GACf,KAAK,MACH,mEACF;GAEA,IAAI,KAAK,OAAO,QAAQ,MACtB,KAAK,gBAAgB,4BAA4B;GAGnD,IAAI,KAAK,OAAO,QAAQ,SACtB,KAAK,gBAAgB,UAAU;EAEnC;EACA,MAAM,QAAQ;GACZ,KAAK,MAAM,kCAAkC;GAE7C,MAAM,WAAW,eAAe,IAAI;GACpC,MAAM,UAAU,KAAK,KAAK,OAAO,QAAQ;IACvC,GAAG;IACH,QAAQ;IACR,SAAS,CACP,qBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;IACR,CAAC,CACH,EAAE,CACJ;GACF,CAAC;GAED,KAAK,MAAM;IACT,MAAM,EACJ,UAAU,SACZ;IACA,SAAS,oCAAoC,aAAa,OAAO;GACnE,CAAC;GAED,MAAM,MAAM,OAAO;GACnB,MAAM,kBAAkB,IAAI;EAC9B;CACF;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { t as TsdownOptions } from "../build-DGSkbjen.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 TsdownPluginOptions = Partial<TsdownOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAO,CAAC,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAU;EACxD,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAc;EAChE,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { t as TsdownOptions } from "../build-CFHXlkSV.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 TsdownPluginOptions = Partial<TsdownOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAA,CAAQ,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAA;EAClD,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,OAAO,CAAC,aAAA;AAAA,UAEzB,sBAAA,SAA+B,UAAU;EACxD,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,cAAc;EAChE,MAAA,EAAQ,aAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsdown",
3
- "version": "0.1.441",
3
+ "version": "0.1.442",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "keywords": ["tsdown", "powerlines", "storm-software", "powerlines-plugin"],
@@ -73,14 +73,15 @@
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.19",
77
+ "@powerlines/unplugin": "^0.0.34",
78
78
  "@stryke/convert": "^0.7.7",
79
79
  "@stryke/helpers": "^0.10.16",
80
80
  "defu": "^6.1.7",
81
+ "powerlines": "^0.47.41",
81
82
  "unplugin": "^3.0.0"
82
83
  },
83
- "devDependencies": { "@types/node": "^25.8.0", "tsdown": "^0.21.10" },
84
+ "devDependencies": { "@types/node": "^25.8.0", "tsdown": "^0.22.0" },
84
85
  "peerDependencies": {
85
86
  "@arethetypeswrong/core": ">=0.18.2",
86
87
  "publint": ">=0.3.18",
@@ -92,5 +93,5 @@
92
93
  "tsdown": { "optional": false }
93
94
  },
94
95
  "publishConfig": { "access": "public" },
95
- "gitHead": "c5c293e753d59ab690265988c77bd535680ac71b"
96
+ "gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
96
97
  }