@powerlines/plugin-tsdown 0.1.396 → 0.1.397

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
@@ -35,7 +35,7 @@ const plugin = (options = {}) => {
35
35
  config: false,
36
36
  plugins: require_helpers_unplugin.createTsdownPlugin(this)
37
37
  }, require_helpers_resolve_options.resolveOptions(this));
38
- this.trace({
38
+ this.debug({
39
39
  meta: { category: "config" },
40
40
  message: `Resolved Tsdown configuration: \n${JSON.stringify((0, _stryke_helpers_omit.omit)(options, ["plugins"]), null, 2)}`
41
41
  });
package/dist/index.mjs CHANGED
@@ -32,7 +32,7 @@ const plugin = (options = {}) => {
32
32
  config: false,
33
33
  plugins: createTsdownPlugin(this)
34
34
  }, resolveOptions(this));
35
- this.trace({
35
+ this.debug({
36
36
  meta: { category: "config" },
37
37
  message: `Resolved Tsdown configuration: \n${JSON.stringify(omit(options, ["plugins"]), null, 2)}`
38
38
  });
@@ -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 { formatPackageJson } from \"@powerlines/core/plugin-utils/format-package-json\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport defu from \"defu\";\nimport { build } from \"tsdown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createTsdownPlugin } from \"./helpers/unplugin\";\nimport { TsdownPluginContext, TsdownPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\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 options = defu(\n {\n config: false,\n plugins: createTsdownPlugin(this)\n },\n resolveOptions(this)\n );\n\n this.trace({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsdown configuration: \\n${JSON.stringify(\n omit(options, [\"plugins\"]),\n null,\n 2\n )}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAuCA,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,UAAU,KACd;IACE,QAAQ;IACR,SAAS,mBAAmB,KAAK;IAClC,EACD,eAAe,KAAK,CACrB;AAED,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,oCAAoC,KAAK,UAChD,KAAK,SAAS,CAAC,UAAU,CAAC,EAC1B,MACA,EACD;IACF,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 { Plugin } from \"@powerlines/core\";\nimport { formatPackageJson } from \"@powerlines/core/plugin-utils/format-package-json\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport defu from \"defu\";\nimport { build } from \"tsdown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createTsdownPlugin } from \"./helpers/unplugin\";\nimport { TsdownPluginContext, TsdownPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\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 options = defu(\n {\n config: false,\n plugins: createTsdownPlugin(this)\n },\n resolveOptions(this)\n );\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Tsdown configuration: \\n${JSON.stringify(\n omit(options, [\"plugins\"]),\n null,\n 2\n )}`\n });\n\n await build(options);\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAuCA,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,UAAU,KACd;IACE,QAAQ;IACR,SAAS,mBAAmB,KAAK;IAClC,EACD,eAAe,KAAK,CACrB;AAED,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,oCAAoC,KAAK,UAChD,KAAK,SAAS,CAAC,UAAU,CAAC,EAC1B,MACA,EACD;IACF,CAAC;AAEF,SAAM,MAAM,QAAQ;AACpB,SAAM,kBAAkB,KAAK;;EAEhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsdown",
3
- "version": "0.1.396",
3
+ "version": "0.1.397",
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,8 +73,8 @@
73
73
  "typings": "dist/index.d.mts",
74
74
  "files": ["dist/**/*"],
75
75
  "dependencies": {
76
- "@powerlines/core": "^0.46.2",
77
- "@powerlines/plugin-rolldown": "^0.7.452",
76
+ "@powerlines/core": "^0.46.3",
77
+ "@powerlines/plugin-rolldown": "^0.7.453",
78
78
  "@stryke/convert": "^0.7.3",
79
79
  "@stryke/helpers": "^0.10.12",
80
80
  "defu": "^6.1.7",
@@ -92,5 +92,5 @@
92
92
  "publint": { "optional": true }
93
93
  },
94
94
  "publishConfig": { "access": "public" },
95
- "gitHead": "e2eca169a851d2b144bfc7c677e7047cedf4b6a0"
95
+ "gitHead": "9a51041e0817e438c49db05bb757b3bdbaf497ef"
96
96
  }