@powerlines/plugin-tsdown 0.1.191 → 0.1.192

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.
Files changed (46) hide show
  1. package/dist/helpers/index.cjs +3 -2
  2. package/dist/helpers/index.d.cts +3 -1
  3. package/dist/helpers/index.d.mts +3 -1
  4. package/dist/helpers/index.mjs +2 -1
  5. package/dist/helpers/unplugin.cjs +2 -10
  6. package/dist/helpers/unplugin.d.cts +2 -6
  7. package/dist/helpers/unplugin.d.mts +2 -6
  8. package/dist/helpers/unplugin.mjs +1 -8
  9. package/dist/helpers-B15z10jN.mjs +1 -0
  10. package/dist/helpers-LF26RHol.cjs +0 -0
  11. package/dist/index-9iG2qHLe.d.mts +1 -0
  12. package/dist/index-D4ELpJXS.d.cts +1 -0
  13. package/dist/index-D6CnpA_r.d.cts +1 -0
  14. package/dist/index-DL0uimUT.d.mts +1 -0
  15. package/dist/index.cjs +35 -6
  16. package/dist/index.d.cts +6 -5
  17. package/dist/index.d.cts.map +1 -0
  18. package/dist/index.d.mts +6 -5
  19. package/dist/index.d.mts.map +1 -0
  20. package/dist/index.mjs +6 -3
  21. package/dist/index.mjs.map +1 -0
  22. package/dist/plugin-BohvMapN.d.cts +17 -0
  23. package/dist/plugin-BohvMapN.d.cts.map +1 -0
  24. package/dist/plugin-By2hpTwn.d.mts +17 -0
  25. package/dist/plugin-By2hpTwn.d.mts.map +1 -0
  26. package/dist/plugin-ifZVa20V.mjs +1 -0
  27. package/dist/plugin-pBKbb5K9.cjs +0 -0
  28. package/dist/types/index.cjs +2 -0
  29. package/dist/types/index.d.cts +2 -1
  30. package/dist/types/index.d.mts +2 -1
  31. package/dist/types/index.mjs +3 -0
  32. package/dist/types/plugin.cjs +1 -0
  33. package/dist/types/plugin.d.cts +1 -15
  34. package/dist/types/plugin.d.mts +1 -15
  35. package/dist/types/plugin.mjs +2 -0
  36. package/dist/types-U3zd8PTP.mjs +1 -0
  37. package/dist/types-o3zWarRp.cjs +0 -0
  38. package/dist/unplugin-COtJJRXi.d.mts +8 -0
  39. package/dist/unplugin-COtJJRXi.d.mts.map +1 -0
  40. package/dist/unplugin-Ca4es71P.cjs +16 -0
  41. package/dist/unplugin-LwBbzSbq.mjs +11 -0
  42. package/dist/unplugin-LwBbzSbq.mjs.map +1 -0
  43. package/dist/unplugin-rS-jtHDh.d.cts +8 -0
  44. package/dist/unplugin-rS-jtHDh.d.cts.map +1 -0
  45. package/package.json +4 -4
  46. package/dist/_virtual/rolldown_runtime.cjs +0 -29
@@ -1,3 +1,4 @@
1
- const require_helpers_unplugin = require('./unplugin.cjs');
1
+ const require_unplugin = require('../unplugin-Ca4es71P.cjs');
2
+ require('../helpers-LF26RHol.cjs');
2
3
 
3
- exports.createTsdownPlugin = require_helpers_unplugin.createTsdownPlugin;
4
+ exports.createTsdownPlugin = require_unplugin.createTsdownPlugin;
@@ -1,2 +1,4 @@
1
- import { createTsdownPlugin } from "./unplugin.cjs";
1
+ import "../plugin-BohvMapN.cjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-rS-jtHDh.cjs";
3
+ import "../index-D6CnpA_r.cjs";
2
4
  export { createTsdownPlugin };
