powerlines 0.42.32 → 0.42.34

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 (122) hide show
  1. package/dist/api-0aKfs398.mjs +1010 -0
  2. package/dist/api-0aKfs398.mjs.map +1 -0
  3. package/dist/api-7bOKZ8DC.cjs +1030 -0
  4. package/dist/{api-context-k3dnn5KR.cjs → api-context-4t-rlsAr.cjs} +64 -442
  5. package/dist/{api-context-BQi9M07D.mjs → api-context-CmuOyg7q.mjs} +62 -432
  6. package/dist/api-context-CmuOyg7q.mjs.map +1 -0
  7. package/dist/astro.mjs.map +1 -1
  8. package/dist/{chunk-7azAqIA9.cjs → chunk-AIJqnxB6.cjs} +0 -7
  9. package/dist/{chunk-WJdhOJK3.mjs → chunk-CtajNgzt.mjs} +1 -10
  10. package/dist/config.cjs +1 -1
  11. package/dist/config.mjs +1 -1
  12. package/dist/constants.cjs +1 -1
  13. package/dist/constants.mjs +1 -1
  14. package/dist/context/index.cjs +1 -1
  15. package/dist/context/index.d.cts +11 -260
  16. package/dist/context/index.d.cts.map +1 -1
  17. package/dist/context/index.d.mts +12 -261
  18. package/dist/context/index.d.mts.map +1 -1
  19. package/dist/context/index.mjs +1 -1
  20. package/dist/esbuild.cjs +9 -4
  21. package/dist/esbuild.d.cts +2 -2
  22. package/dist/esbuild.d.cts.map +1 -1
  23. package/dist/esbuild.d.mts +2 -2
  24. package/dist/esbuild.d.mts.map +1 -1
  25. package/dist/esbuild.mjs +2 -2
  26. package/dist/esbuild.mjs.map +1 -1
  27. package/dist/farm.cjs +1 -1
  28. package/dist/index.cjs +3 -3
  29. package/dist/index.d.cts +1 -1
  30. package/dist/index.d.mts +2 -2
  31. package/dist/index.mjs +2 -2
  32. package/dist/next.mjs.map +1 -1
  33. package/dist/nuxt.cjs +2 -2
  34. package/dist/nuxt.d.mts +1 -1
  35. package/dist/nuxt.mjs +1 -1
  36. package/dist/nuxt.mjs.map +1 -1
  37. package/dist/plugin-utils.cjs +1 -1
  38. package/dist/plugin-utils.mjs +1 -1
  39. package/dist/rolldown.cjs +7 -2
  40. package/dist/rolldown.d.cts +2 -2
  41. package/dist/rolldown.d.cts.map +1 -1
  42. package/dist/rolldown.d.mts +2 -2
  43. package/dist/rolldown.d.mts.map +1 -1
  44. package/dist/rolldown.mjs +2 -2
  45. package/dist/rolldown.mjs.map +1 -1
  46. package/dist/rollup.cjs +7 -2
  47. package/dist/rollup.d.cts +2 -2
  48. package/dist/rollup.d.cts.map +1 -1
  49. package/dist/rollup.d.mts +2 -2
  50. package/dist/rollup.d.mts.map +1 -1
  51. package/dist/rollup.mjs +2 -2
  52. package/dist/rollup.mjs.map +1 -1
  53. package/dist/rspack.cjs +7 -2
  54. package/dist/rspack.d.cts +2 -2
  55. package/dist/rspack.d.cts.map +1 -1
  56. package/dist/rspack.d.mts +2 -2
  57. package/dist/rspack.d.mts.map +1 -1
  58. package/dist/rspack.mjs +2 -2
  59. package/dist/rspack.mjs.map +1 -1
  60. package/dist/storage/index.cjs +1 -1
  61. package/dist/storage/index.d.cts +1 -1
  62. package/dist/storage/index.d.mts +2 -2
  63. package/dist/storage/index.mjs +1 -1
  64. package/dist/ts-morph-B85ZbV1Q.mjs +102 -0
  65. package/dist/ts-morph-B85ZbV1Q.mjs.map +1 -0
  66. package/dist/ts-morph-Cf4wz3E0.cjs +114 -0
  67. package/dist/{tsconfig-BhVGZ2DK.cjs → tsconfig-ChmbpAO7.cjs} +2 -2
  68. package/dist/{tsconfig-CzYPBpDS.mjs → tsconfig-DoV1dUYg.mjs} +2 -2
  69. package/dist/{tsconfig-CzYPBpDS.mjs.map → tsconfig-DoV1dUYg.mjs.map} +1 -1
  70. package/dist/tsdown.cjs +8 -3
  71. package/dist/tsdown.d.cts +2 -2
  72. package/dist/tsdown.d.cts.map +1 -1
  73. package/dist/tsdown.d.mts +2 -2
  74. package/dist/tsdown.d.mts.map +1 -1
  75. package/dist/tsdown.mjs +3 -3
  76. package/dist/tsdown.mjs.map +1 -1
  77. package/dist/tsup.cjs +8 -3
  78. package/dist/tsup.d.cts +3 -547
  79. package/dist/tsup.d.cts.map +1 -1
  80. package/dist/tsup.d.mts +3 -547
  81. package/dist/tsup.d.mts.map +1 -1
  82. package/dist/tsup.mjs +3 -3
  83. package/dist/tsup.mjs.map +1 -1
  84. package/dist/{types-hdziyQIH.d.mts → types-9O-s0Fpu.d.mts} +1 -1
  85. package/dist/types-9O-s0Fpu.d.mts.map +1 -0
  86. package/dist/typescript/index.cjs +4 -104
  87. package/dist/typescript/index.d.cts +1 -6
  88. package/dist/typescript/index.d.cts.map +1 -1
  89. package/dist/typescript/index.d.mts +2 -7
  90. package/dist/typescript/index.d.mts.map +1 -1
  91. package/dist/typescript/index.mjs +3 -102
  92. package/dist/unloader.cjs +1 -1
  93. package/dist/unplugin.cjs +2 -2
  94. package/dist/unplugin.mjs +1 -1
  95. package/dist/utils.cjs +1 -1
  96. package/dist/utils.mjs +1 -1
  97. package/dist/{virtual-BHb4iMd_.cjs → virtual-BNy8T32w.cjs} +3 -3
  98. package/dist/{virtual-OEHgBu0s.mjs → virtual-PaZGNIrj.mjs} +3 -3
  99. package/dist/{virtual-OEHgBu0s.mjs.map → virtual-PaZGNIrj.mjs.map} +1 -1
  100. package/dist/vite.cjs +7 -2
  101. package/dist/vite.d.cts +2 -2
  102. package/dist/vite.d.mts +2 -2
  103. package/dist/vite.mjs +2 -2
  104. package/dist/vite.mjs.map +1 -1
  105. package/dist/webpack.cjs +7 -2
  106. package/dist/webpack.d.cts +2 -2
  107. package/dist/webpack.d.cts.map +1 -1
  108. package/dist/webpack.d.mts +2 -2
  109. package/dist/webpack.d.mts.map +1 -1
  110. package/dist/webpack.mjs +2 -2
  111. package/dist/webpack.mjs.map +1 -1
  112. package/package.json +14 -13
  113. package/dist/api-D6i8MmbC.mjs +0 -6063
  114. package/dist/api-D6i8MmbC.mjs.map +0 -1
  115. package/dist/api-DZoRNTY7.cjs +0 -6083
  116. package/dist/api-context-BQi9M07D.mjs.map +0 -1
  117. package/dist/base-Bl_AMAlI.d.cts +0 -12
  118. package/dist/base-Bl_AMAlI.d.cts.map +0 -1
  119. package/dist/base-hjCHfNY6.d.mts +0 -12
  120. package/dist/base-hjCHfNY6.d.mts.map +0 -1
  121. package/dist/types-hdziyQIH.d.mts.map +0 -1
  122. package/dist/typescript/index.mjs.map +0 -1
