@powerlines/plugin-tsdown 0.1.290 → 0.1.291

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.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_resolve_options = require('../resolve-options-C-QiHQuJ.cjs');
2
+ const require_resolve_options = require('../resolve-options-zRmpZ1kt.cjs');
3
3
  const require_helpers_unplugin = require('./unplugin.cjs');
4
4
 
5
5
  exports.DEFAULT_TSDOWN_CONFIG = require_resolve_options.DEFAULT_TSDOWN_CONFIG;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_resolve_options = require('../resolve-options-C-QiHQuJ.cjs');
2
+ const require_resolve_options = require('../resolve-options-zRmpZ1kt.cjs');
3
3
 
4
4
  exports.DEFAULT_TSDOWN_CONFIG = require_resolve_options.DEFAULT_TSDOWN_CONFIG;
5
5
  exports.resolveFormat = require_resolve_options.resolveFormat;
@@ -1,6 +1,6 @@
1
+ import { getDependencyConfig } from "@powerlines/core/plugin-utils";
1
2
  import { toArray } from "@stryke/convert/to-array";
2
3
  import defu from "defu";
3
- import { getDependencyConfig } from "@powerlines/core/plugin-utils";
4
4
  import { appendPath } from "@stryke/path/append";
5
5
  import { joinPaths } from "@stryke/path/join-paths";
6
6
  import { replaceExtension, replacePath } from "@stryke/path/replace";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_resolve_options = require('../resolve-options-C-QiHQuJ.cjs');
2
+ const require_resolve_options = require('../resolve-options-zRmpZ1kt.cjs');
3
3
  let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
4
4
  let unplugin = require("unplugin");
5
5
 
package/dist/index.cjs CHANGED
@@ -1,7 +1,8 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_resolve_options = require('./resolve-options-C-QiHQuJ.cjs');
2
+ const require_resolve_options = require('./resolve-options-zRmpZ1kt.cjs');
3
3
  const require_helpers_unplugin = require('./helpers/unplugin.cjs');
4
4
  require('./helpers/index.cjs');
5
+ let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
5
6
  let _powerlines_core_plugin_utils_format_package_json = require("@powerlines/core/plugin-utils/format-package-json");
6
7
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
7
8
  let defu = require("defu");