@@ -1,2 +1,4 @@
1
- import { createTsdownPlugin } from "./unplugin.mjs";
1
+ import "../plugin-By2hpTwn.mjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-COtJJRXi.mjs";
3
+ import "../index-DL0uimUT.mjs";
2
4
  export { createTsdownPlugin };
@@ -1,3 +1,4 @@
1
- import { createTsdownPlugin } from "./unplugin.mjs";
1
+ import { t as createTsdownPlugin } from "../unplugin-LwBbzSbq.mjs";
2
+ import "../helpers-B15z10jN.mjs";
2
3
 
3
4
  export { createTsdownPlugin };
@@ -1,11 +1,3 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
3
- let unplugin = require("unplugin");
1
+ const require_unplugin = require('../unplugin-Ca4es71P.cjs');
4
2
 
5
- //#region src/helpers/unplugin.ts
6
- function createTsdownPlugin(context) {
7
- return (0, unplugin.createRolldownPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
8
- }
9
-
10
- //#endregion
11
- exports.createTsdownPlugin = createTsdownPlugin;
3
+ exports.createTsdownPlugin = require_unplugin.createTsdownPlugin;
@@ -1,7 +1,3 @@
1
- import { TsdownPluginContext } from "../types/plugin.cjs";
2
- import * as rolldown0 from "rolldown";
3
-
4
- //#region src/helpers/unplugin.d.ts
5
- declare function createTsdownPlugin(context: TsdownPluginContext): rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
6
- //#endregion
1
+ import "../plugin-BohvMapN.cjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-rS-jtHDh.cjs";
7
3
  export { createTsdownPlugin };
@@ -1,7 +1,3 @@
1
- import { TsdownPluginContext } from "../types/plugin.mjs";
2
- import * as rolldown0 from "rolldown";
3
-
4
- //#region src/helpers/unplugin.d.ts
5
- declare function createTsdownPlugin(context: TsdownPluginContext): rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
6
- //#endregion
1
+ import "../plugin-By2hpTwn.mjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-COtJJRXi.mjs";
7
3
  export { createTsdownPlugin };
@@ -1,10 +1,3 @@
1
- import { createUnplugin } from "powerlines/lib/unplugin";
2
- import { createRolldownPlugin } from "unplugin";
1
+ import { t as createTsdownPlugin } from "../unplugin-LwBbzSbq.mjs";
3
2
 
4
- //#region src/helpers/unplugin.ts
5
- function createTsdownPlugin(context) {
6
- return createRolldownPlugin(createUnplugin(context))({});
7
- }
8
-
9
- //#endregion
10
3
  export { createTsdownPlugin };
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,9 +1,37 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_helpers_unplugin = require('./helpers/unplugin.cjs');
4
- require('./helpers/index.cjs');
2
+ //#region rolldown:runtime
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) {
14
+ __defProp(to, key, {
15
+ get: ((k) => from[k]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ }
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+
28
+ //#endregion
29
+ const require_unplugin = require('./unplugin-Ca4es71P.cjs');
30
+ require('./helpers-LF26RHol.cjs');
31
+ require('./plugin-pBKbb5K9.cjs');
32
+ require('./types-o3zWarRp.cjs');
5
33
  let defu = require("defu");
6
- defu = require_rolldown_runtime.__toESM(defu);
34
+ defu = __toESM(defu);
7
35
  let powerlines_lib_build_tsdown = require("powerlines/lib/build/tsdown");
8
36
  let tsdown = require("tsdown");
9
37
 
@@ -28,7 +56,7 @@ const plugin = (options = {}) => {
28
56
  this.trace("Starting Tsdown build process...");
29
57
  await (0, tsdown.build)((0, defu.default)({
30
58
  config: false,
31
- plugins: [require_helpers_unplugin.createTsdownPlugin(this)]
59
+ plugins: [require_unplugin.createTsdownPlugin(this)]
32
60
  }, (0, powerlines_lib_build_tsdown.extractTsdownConfig)(this)));
33
61
  }
34
62
  };
@@ -36,6 +64,7 @@ const plugin = (options = {}) => {
36
64
  var src_default = plugin;
37
65
 
38
66
  //#endregion
39
- exports.createTsdownPlugin = require_helpers_unplugin.createTsdownPlugin;
67
+ exports.__toESM = __toESM;
68
+ exports.createTsdownPlugin = require_unplugin.createTsdownPlugin;
40
69
  exports.default = src_default;
41
70
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } from "./types/plugin.cjs";
2
- import { createTsdownPlugin } from "./helpers/unplugin.cjs";
3
- import "./helpers/index.cjs";
4
- import "./types/index.cjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-BohvMapN.cjs";
2
+ import { t as createTsdownPlugin } from "./unplugin-rS-jtHDh.cjs";
3
+ import "./index-D6CnpA_r.cjs";
4
+ import "./index-D4ELpJXS.cjs";
5
5
  import { Plugin } from "powerlines/types/plugin";
6
6
 
7
7
  //#region src/index.d.ts
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
10
10
  */
11
11
  declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
12
12
  //#endregion
13
- export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, createTsdownPlugin, plugin as default, plugin };
13
+ export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, createTsdownPlugin, plugin as default, plugin };
14
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAmCa,cAAA,MAoCZ,EAAA,CAAA,iBAnCkB,mBAmClB,GAnCwC,mBAmCxC,CAAA,CAAA,OAAA,CAAA,EAjCU,mBAiCV,EAAA,GAhCE,MAgCF,CAhCS,QAgCT,CAAA"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } from "./types/plugin.mjs";
2
- import { createTsdownPlugin } from "./helpers/unplugin.mjs";
3
- import "./helpers/index.mjs";
4
- import "./types/index.mjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-By2hpTwn.mjs";
2
+ import { t as createTsdownPlugin } from "./unplugin-COtJJRXi.mjs";
3
+ import "./index-DL0uimUT.mjs";
4
+ import "./index-9iG2qHLe.mjs";
5
5
  import { Plugin } from "powerlines/types/plugin";