package/dist/tsdown.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { rolldown as unplugin$1 } from "./rolldown.mjs";
1
+ import { unplugin as unplugin$1 } from "./rolldown.mjs";
2
2
  import { toArray } from "@stryke/convert/to-array";
3
3
  import { isFunction } from "@stryke/type-checks/is-function";
4
4
  import { isSetString } from "@stryke/type-checks/is-set-string";
5
5
  import { resolveFromFormat } from "@powerlines/plugin-tsdown/helpers/resolve-options";
6
- import plugin from "@powerlines/plugin-tsdown";
6
+ import plugin, { default as tsdown } from "@powerlines/plugin-tsdown";
7
7
 
8
8
  //#region src/tsdown.ts
9
9
  /**
@@ -78,5 +78,5 @@ function unplugin(options = {}) {
78
78
  }
79
79
 
80
80
  //#endregion
81
- export { plugin, unplugin as tsdown, unplugin };
81
+ export { plugin, tsdown, unplugin };
82
82
  //# sourceMappingURL=tsdown.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsdown.mjs","names":["rolldown"],"sources":["../src/tsdown.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 { RolldownOptions } from \"@powerlines/plugin-rolldown/types/build\";\nimport { resolveFromFormat } from \"@powerlines/plugin-tsdown/helpers/resolve-options\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ModuleFormat } from \"rolldown\";\nimport type { UserConfig } from \"tsdown/config\";\nimport { rolldown } from \"./rolldown\";\nimport { CopyConfig, ResolveConfig } from \"./types\";\n\nexport { default as plugin } from \"@powerlines/plugin-tsdown\";\n\n/**\n * A Tsdown configuration function that integrates Powerlines into the build process.\n *\n * @see https://github.com/rolldown/tsdown\n *\n * @example\n * ```ts\n * // tsdown.config.ts\n * import withPowerlines from \"powerlines/tsdown\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsdown options to merge with the Powerlines configuration.\n * @returns The merged Tsdown configuration options.\n */\nexport function unplugin(options: UserConfig = {}): UserConfig {\n return {\n ...options,\n entry: options.entry,\n plugins: [\n rolldown({\n name: options.name,\n root: options.cwd ?? process.cwd(),\n output: {\n path: options.outDir,\n format: resolveFromFormat(\n options.format as ModuleFormat | ModuleFormat[]\n ),\n copy: {\n path: options.outDir!,\n assets: toArray(options.copy)\n .map(copy => {\n if (!copy) {\n return undefined;\n }\n\n if (isSetString(copy)) {\n return copy;\n }\n\n if (isFunction(copy)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based copy options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return {\n input: copy.from,\n output: copy.to\n };\n })\n .filter(Boolean) as CopyConfig[\"assets\"]\n }\n },\n resolve: {\n external: options.external\n ? (toArray(options.external)\n .map(external => {\n if (isFunction(external)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based external options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return external;\n })\n .filter(Boolean) as ResolveConfig[\"external\"])\n : undefined,\n noExternal: options.noExternal\n ? (toArray(options.noExternal)\n .map(noExternal => {\n if (isFunction(noExternal)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based noExternal options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return noExternal;\n })\n .filter(Boolean) as ResolveConfig[\"noExternal\"])\n : undefined\n },\n rolldown: options.inputOptions as RolldownOptions,\n tsconfig: isSetString(options.tsconfig) ? options.tsconfig : undefined\n })\n ]\n };\n}\n\nexport { unplugin as tsdown };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,SAAS,UAAsB,EAAE,EAAc;AAC7D,QAAO;EACL,GAAG;EACH,OAAO,QAAQ;EACf,SAAS,CACPA,WAAS;GACP,MAAM,QAAQ;GACd,MAAM,QAAQ,OAAO,QAAQ,KAAK;GAClC,QAAQ;IACN,MAAM,QAAQ;IACd,QAAQ,kBACN,QAAQ,OACT;IACD,MAAM;KACJ,MAAM,QAAQ;KACd,QAAQ,QAAQ,QAAQ,KAAK,CAC1B,KAAI,SAAQ;AACX,UAAI,CAAC,KACH;AAGF,UAAI,YAAY,KAAK,CACnB,QAAO;AAGT,UAAI,WAAW,KAAK,EAAE;AAEpB,eAAQ,KACN,+DACD;AAED;;AAGF,aAAO;OACL,OAAO,KAAK;OACZ,QAAQ,KAAK;OACd;OACD,CACD,OAAO,QAAQ;KACnB;IACF;GACD,SAAS;IACP,UAAU,QAAQ,WACb,QAAQ,QAAQ,SAAS,CACvB,KAAI,aAAY;AACf,SAAI,WAAW,SAAS,EAAE;AAExB,cAAQ,KACN,mEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACJ,YAAY,QAAQ,aACf,QAAQ,QAAQ,WAAW,CACzB,KAAI,eAAc;AACjB,SAAI,WAAW,WAAW,EAAE;AAE1B,cAAQ,KACN,qEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACL;GACD,UAAU,QAAQ;GAClB,UAAU,YAAY,QAAQ,SAAS,GAAG,QAAQ,WAAW;GAC9D,CAAC,CACH;EACF"}
1
+ {"version":3,"file":"tsdown.mjs","names":["rolldown"],"sources":["../src/tsdown.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 { RolldownOptions } from \"@powerlines/plugin-rolldown/types/build\";\nimport { resolveFromFormat } from \"@powerlines/plugin-tsdown/helpers/resolve-options\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ModuleFormat } from \"rolldown\";\nimport type { UserConfig } from \"tsdown/config\";\nimport { unplugin as rolldown } from \"./rolldown\";\nimport { CopyConfig, ResolveConfig } from \"./types\";\n\nexport {\n default as plugin,\n default as tsdown\n} from \"@powerlines/plugin-tsdown\";\n\n/**\n * A Tsdown configuration function that integrates Powerlines into the build process.\n *\n * @see https://github.com/rolldown/tsdown\n *\n * @example\n * ```ts\n * // tsdown.config.ts\n * import withPowerlines from \"powerlines/tsdown\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsdown options to merge with the Powerlines configuration.\n * @returns The merged Tsdown configuration options.\n */\nexport function unplugin(options: UserConfig = {}): UserConfig {\n return {\n ...options,\n entry: options.entry,\n plugins: [\n rolldown({\n name: options.name,\n root: options.cwd ?? process.cwd(),\n output: {\n path: options.outDir,\n format: resolveFromFormat(\n options.format as ModuleFormat | ModuleFormat[]\n ),\n copy: {\n path: options.outDir!,\n assets: toArray(options.copy)\n .map(copy => {\n if (!copy) {\n return undefined;\n }\n\n if (isSetString(copy)) {\n return copy;\n }\n\n if (isFunction(copy)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based copy options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return {\n input: copy.from,\n output: copy.to\n };\n })\n .filter(Boolean) as CopyConfig[\"assets\"]\n }\n },\n resolve: {\n external: options.external\n ? (toArray(options.external)\n .map(external => {\n if (isFunction(external)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based external options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return external;\n })\n .filter(Boolean) as ResolveConfig[\"external\"])\n : undefined,\n noExternal: options.noExternal\n ? (toArray(options.noExternal)\n .map(noExternal => {\n if (isFunction(noExternal)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based noExternal options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return noExternal;\n })\n .filter(Boolean) as ResolveConfig[\"noExternal\"])\n : undefined\n },\n rolldown: options.inputOptions as RolldownOptions,\n tsconfig: isSetString(options.tsconfig) ? options.tsconfig : undefined\n })\n ]\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,SAAS,UAAsB,EAAE,EAAc;AAC7D,QAAO;EACL,GAAG;EACH,OAAO,QAAQ;EACf,SAAS,CACPA,WAAS;GACP,MAAM,QAAQ;GACd,MAAM,QAAQ,OAAO,QAAQ,KAAK;GAClC,QAAQ;IACN,MAAM,QAAQ;IACd,QAAQ,kBACN,QAAQ,OACT;IACD,MAAM;KACJ,MAAM,QAAQ;KACd,QAAQ,QAAQ,QAAQ,KAAK,CAC1B,KAAI,SAAQ;AACX,UAAI,CAAC,KACH;AAGF,UAAI,YAAY,KAAK,CACnB,QAAO;AAGT,UAAI,WAAW,KAAK,EAAE;AAEpB,eAAQ,KACN,+DACD;AAED;;AAGF,aAAO;OACL,OAAO,KAAK;OACZ,QAAQ,KAAK;OACd;OACD,CACD,OAAO,QAAQ;KACnB;IACF;GACD,SAAS;IACP,UAAU,QAAQ,WACb,QAAQ,QAAQ,SAAS,CACvB,KAAI,aAAY;AACf,SAAI,WAAW,SAAS,EAAE;AAExB,cAAQ,KACN,mEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACJ,YAAY,QAAQ,aACf,QAAQ,QAAQ,WAAW,CACzB,KAAI,eAAc;AACjB,SAAI,WAAW,WAAW,EAAE;AAE1B,cAAQ,KACN,qEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACL;GACD,UAAU,QAAQ;GAClB,UAAU,YAAY,QAAQ,SAAS,GAAG,QAAQ,WAAW;GAC9D,CAAC,CACH;EACF"}
package/dist/tsup.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_chunk = require('./chunk-7azAqIA9.cjs');
2
+ const require_chunk = require('./chunk-AIJqnxB6.cjs');
3
3
  const require_esbuild = require('./esbuild.cjs');
4
4
  let _stryke_helpers_omit = require("@stryke/helpers/omit");
5
5
  let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
@@ -33,7 +33,7 @@ _powerlines_plugin_tsup = require_chunk.__toESM(_powerlines_plugin_tsup);
33
33
  function unplugin(options = {}) {
34
34
  return {
35
35
  ...options,
36
- esbuildPlugins: [require_esbuild.esbuild({
36
+ esbuildPlugins: [require_esbuild.unplugin({
37
37
  output: {
38
38
  path: options.outDir,
39
39
  format: options.format
@@ -64,5 +64,10 @@ Object.defineProperty(exports, 'plugin', {
64
64
  return _powerlines_plugin_tsup.default;
65
65
  }
66
66
  });
67
- exports.tsup = unplugin;
67
+ Object.defineProperty(exports, 'tsup', {
68
+ enumerable: true,
69
+ get: function () {
70
+ return _powerlines_plugin_tsup.default;
71
+ }
72
+ });
68
73
  exports.unplugin = unplugin;
package/dist/tsup.d.cts CHANGED
@@ -1,550 +1,6 @@
1
- import { BuildOptions, Loader, Metafile, Plugin } from "esbuild";
2
- import { InputOption, SourceMap, TreeshakingOptions, TreeshakingPreset } from "rollup";
3
- import plugin from "@powerlines/plugin-tsup";
1
+ import { Options } from "tsup";
2
+ import plugin, { default as tsup } from "@powerlines/plugin-tsup";
4
3
 
5
- //#region ../../node_modules/.pnpm/source-map@0.8.0-beta.0/node_modules/source-map/source-map.d.ts
6
- interface RawSourceMap {
7
- version: number;
8
- sources: string[];
9
- names: string[];
10
- sourceRoot?: string;
11
- sourcesContent?: string[];
12
- mappings: string;
13
- file: string;
14
- }
15
- //#endregion
16
- //#region ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.58.1_@types+node@25.5.2__@swc+core@1.15.24_@swc+h_62624d51fbf2e0b1d869894419aefb91/node_modules/tsup/dist/index.d.ts
17
- type GeneratedColumn = number;
18
- type SourcesIndex = number;
19
- type SourceLine = number;
20
- type SourceColumn = number;
21
- type NamesIndex = number;
22
- type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
23
- declare class TraceMap implements SourceMap$1 {
24
- version: SourceMapV3['version'];
25
- file: SourceMapV3['file'];
26
- names: SourceMapV3['names'];
27
- sourceRoot: SourceMapV3['sourceRoot'];
28
- sources: SourceMapV3['sources'];
29
- sourcesContent: SourceMapV3['sourcesContent'];
30
- ignoreList: SourceMapV3['ignoreList'];
31
- resolvedSources: string[];
32
- private _encoded;
33
- private _decoded;
34
- private _decodedMemo;
35
- private _bySources;
36
- private _bySourceMemos;
37
- constructor(map: SourceMapInput, mapUrl?: string | null);
38
- }
39
- interface SourceMapV3 {
40
- file?: string | null;
41
- names: string[];
42
- sourceRoot?: string;
43
- sources: (string | null)[];
44
- sourcesContent?: (string | null)[];
45
- version: 3;
46
- ignoreList?: number[];
47
- }
48
- interface EncodedSourceMap extends SourceMapV3 {
49
- mappings: string;
50
- }
51
- interface DecodedSourceMap extends SourceMapV3 {
52
- mappings: SourceMapSegment[][];
53
- }
54
- interface Section {
55
- offset: {
56
- line: number;
57
- column: number;
58
- };
59
- map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap;
60
- }
61
- interface SectionedSourceMap {
62
- file?: string | null;
63
- sections: Section[];
64
- version: 3;
65
- }
66
- type XInput = {
67
- x_google_ignoreList?: SourceMapV3['ignoreList'];
68
- };
69
- type EncodedSourceMapXInput = EncodedSourceMap & XInput;
70
- type DecodedSourceMapXInput = DecodedSourceMap & XInput;
71
- type SectionedSourceMapXInput = Omit<SectionedSourceMap, 'sections'> & {
72
- sections: SectionXInput[];
73
- };
74
- type SectionXInput = Omit<Section, 'map'> & {
75
- map: SectionedSourceMapInput;
76
- };
77
- type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap;
78
- type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput;
79
- declare abstract class SourceMap$1 {
80
- version: SourceMapV3['version'];
81
- file: SourceMapV3['file'];
82
- names: SourceMapV3['names'];
83
- sourceRoot: SourceMapV3['sourceRoot'];
84
- sources: SourceMapV3['sources'];
85
- sourcesContent: SourceMapV3['sourcesContent'];
86
- resolvedSources: SourceMapV3['sources'];
87
- ignoreList: SourceMapV3['ignoreList'];
88
- } /// <reference lib="es2015" />
89
- type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020;
90
- type ConsoleProperty = keyof typeof console;
91
- type DropConsoleOption = boolean | ConsoleProperty[];
92
- interface ParseOptions {
93
- bare_returns?: boolean;
94
- /** @deprecated legacy option. Currently, all supported EcmaScript is valid to parse. */
95
- ecma?: ECMA;
96
- html5_comments?: boolean;
97
- shebang?: boolean;
98
- }
99
- interface CompressOptions {
100
- arguments?: boolean;
101
- arrows?: boolean;
102
- booleans_as_integers?: boolean;
103
- booleans?: boolean;
104
- collapse_vars?: boolean;
105
- comparisons?: boolean;
106
- computed_props?: boolean;
107
- conditionals?: boolean;
108
- dead_code?: boolean;
109
- defaults?: boolean;
110
- directives?: boolean;
111
- drop_console?: DropConsoleOption;
112
- drop_debugger?: boolean;
113
- ecma?: ECMA;
114
- evaluate?: boolean;
115
- expression?: boolean;
116
- global_defs?: object;
117
- hoist_funs?: boolean;
118
- hoist_props?: boolean;
119
- hoist_vars?: boolean;
120
- ie8?: boolean;
121
- if_return?: boolean;
122
- inline?: boolean | InlineFunctions;
123
- join_vars?: boolean;
124
- keep_classnames?: boolean | RegExp;
125
- keep_fargs?: boolean;
126
- keep_fnames?: boolean | RegExp;
127
- keep_infinity?: boolean;
128
- loops?: boolean;
129
- module?: boolean;
130
- negate_iife?: boolean;
131
- passes?: number;
132
- properties?: boolean;
133
- pure_funcs?: string[];
134
- pure_new?: boolean;
135
- pure_getters?: boolean | 'strict';
136
- reduce_funcs?: boolean;
137
- reduce_vars?: boolean;
138
- sequences?: boolean | number;
139
- side_effects?: boolean;
140
- switches?: boolean;
141
- toplevel?: boolean;
142
- top_retain?: null | string | string[] | RegExp;
143
- typeofs?: boolean;
144
- unsafe_arrows?: boolean;
145
- unsafe?: boolean;
146
- unsafe_comps?: boolean;
147
- unsafe_Function?: boolean;
148
- unsafe_math?: boolean;
149
- unsafe_symbols?: boolean;
150
- unsafe_methods?: boolean;
151
- unsafe_proto?: boolean;
152
- unsafe_regexp?: boolean;
153
- unsafe_undefined?: boolean;
154
- unused?: boolean;
155
- }
156
- declare enum InlineFunctions {
157
- Disabled = 0,
158
- SimpleFunctions = 1,
159
- WithArguments = 2,
160
- WithArgumentsAndVariables = 3
161
- }
162
- interface MangleOptions {
163
- eval?: boolean;
164
- keep_classnames?: boolean | RegExp;
165
- keep_fnames?: boolean | RegExp;
166
- module?: boolean;
167
- nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler;
168
- properties?: boolean | ManglePropertiesOptions;
169
- reserved?: string[];
170
- safari10?: boolean;
171
- toplevel?: boolean;
172
- }
173
- /**
174
- * An identifier mangler for which the output is invariant with respect to the source code.
175
- */
176
- interface SimpleIdentifierMangler {
177
- /**
178
- * Obtains the nth most favored (usually shortest) identifier to rename a variable to.
179
- * The mangler will increment n and retry until the return value is not in use in scope, and is not a reserved word.
180
- * This function is expected to be stable; Evaluating get(n) === get(n) should always return true.
181
- * @param n The ordinal of the identifier.
182
- */
183
- get(n: number): string;
184
- }
185
- /**
186
- * An identifier mangler that leverages character frequency analysis to determine identifier precedence.
187
- */
188
- interface WeightedIdentifierMangler extends SimpleIdentifierMangler {
189
- /**
190
- * Modifies the internal weighting of the input characters by the specified delta.
191
- * Will be invoked on the entire printed AST, and then deduct mangleable identifiers.
192
- * @param chars The characters to modify the weighting of.
193
- * @param delta The numeric weight to add to the characters.
194
- */
195
- consider(chars: string, delta: number): number;
196
- /**
197
- * Resets character weights.
198
- */
199
- reset(): void;
200
- /**
201
- * Sorts identifiers by character frequency, in preparation for calls to get(n).
202
- */
203
- sort(): void;
204
- }
205
- interface ManglePropertiesOptions {
206
- builtins?: boolean;
207
- debug?: boolean;
208
- keep_quoted?: boolean | 'strict';
209
- nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler;
210
- regex?: RegExp | string;
211
- reserved?: string[];
212
- }
213
- interface FormatOptions {
214
- ascii_only?: boolean;
215
- /** @deprecated Not implemented anymore */
216
- beautify?: boolean;
217
- braces?: boolean;
218
- comments?: boolean | 'all' | 'some' | RegExp | ((node: any, comment: {
219
- value: string;
220
- type: 'comment1' | 'comment2' | 'comment3' | 'comment4';
221
- pos: number;
222
- line: number;
223
- col: number;
224
- }) => boolean);
225
- ecma?: ECMA;
226
- ie8?: boolean;
227
- keep_numbers?: boolean;
228
- indent_level?: number;
229
- indent_start?: number;
230
- inline_script?: boolean;
231
- keep_quoted_props?: boolean;
232
- max_line_len?: number | false;
233
- preamble?: string;
234
- preserve_annotations?: boolean;
235
- quote_keys?: boolean;
236
- quote_style?: OutputQuoteStyle;
237
- safari10?: boolean;
238
- semicolons?: boolean;
239
- shebang?: boolean;
240
- shorthand?: boolean;
241
- source_map?: SourceMapOptions;
242
- webkit?: boolean;
243
- width?: number;
244
- wrap_iife?: boolean;
245
- wrap_func_args?: boolean;
246
- }
247
- declare enum OutputQuoteStyle {
248
- PreferDouble = 0,
249
- AlwaysSingle = 1,
250
- AlwaysDouble = 2,
251
- AlwaysOriginal = 3
252
- }
253
- interface MinifyOptions {
254
- compress?: boolean | CompressOptions;
255
- ecma?: ECMA;
256
- enclose?: boolean | string;
257
- ie8?: boolean;
258
- keep_classnames?: boolean | RegExp;
259
- keep_fnames?: boolean | RegExp;
260
- mangle?: boolean | MangleOptions;
261
- module?: boolean;
262
- nameCache?: object;
263
- format?: FormatOptions;
264
- /** @deprecated */
265
- output?: FormatOptions;
266
- parse?: ParseOptions;
267
- safari10?: boolean;
268
- sourceMap?: boolean | SourceMapOptions;
269
- toplevel?: boolean;
270
- }
271
- interface SourceMapOptions {
272
- /** Source map object, 'inline' or source map file content */
273
- content?: SectionedSourceMapInput | string;
274
- includeSources?: boolean;
275
- filename?: string;
276
- root?: string;
277
- asObject?: boolean;
278
- url?: string | 'inline';
279
- }
280
- type Prettify<Type> = Type extends Function ? Type : Extract<{ [Key in keyof Type]: Type[Key] }, Type>;
281
- type MarkRequired<Type, Keys extends keyof Type> = Type extends Type ? Prettify<Type & Required<Omit<Type, Exclude<keyof Type, Keys>>>> : never;
282
- type Logger = ReturnType<typeof createLogger>;
283
- declare const createLogger: (name?: string) => {
284
- setName(_name: string): void;
285
- success(label: string, ...args: any[]): void;
286
- info(label: string, ...args: any[]): void;
287
- error(label: string, ...args: any[]): void;
288
- warn(label: string, ...args: any[]): void;
289
- log(label: string, type: "info" | "success" | "error" | "warn", ...data: unknown[]): void;
290
- };
291
- type ChunkInfo = {
292
- type: 'chunk';
293
- code: string;
294
- map?: string | RawSourceMap | null;
295
- path: string;
296
- /**
297
- * Sets the file mode
298
- */
299
- mode?: number;
300
- entryPoint?: string;
301
- exports?: string[];
302
- imports?: Metafile['outputs'][string]['imports'];
303
- };
304
- type RenderChunk = (this: PluginContext, code: string, chunkInfo: ChunkInfo) => MaybePromise<{
305
- code: string;
306
- map?: object | string | SourceMap | null;
307
- } | undefined | null | void>;
308
- type BuildStart = (this: PluginContext) => MaybePromise<void>;
309
- type BuildEnd = (this: PluginContext, ctx: {
310
- writtenFiles: WrittenFile[];
311
- }) => MaybePromise<void>;
312
- type ModifyEsbuildOptions = (this: PluginContext, options: BuildOptions) => void;
313
- type Plugin$1 = {
314
- name: string;
315
- esbuildOptions?: ModifyEsbuildOptions;
316
- buildStart?: BuildStart;
317
- renderChunk?: RenderChunk;
318
- buildEnd?: BuildEnd;
319
- };
320
- type PluginContext = {
321
- format: Format;
322
- splitting?: boolean;
323
- options: NormalizedOptions;
324
- logger: Logger;
325
- };
326
- type WrittenFile = {
327
- readonly name: string;
328
- readonly size: number;
329
- };
330
- type TreeshakingStrategy = boolean | TreeshakingOptions | TreeshakingPreset;
331
- type KILL_SIGNAL = 'SIGKILL' | 'SIGTERM';
332
- type Format = 'cjs' | 'esm' | 'iife';
333
- type ContextForOutPathGeneration = {
334
- options: NormalizedOptions;
335
- format: Format; /** "type" field in project's package.json */
336
- pkgType?: string;
337
- };
338
- type OutExtensionObject = {
339
- js?: string;
340
- dts?: string;
341
- };
342
- type OutExtensionFactory = (ctx: ContextForOutPathGeneration) => OutExtensionObject;
343
- type DtsConfig = {
344
- entry?: InputOption; /** Resolve external types used in dts files from node_modules */
345
- resolve?: boolean | (string | RegExp)[]; /** Emit declaration files only */
346
- only?: boolean; /** Insert at the top of each output .d.ts file */
347
- banner?: string; /** Insert at the bottom */
348
- footer?: string;
349
- /**
350
- * Overrides `compilerOptions`
351
- * This option takes higher priority than `compilerOptions` in tsconfig.json
352
- */
353
- compilerOptions?: any;
354
- };
355
- type ExperimentalDtsConfig = {
356
- entry?: InputOption;
357
- /**
358
- * Overrides `compilerOptions`
359
- * This option takes higher priority than `compilerOptions` in tsconfig.json
360
- */
361
- compilerOptions?: any;
362
- };
363
- type BannerOrFooter = {
364
- js?: string;
365
- css?: string;
366
- } | ((ctx: {
367
- format: Format;
368
- }) => {
369
- js?: string;
370
- css?: string;
371
- } | undefined);
372
- type BrowserTarget = 'chrome' | 'deno' | 'edge' | 'firefox' | 'hermes' | 'ie' | 'ios' | 'node' | 'opera' | 'rhino' | 'safari';
373
- type BrowserTargetWithVersion = `${BrowserTarget}${number}` | `${BrowserTarget}${number}.${number}` | `${BrowserTarget}${number}.${number}.${number}`;
374
- type EsTarget = 'es3' | 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024' | 'esnext';
375
- type Target = BrowserTarget | BrowserTargetWithVersion | EsTarget | (string & {});
376
- type Entry = string[] | Record<string, string>;
377
- /**
378
- * The options available in tsup.config.ts
379
- * Not all of them are available from CLI flags
380
- */
381
- type Options = {
382
- /** Optional config name to show in CLI output */name?: string;
383
- /**
384
- * @deprecated Use `entry` instead
385
- */
386
- entryPoints?: Entry;
387
- entry?: Entry;
388
- /**
389
- * Output different formats to different folder instead of using different extensions
390
- */
391
- legacyOutput?: boolean;
392
- /**
393
- * Compile target
394
- *
395
- * default to `node16`
396
- */
397
- target?: Target | Target[];
398
- minify?: boolean | 'terser';
399
- terserOptions?: MinifyOptions;
400
- minifyWhitespace?: boolean;
401
- minifyIdentifiers?: boolean;
402
- minifySyntax?: boolean;
403
- keepNames?: boolean;
404
- watch?: boolean | string | (string | boolean)[];
405
- ignoreWatch?: string[] | string;
406
- onSuccess?: string | (() => Promise<void | undefined | (() => void | Promise<void>)>);
407
- jsxFactory?: string;
408
- jsxFragment?: string;
409
- outDir?: string;
410
- outExtension?: OutExtensionFactory;
411
- format?: Format[] | Format;
412
- globalName?: string;
413
- env?: {
414
- [k: string]: string;
415
- };
416
- define?: {
417
- [k: string]: string;
418
- };
419
- dts?: boolean | string | DtsConfig;
420
- experimentalDts?: boolean | string | ExperimentalDtsConfig;
421
- sourcemap?: boolean | 'inline'; /** Always bundle modules matching given patterns */
422
- noExternal?: (string | RegExp)[]; /** Don't bundle these modules */
423
- external?: (string | RegExp)[];
424
- /**
425
- * Replace `process.env.NODE_ENV` with `production` or `development`
426
- * `production` when the bundled is minified, `development` otherwise
427
- */
428
- replaceNodeEnv?: boolean;
429
- /**
430
- * Code splitting
431
- * Default to `true` for ESM, `false` for CJS.
432
- *
433
- * You can set it to `true` explicitly, and may want to disable code splitting sometimes: [`#255`](https://github.com/egoist/tsup/issues/255)
434
- */
435
- splitting?: boolean;
436
- /**
437
- * Clean output directory before each build
438
- */
439
- clean?: boolean | string[];
440
- esbuildPlugins?: Plugin[];
441
- esbuildOptions?: (options: BuildOptions, context: {
442
- format: Format;
443
- }) => void;
444
- /**
445
- * Suppress non-error logs (excluding "onSuccess" process output)
446
- */
447
- silent?: boolean;
448
- /**
449
- * Skip node_modules bundling
450
- * Will still bundle modules matching the `noExternal` option
451
- */
452
- skipNodeModulesBundle?: boolean;
453
- /**
454
- * @see https://esbuild.github.io/api/#pure
455
- */
456
- pure?: string | string[];
457
- /**
458
- * Disable bundling, default to true
459
- */
460
- bundle?: boolean;
461
- /**
462
- * This option allows you to automatically replace a global variable with an import from another file.
463
- * @see https://esbuild.github.io/api/#inject
464
- */
465
- inject?: string[];
466
- /**
467
- * Emit esbuild metafile
468
- * @see https://esbuild.github.io/api/#metafile
469
- */
470
- metafile?: boolean;
471
- footer?: BannerOrFooter;
472
- banner?: BannerOrFooter;
473
- /**
474
- * Target platform
475
- * @default `node`
476
- */
477
- platform?: 'node' | 'browser' | 'neutral';
478
- /**
479
- * Esbuild loader option
480
- */
481
- loader?: Record<string, Loader>;
482
- /**
483
- * Disable config file with `false`
484
- * Or pass a custom config filename
485
- */
486
- config?: boolean | string;
487
- /**
488
- * Use a custom tsconfig
489
- */
490
- tsconfig?: string;
491
- /**
492
- * Inject CSS as style tags to document head
493
- * @default {false}
494
- */
495
- injectStyle?: boolean | ((css: string, fileId: string) => string | Promise<string>);
496
- /**
497
- * Inject cjs and esm shims if needed
498
- * @default false
499
- */
500
- shims?: boolean;
501
- /**
502
- * TSUP plugins
503
- * @experimental
504
- * @alpha
505
- */
506
- plugins?: Plugin$1[];
507
- /**
508
- * By default esbuild already does treeshaking
509
- *
510
- * But this option allow you to perform additional treeshaking with Rollup
511
- *
512
- * This can result in smaller bundle size
513
- */
514
- treeshake?: TreeshakingStrategy;
515
- /**
516
- * Copy the files inside `publicDir` to output directory
517
- */
518
- publicDir?: string | boolean;
519
- killSignal?: KILL_SIGNAL;
520
- /**
521
- * Interop default within `module.exports` in cjs
522
- * @default false
523
- */
524
- cjsInterop?: boolean;
525
- /**
526
- * Remove `node:` protocol from imports
527
- *
528
- * The default value will be flipped to `false` in the next major release
529
- * @default true
530
- */
531
- removeNodeProtocol?: boolean;
532
- };
533
- interface NormalizedExperimentalDtsConfig {
534
- entry: {
535
- [entryAlias: string]: string;
536
- };
537
- compilerOptions?: any;
538
- }
539
- type NormalizedOptions = Omit<MarkRequired<Options, 'entry' | 'outDir'>, 'dts' | 'experimentalDts' | 'format'> & {
540
- dts?: DtsConfig;
541
- experimentalDts?: NormalizedExperimentalDtsConfig;
542
- tsconfigResolvePaths: Record<string, string[]>;
543
- tsconfigDecoratorMetadata?: boolean;
544
- format: Format[];
545
- };
546
- type MaybePromise<T> = T | Promise<T>;
547
- //#endregion
548
4
  //#region src/tsup.d.ts
549
5
  /**
550
6
  * A Tsup configuration function that integrates Powerlines into the build process.
@@ -571,5 +27,5 @@ type MaybePromise<T> = T | Promise<T>;
571
27
  */
572
28
  declare function unplugin(options?: Options): Options;
573
29
  //#endregion
574
- export { plugin, unplugin as tsup, unplugin };
30
+ export { plugin, tsup, unplugin };
575
31
  //# sourceMappingURL=tsup.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsup.d.cts","names":["SourceMapUrl","StartOfSourceMap","file","sourceRoot","skipValidation","RawSourceMap","version","sources","names","sourcesContent","mappings","RawIndexMap","RawSection","sections","Position","offset","map","line","column","NullablePosition","lastColumn","MappedPosition","source","name","NullableMappedPosition","MappingItem","generatedLine","generatedColumn","originalLine","originalColumn","Mapping","generated","original","CodeWithSourceMap","SourceMapGenerator","code","SourceMapConsumer","computeColumnSpans","originalPositionFor","bias","generatedPosition","generatedPositionFor","originalPosition","allGeneratedPositionsFor","hasContentsOfAllSources","sourceContentFor","returnNullOnMissing","eachMapping","mapping","callback","context","order","destroy","SourceMapConsumerConstructor","T","BasicSourceMapConsumer","Promise","IndexedSourceMapConsumer","prototype","GENERATED_ORDER","ORIGINAL_ORDER","GREATEST_LOWER_BOUND","LEAST_UPPER_BOUND","rawSourceMap","sourceMapUrl","fromSourceMap","sourceMap","with","consumer","BasicSourceMapConsumerConstructor","IndexedSourceMapConsumerConstructor","constructor","startOfSourceMap","sourceMapConsumer","addMapping","setSourceContent","sourceFile","sourceContent","applySourceMap","sourceMapPath","toString","toJSON","SourceNode","Array","children","sourceContents","chunks","fromStringWithSourceMap","relativePath","add","chunk","prepend","walk","fn","walkSourceContents","content","join","sep","replaceRight","pattern","replacement","toStringWithSourceMap","BuildOptions","Metafile","Plugin","Plugin$1","Loader","SourceMap","SourceMap$1","TreeshakingOptions","TreeshakingPreset","InputOption","RawSourceMap","GeneratedColumn","SourcesIndex","SourceLine","SourceColumn","NamesIndex","SourceMapSegment","TraceMap","SourceMapV3","SourceMapInput","version","file","names","sourceRoot","sources","sourcesContent","ignoreList","resolvedSources","_encoded","_decoded","_decodedMemo","_bySources","_bySourceMemos","constructor","map","mapUrl","EncodedSourceMap","mappings","DecodedSourceMap","Section","SectionedSourceMap","offset","line","column","sections","XInput","x_google_ignoreList","EncodedSourceMapXInput","DecodedSourceMapXInput","SectionedSourceMapXInput","Omit","SectionXInput","SectionedSourceMapInput","ECMA","ConsoleProperty","console","DropConsoleOption","ParseOptions","bare_returns","ecma","html5_comments","shebang","CompressOptions","InlineFunctions","RegExp","arguments","arrows","booleans_as_integers","booleans","collapse_vars","comparisons","computed_props","conditionals","dead_code","defaults","directives","drop_console","drop_debugger","evaluate","expression","global_defs","hoist_funs","hoist_props","hoist_vars","ie8","if_return","inline","join_vars","keep_classnames","keep_fargs","keep_fnames","keep_infinity","loops","module","negate_iife","passes","properties","pure_funcs","pure_new","pure_getters","reduce_funcs","reduce_vars","sequences","side_effects","switches","toplevel","top_retain","typeofs","unsafe_arrows","unsafe","unsafe_comps","unsafe_Function","unsafe_math","unsafe_symbols","unsafe_methods","unsafe_proto","unsafe_regexp","unsafe_undefined","unused","Disabled","SimpleFunctions","WithArguments","WithArgumentsAndVariables","MangleOptions","SimpleIdentifierMangler","WeightedIdentifierMangler","ManglePropertiesOptions","eval","nth_identifier","reserved","safari10","get","n","consider","chars","delta","reset","sort","builtins","debug","keep_quoted","regex","FormatOptions","OutputQuoteStyle","SourceMapOptions","ascii_only","beautify","braces","comments","node","value","type","pos","col","comment","keep_numbers","indent_level","indent_start","inline_script","keep_quoted_props","max_line_len","preamble","preserve_annotations","quote_keys","quote_style","semicolons","shorthand","source_map","webkit","width","wrap_iife","wrap_func_args","PreferDouble","AlwaysSingle","AlwaysDouble","AlwaysOriginal","MinifyOptions","compress","enclose","mangle","nameCache","format","output","parse","sourceMap","content","includeSources","filename","root","asObject","url","Prettify","Type","Function","Key","Extract","MarkRequired","Keys","Exclude","Required","Logger","createLogger","ReturnType","name","setName","_name","success","label","args","info","error","warn","log","data","ChunkInfo","code","path","mode","entryPoint","exports","imports","RenderChunk","PluginContext","MaybePromise","this","chunkInfo","BuildStart","BuildEnd","WrittenFile","writtenFiles","ctx","ModifyEsbuildOptions","options","esbuildOptions","buildStart","renderChunk","buildEnd","Format","NormalizedOptions","splitting","logger","size","TreeshakingStrategy","KILL_SIGNAL","ContextForOutPathGeneration","pkgType","OutExtensionObject","js","dts","OutExtensionFactory","DtsConfig","entry","resolve","only","banner","footer","compilerOptions","ExperimentalDtsConfig","BannerOrFooter","css","BrowserTarget","BrowserTargetWithVersion","EsTarget","Target","Entry","Record","Options","Promise","entryPoints","legacyOutput","target","minify","terserOptions","minifyWhitespace","minifyIdentifiers","minifySyntax","keepNames","watch","ignoreWatch","onSuccess","jsxFactory","jsxFragment","outDir","outExtension","globalName","env","k","define","experimentalDts","sourcemap","noExternal","external","replaceNodeEnv","clean","esbuildPlugins","context","silent","skipNodeModulesBundle","pure","bundle","inject","metafile","platform","loader","config","tsconfig","injectStyle","fileId","shims","plugins","treeshake","publicDir","killSignal","cjsInterop","removeNodeProtocol","NormalizedExperimentalDtsConfig","entryAlias","tsconfigResolvePaths","tsconfigDecoratorMetadata","T","defineConfig","overrideOptions","build","_options"],"sources":["../../../node_modules/.pnpm/source-map@0.8.0-beta.0/node_modules/source-map/source-map.d.ts","../../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.58.1_@types+node@25.5.2__@swc+core@1.15.24_@swc+h_62624d51fbf2e0b1d869894419aefb91/node_modules/tsup/dist/index.d.ts","../src/tsup.ts"],"x_google_ignoreList":[0,1],"mappings":";;;;;UAciBK,YAAAA;EACbC,OAAAA;EACAC,OAAAA;EACAC,KAAAA;EACAL,UAAAA;EACAM,cAAAA;EACAC,QAAAA;EACAR,IAAAA;AAAAA;;;KCjBC+G,eAAAA;AAAAA,KACAC,YAAAA;AAAAA,KACAC,UAAAA;AAAAA,KACAC,YAAAA;AAAAA,KACAC,UAAAA;AAAAA,KACAC,gBAAAA,IAAoBL,eAAAA,KAAoBA,eAAAA,EAAiBC,YAAAA,EAAcC,UAAAA,EAAYC,YAAAA,KAAiBH,eAAAA,EAAiBC,YAAAA,EAAcC,UAAAA,EAAYC,YAAAA,EAAcC,UAAAA;AAAAA,cAEpJE,QAAAA,YAAoBZ,WAAAA;EAC9Be,OAAAA,EAASF,WAAAA;EACTG,IAAAA,EAAMH,WAAAA;EACNI,KAAAA,EAAOJ,WAAAA;EACPK,UAAAA,EAAYL,WAAAA;E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