@@ -26,7 +27,7 @@ const plugin = (options = {}) => {
26
27
  this.trace("Starting Tsdown build process...");
27
28
  await (0, tsdown.build)((0, defu.default)({
28
29
  config: false,
29
- plugins: (0, _stryke_convert_to_array.toArray)(require_helpers_unplugin.createTsdownPlugin(this))
30
+ plugins: await (0, _powerlines_core_plugin_utils.combinePlugins)({ plugins: (0, _stryke_convert_to_array.toArray)(require_helpers_unplugin.createTsdownPlugin(this)) }).rolldown()
30
31
  }, require_resolve_options.resolveOptions(this)));
31
32
  await (0, _powerlines_core_plugin_utils_format_package_json.formatPackageJson)(this);
32
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAmCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;AAJgB;;;AAAA,cAWhB,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":";;;;;;;;YAoCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;AAJgB;;;AAAA,cAWhB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;YAmCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;AAJgB;;;AAAA,cAWhB,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":";;;;;;;;YAoCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;AAJgB;;;AAAA,cAWhB,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { DEFAULT_TSDOWN_CONFIG, resolveFormat, resolveFromFormat, resolveOptions } from "./helpers/resolve-options.mjs";
2
2
  import { createTsdownPlugin } from "./helpers/unplugin.mjs";
3
3
  import "./helpers/index.mjs";
4
+ import { combinePlugins } from "@powerlines/core/plugin-utils";
4
5
  import { formatPackageJson } from "@powerlines/core/plugin-utils/format-package-json";
5
6
  import { toArray } from "@stryke/convert/to-array";
6
7
  import defu from "defu";
@@ -24,7 +25,7 @@ const plugin = (options = {}) => {
24
25
  this.trace("Starting Tsdown build process...");
25
26
  await build(defu({
26
27
  config: false,
27
- plugins: toArray(createTsdownPlugin(this))
28
+ plugins: await combinePlugins({ plugins: toArray(createTsdownPlugin(this)) }).rolldown()
28
29
  }, resolveOptions(this)));
29
30
  await formatPackageJson(this);
30
31
  }
@@ -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 { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { build } from \"tsdown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createTsdownPlugin } from \"./helpers/unplugin\";\nimport {\n TsdownPluginContext,\n TsdownPluginOptions,\n TsdownPluginResolvedConfig\n} 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.trace(\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 } as Partial<TsdownPluginResolvedConfig>;\n },\n async build() {\n this.trace(\"Starting Tsdown build process...\");\n\n await build(\n defu(\n {\n config: false,\n plugins: toArray(createTsdownPlugin(this))\n },\n resolveOptions(this)\n )\n );\n\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AA2CA,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,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;AAE9C,SAAM,MACJ,KACE;IACE,QAAQ;IACR,SAAS,QAAQ,mBAAmB,KAAK,CAAC;IAC3C,EACD,eAAe,KAAK,CACrB,CACF;AAED,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 { combinePlugins } from \"@powerlines/core/plugin-utils\";\nimport { formatPackageJson } from \"@powerlines/core/plugin-utils/format-package-json\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport defu from \"defu\";\nimport { build } from \"tsdown\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createTsdownPlugin } from \"./helpers/unplugin\";\nimport {\n TsdownPluginContext,\n TsdownPluginOptions,\n TsdownPluginResolvedConfig\n} 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.trace(\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 } as Partial<TsdownPluginResolvedConfig>;\n },\n async build() {\n this.trace(\"Starting Tsdown build process...\");\n\n await build(\n defu(\n {\n config: false,\n plugins: await combinePlugins({\n plugins: toArray(createTsdownPlugin(this))\n }).rolldown()\n },\n resolveOptions(this)\n )\n );\n\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA4CA,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,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;AAE9C,SAAM,MACJ,KACE;IACE,QAAQ;IACR,SAAS,MAAM,eAAe,EAC5B,SAAS,QAAQ,mBAAmB,KAAK,CAAC,EAC3C,CAAC,CAAC,UAAU;IACd,EACD,eAAe,KAAK,CACrB,CACF;AAED,SAAM,kBAAkB,KAAK;;EAEhC"}
@@ -25,10 +25,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  }) : target, mod));
26
26
 
27
27
  //#endregion
28
+ let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
28
29
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
29
30
  let defu = require("defu");
30
31
  defu = __toESM(defu);
31
- let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
32
32
  let _stryke_path_append = require("@stryke/path/append");
33
33
  let _stryke_path_join_paths = require("@stryke/path/join-paths");
34
34
  let _stryke_path_replace = require("@stryke/path/replace");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsdown",
3
- "version": "0.1.290",
3
+ "version": "0.1.291",
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"],
@@ -53,7 +53,7 @@
53
53
  "import": "./dist/helpers/unplugin.mjs",
54
54
  "require": "./dist/helpers/unplugin.cjs"
55
55
  },
56
- "./resolve-options-C-QiHQuJ": "./dist/resolve-options-C-QiHQuJ.cjs",
56
+ "./resolve-options-zRmpZ1kt": "./dist/resolve-options-zRmpZ1kt.cjs",
57
57
  "./types": {
58
58
  "import": "./dist/types/index.mjs",
59
59
  "require": "./dist/types/index.cjs"
@@ -74,8 +74,8 @@
74
74
  "typings": "dist/index.d.mts",
75
75
  "files": ["dist/**/*"],
76
76
  "dependencies": {
77
- "@powerlines/core": "^0.2.23",
78
- "@powerlines/plugin-rolldown": "^0.7.347",
77
+ "@powerlines/core": "^0.3.0",
78
+ "@powerlines/plugin-rolldown": "^0.7.348",
79
79
  "@stryke/convert": "^0.6.53",
80
80
  "defu": "^6.1.4",
81
81
  "unplugin": "^3.0.0"
@@ -84,5 +84,5 @@
84
84
  "peerDependencies": { "tsdown": ">=0.21.2" },
85
85
  "peerDependenciesMeta": { "tsdown": { "optional": false } },
86
86
  "publishConfig": { "access": "public" },
87
- "gitHead": "2fb48143904805988bac9bdbc04cdc4a35ff398b"
87
+ "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
88
88
  }