6
6
 
7
7
  //#region src/index.d.ts
@@ -10,4 +10,5 @@ import { Plugin } from "powerlines/types/plugin";
10
10
  */
11
11
  declare const plugin: <TContext extends TsdownPluginContext = TsdownPluginContext>(options?: TsdownPluginOptions) => Plugin<TContext>;
12
12
  //#endregion
13
- export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, createTsdownPlugin, plugin as default, plugin };
13
+ export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig, createTsdownPlugin, plugin as default, plugin };
14
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;AAmCa,cAAA,MAoCZ,EAAA,CAAA,iBAnCkB,mBAmClB,GAnCwC,mBAmCxC,CAAA,CAAA,OAAA,CAAA,EAjCU,mBAiCV,EAAA,GAhCE,MAgCF,CAhCS,QAgCT,CAAA"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,7 @@
1
- import { createTsdownPlugin } from "./helpers/unplugin.mjs";
2
- import "./helpers/index.mjs";
1
+ import { t as createTsdownPlugin } from "./unplugin-LwBbzSbq.mjs";
2
+ import "./helpers-B15z10jN.mjs";
3
+ import "./plugin-ifZVa20V.mjs";
4
+ import "./types-U3zd8PTP.mjs";
3
5
  import defu from "defu";
4
6
  import { extractTsdownConfig } from "powerlines/lib/build/tsdown";
5
7
  import { build } from "tsdown";
@@ -33,4 +35,5 @@ const plugin = (options = {}) => {
33
35
  var src_default = plugin;
34
36
 
35
37
  //#endregion
36
- export { createTsdownPlugin, src_default as default, plugin };
38
+ export { createTsdownPlugin, src_default as default, plugin };
39
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +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 defu from \"defu\";\nimport { extractTsdownConfig } from \"powerlines/lib/build/tsdown\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { build } from \"tsdown\";\nimport { createTsdownPlugin } from \"./helpers/unplugin\";\nimport {\n TsdownPluginContext,\n TsdownPluginOptions,\n TsdownPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\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 build: {\n ...options,\n variant: \"tsdown\"\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: [createTsdownPlugin(this)]\n },\n extractTsdownConfig(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAmCA,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,OAAO;KACL,GAAG;KACH,SAAS;KACV;IACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,mCAAmC;AAE9C,SAAM,MACJ,KACE;IACE,QAAQ;IACR,SAAS,CAAC,mBAAmB,KAAK,CAAC;IACpC,EACD,oBAAoB,KAAK,CAC1B,CACF;;EAEJ;;AAGH,kBAAe"}
@@ -0,0 +1,17 @@
1
+ import { TsdownBuildConfig } from "powerlines/types/build";
2
+ import { TsdownUserConfig } from "powerlines/types/config";
3
+ import { PluginContext } from "powerlines/types/context";
4
+ import { TsdownResolvedConfig } from "powerlines/types/resolved";
5
+
6
+ //#region src/types/plugin.d.ts
7
+ type TsdownPluginOptions = Partial<TsdownBuildConfig>;
8
+ type TsdownPluginUserConfig = TsdownUserConfig;
9
+ type TsdownPluginResolvedConfig = TsdownResolvedConfig;
10
+ type TsdownPluginContext<TResolvedConfig extends TsdownPluginResolvedConfig = TsdownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
11
+ declare type __ΩTsdownPluginOptions = any[];
12
+ declare type __ΩTsdownPluginUserConfig = any[];
13
+ declare type __ΩTsdownPluginResolvedConfig = any[];
14
+ declare type __ΩTsdownPluginContext = any[];
15
+ //#endregion
16
+ export { __ΩTsdownPluginContext as a, __ΩTsdownPluginUserConfig as c, TsdownPluginUserConfig as i, TsdownPluginOptions as n, __ΩTsdownPluginOptions as o, TsdownPluginResolvedConfig as r, __ΩTsdownPluginResolvedConfig as s, TsdownPluginContext as t };
17
+ //# sourceMappingURL=plugin-BohvMapN.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-BohvMapN.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,mBAAA,GAAsB,QAAQ;KAE9B,sBAAA,GAAyB;AAFzB,KAIA,0BAAA,GAA6B,oBAJP;AAEtB,KAIA,mBAJsB,CAAA,wBAKR,0BAL2B,GAMjD,0BANiD,CAAA,GAOjD,aAPiD,CAOnC,eAPmC,CAAA;AAEzC,sCAA6B,GAAA,EAAA;AAE7B,yCAAmB,GAAA,EAAA;AACL,6CAAA,GAAA,EAAA;AACtB,sCAAA,GAAA,EAAA"}
@@ -0,0 +1,17 @@
1
+ import { TsdownBuildConfig } from "powerlines/types/build";
2
+ import { TsdownUserConfig } from "powerlines/types/config";
3
+ import { PluginContext } from "powerlines/types/context";
4
+ import { TsdownResolvedConfig } from "powerlines/types/resolved";
5
+
6
+ //#region src/types/plugin.d.ts
7
+ type TsdownPluginOptions = Partial<TsdownBuildConfig>;
8
+ type TsdownPluginUserConfig = TsdownUserConfig;
9
+ type TsdownPluginResolvedConfig = TsdownResolvedConfig;
10
+ type TsdownPluginContext<TResolvedConfig extends TsdownPluginResolvedConfig = TsdownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
11
+ declare type __ΩTsdownPluginOptions = any[];
12
+ declare type __ΩTsdownPluginUserConfig = any[];
13
+ declare type __ΩTsdownPluginResolvedConfig = any[];
14
+ declare type __ΩTsdownPluginContext = any[];
15
+ //#endregion
16
+ export { __ΩTsdownPluginContext as a, __ΩTsdownPluginUserConfig as c, TsdownPluginUserConfig as i, TsdownPluginOptions as n, __ΩTsdownPluginOptions as o, TsdownPluginResolvedConfig as r, __ΩTsdownPluginResolvedConfig as s, TsdownPluginContext as t };
17
+ //# sourceMappingURL=plugin-By2hpTwn.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-By2hpTwn.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,mBAAA,GAAsB,QAAQ;KAE9B,sBAAA,GAAyB;AAFzB,KAIA,0BAAA,GAA6B,oBAJP;AAEtB,KAIA,mBAJsB,CAAA,wBAKR,0BAL2B,GAMjD,0BANiD,CAAA,GAOjD,aAPiD,CAOnC,eAPmC,CAAA;AAEzC,sCAA6B,GAAA,EAAA;AAE7B,yCAAmB,GAAA,EAAA;AACL,6CAAA,GAAA,EAAA;AACtB,sCAAA,GAAA,EAAA"}
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1,2 @@
1
+ require('../plugin-pBKbb5K9.cjs');
2
+ require('../types-o3zWarRp.cjs');
@@ -1,2 +1,3 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } from "./plugin.cjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-BohvMapN.cjs";
2
+ import "../index-D4ELpJXS.cjs";
2
3
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1,2 +1,3 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig } from "./plugin.mjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-By2hpTwn.mjs";
2
+ import "../index-9iG2qHLe.mjs";
2
3
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1 +1,4 @@
1
+ import "../plugin-ifZVa20V.mjs";
2
+ import "../types-U3zd8PTP.mjs";
3
+
1
4
  export { };
@@ -0,0 +1 @@
1
+ require('../plugin-pBKbb5K9.cjs');
@@ -1,16 +1,2 @@
1
- import { TsdownBuildConfig } from "powerlines/types/build";
2
- import { TsdownUserConfig } from "powerlines/types/config";
3
- import { PluginContext } from "powerlines/types/context";
4
- import { TsdownResolvedConfig } from "powerlines/types/resolved";
5
-
6
- //#region src/types/plugin.d.ts
7
- type TsdownPluginOptions = Partial<TsdownBuildConfig>;
8
- type TsdownPluginUserConfig = TsdownUserConfig;
9
- type TsdownPluginResolvedConfig = TsdownResolvedConfig;
10
- type TsdownPluginContext<TResolvedConfig extends TsdownPluginResolvedConfig = TsdownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
11
- declare type __ΩTsdownPluginOptions = any[];
12
- declare type __ΩTsdownPluginUserConfig = any[];
13
- declare type __ΩTsdownPluginResolvedConfig = any[];
14
- declare type __ΩTsdownPluginContext = any[];
15
- //#endregion
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-BohvMapN.cjs";
16
2
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1,16 +1,2 @@
1
- import { TsdownBuildConfig } from "powerlines/types/build";
2
- import { TsdownUserConfig } from "powerlines/types/config";
3
- import { PluginContext } from "powerlines/types/context";
4
- import { TsdownResolvedConfig } from "powerlines/types/resolved";
5
-
6
- //#region src/types/plugin.d.ts
7
- type TsdownPluginOptions = Partial<TsdownBuildConfig>;
8
- type TsdownPluginUserConfig = TsdownUserConfig;
9
- type TsdownPluginResolvedConfig = TsdownResolvedConfig;
10
- type TsdownPluginContext<TResolvedConfig extends TsdownPluginResolvedConfig = TsdownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
11
- declare type __ΩTsdownPluginOptions = any[];
12
- declare type __ΩTsdownPluginUserConfig = any[];
13
- declare type __ΩTsdownPluginResolvedConfig = any[];
14
- declare type __ΩTsdownPluginContext = any[];
15
- //#endregion
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-By2hpTwn.mjs";
16
2
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1 +1,3 @@
1
+ import "../plugin-ifZVa20V.mjs";
2
+
1
3
  export { };
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1,8 @@
1
+ import { t as TsdownPluginContext } from "./plugin-By2hpTwn.mjs";
2
+ import * as rolldown0 from "rolldown";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createTsdownPlugin(context: TsdownPluginContext): rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
6
+ //#endregion
7
+ export { createTsdownPlugin as t };
8
+ //# sourceMappingURL=unplugin-COtJJRXi.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-COtJJRXi.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,kBAAA,UAA4B,sBAAmB,SAAA,CAAA,cAAA,SAAA,CAAA"}
@@ -0,0 +1,16 @@
1
+ const require_index = require('./index.cjs');
2
+ let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
3
+ let unplugin = require("unplugin");
4
+
5
+ //#region src/helpers/unplugin.ts
6
+ function createTsdownPlugin(context) {
7
+ return (0, unplugin.createRolldownPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
8
+ }
9
+
10
+ //#endregion
11
+ Object.defineProperty(exports, 'createTsdownPlugin', {
12
+ enumerable: true,
13
+ get: function () {
14
+ return createTsdownPlugin;
15
+ }
16
+ });
@@ -0,0 +1,11 @@
1
+ import { createUnplugin } from "powerlines/lib/unplugin";
2
+ import { createRolldownPlugin } from "unplugin";
3
+
4
+ //#region src/helpers/unplugin.ts
5
+ function createTsdownPlugin(context) {
6
+ return createRolldownPlugin(createUnplugin(context))({});
7
+ }
8
+
9
+ //#endregion
10
+ export { createTsdownPlugin as t };
11
+ //# sourceMappingURL=unplugin-LwBbzSbq.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-LwBbzSbq.mjs","names":[],"sources":["../src/helpers/unplugin.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/lib/unplugin\";\nimport { createRolldownPlugin } from \"unplugin\";\nimport { TsdownPluginContext } from \"../types/plugin\";\n\nexport function createTsdownPlugin(context: TsdownPluginContext) {\n return createRolldownPlugin(createUnplugin(context))({});\n}\n"],"mappings":";;;;AAsBA,SAAgB,mBAAmB,SAA8B;AAC/D,QAAO,qBAAqB,eAAe,QAAQ,CAAC,CAAC,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { t as TsdownPluginContext } from "./plugin-BohvMapN.cjs";
2
+ import * as rolldown0 from "rolldown";
3
+
4
+ //#region src/helpers/unplugin.d.ts
5
+ declare function createTsdownPlugin(context: TsdownPluginContext): rolldown0.Plugin<any> | rolldown0.Plugin<any>[];
6
+ //#endregion
7
+ export { createTsdownPlugin as t };
8
+ //# sourceMappingURL=unplugin-rS-jtHDh.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unplugin-rS-jtHDh.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,kBAAA,UAA4B,sBAAmB,SAAA,CAAA,cAAA,SAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsdown",
3
- "version": "0.1.191",
3
+ "version": "0.1.192",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -118,15 +118,15 @@
118
118
  "keywords": ["tsdown", "powerlines", "storm-software", "powerlines-plugin"],
119
119
  "dependencies": {
120
120
  "defu": "^6.1.4",
121
- "powerlines": "^0.38.5",
121
+ "powerlines": "^0.38.6",
122
122
  "tsdown": "0.17.0-beta.5",
123
123
  "unplugin": "3.0.0-beta.3"
124
124
  },
125
125
  "devDependencies": {
126
- "@powerlines/plugin-plugin": "^0.12.189",
126
+ "@powerlines/plugin-plugin": "^0.12.190",
127
127
  "@types/node": "^24.10.9"
128
128
  },
129
129
  "publishConfig": { "access": "public" },
130
130
  "types": "./dist/index.d.cts",
131
- "gitHead": "81e757b9eaf304997ea1d4082b7b4658aa33ecfe"
131
+ "gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
132
132
  }
@@ -1,29 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- exports.__toESM = __toESM;