@voidzero-dev/vite-plus-core 0.0.0-6bf6b4c1b360fa4f7f1cee975103c16c21053c72

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/LICENSE +41 -0
  2. package/dist/pluginutils/filter/composable-filters.d.ts +90 -0
  3. package/dist/pluginutils/filter/composable-filters.js +256 -0
  4. package/dist/pluginutils/filter/filter-vite-plugins.d.ts +28 -0
  5. package/dist/pluginutils/filter/filter-vite-plugins.js +75 -0
  6. package/dist/pluginutils/filter/index.d.ts +3 -0
  7. package/dist/pluginutils/filter/index.js +3 -0
  8. package/dist/pluginutils/filter/simple-filters.d.ts +71 -0
  9. package/dist/pluginutils/filter/simple-filters.js +70 -0
  10. package/dist/pluginutils/index.d.ts +1 -0
  11. package/dist/pluginutils/index.js +1 -0
  12. package/dist/pluginutils/utils.d.ts +2 -0
  13. package/dist/pluginutils/utils.js +17 -0
  14. package/dist/rolldown/cli-setup.d.mts +1 -0
  15. package/dist/rolldown/cli-setup.mjs +17 -0
  16. package/dist/rolldown/cli.d.mts +1 -0
  17. package/dist/rolldown/cli.mjs +1581 -0
  18. package/dist/rolldown/config.d.mts +10 -0
  19. package/dist/rolldown/config.mjs +14 -0
  20. package/dist/rolldown/experimental-index.d.mts +181 -0
  21. package/dist/rolldown/experimental-index.mjs +266 -0
  22. package/dist/rolldown/experimental-runtime-types.d.ts +92 -0
  23. package/dist/rolldown/filter-index.d.mts +4 -0
  24. package/dist/rolldown/filter-index.mjs +369 -0
  25. package/dist/rolldown/get-log-filter.d.mts +7 -0
  26. package/dist/rolldown/get-log-filter.mjs +48 -0
  27. package/dist/rolldown/index.d.mts +4 -0
  28. package/dist/rolldown/index.mjs +38 -0
  29. package/dist/rolldown/parallel-plugin-worker.d.mts +1 -0
  30. package/dist/rolldown/parallel-plugin-worker.mjs +32 -0
  31. package/dist/rolldown/parallel-plugin.d.mts +14 -0
  32. package/dist/rolldown/parallel-plugin.mjs +7 -0
  33. package/dist/rolldown/parse-ast-index.d.mts +8 -0
  34. package/dist/rolldown/parse-ast-index.mjs +4 -0
  35. package/dist/rolldown/plugins-index.d.mts +31 -0
  36. package/dist/rolldown/plugins-index.mjs +40 -0
  37. package/dist/rolldown/shared/binding-C9YdqoUG.d.mts +1657 -0
  38. package/dist/rolldown/shared/binding-Duj6W4V2.mjs +583 -0
  39. package/dist/rolldown/shared/bindingify-input-options-BUoJEsim.mjs +2174 -0
  40. package/dist/rolldown/shared/constructors-D3qJVJZC.d.mts +28 -0
  41. package/dist/rolldown/shared/constructors-DPqxrdwc.mjs +61 -0
  42. package/dist/rolldown/shared/define-config-BF4P-Pum.mjs +7 -0
  43. package/dist/rolldown/shared/define-config-BgCyRzGF.d.mts +2567 -0
  44. package/dist/rolldown/shared/load-config-wTAikb0B.mjs +114 -0
  45. package/dist/rolldown/shared/logging-DsnCZi19.d.mts +42 -0
  46. package/dist/rolldown/shared/logs-cyjC0SDv.mjs +183 -0
  47. package/dist/rolldown/shared/misc-0HsaOsAX.mjs +22 -0
  48. package/dist/rolldown/shared/normalize-string-or-regex-DJvwOt-n.mjs +61 -0
  49. package/dist/rolldown/shared/parse-ast-index-Dl7ZEpwn.mjs +99 -0
  50. package/dist/rolldown/shared/prompt-DAAykJcI.mjs +847 -0
  51. package/dist/rolldown/shared/rolldown-DW_XGtck.mjs +11 -0
  52. package/dist/rolldown/shared/rolldown-build-C9jjlbjh.mjs +2293 -0
  53. package/dist/rolldown/shared/watch-VW0ga4wx.mjs +351 -0
  54. package/dist/tsdown/build-BZayr9FB-DuBaxvMc.js +4879 -0
  55. package/dist/tsdown/build-DN921Mon-D-Xc-FOd.js +5 -0
  56. package/dist/tsdown/chunk-Dj_d7TT4.js +31 -0
  57. package/dist/tsdown/context-9CkpILzL-Dxr4aDmA.js +25 -0
  58. package/dist/tsdown/debug-Baqdx6K3-BCCVGT5l.js +18 -0
  59. package/dist/tsdown/dist-BLKjHOaA.js +201 -0
  60. package/dist/tsdown/dist-Cn3OG_Bk.js +9565 -0
  61. package/dist/tsdown/dist-qCTl7w0O.js +741 -0
  62. package/dist/tsdown/filename-B5CNWw1o.js +27 -0
  63. package/dist/tsdown/index-types.d.ts +1066 -0
  64. package/dist/tsdown/index.js +13 -0
  65. package/dist/tsdown/main-DgFBiQqX.js +905 -0
  66. package/dist/tsdown/node-BpqHh3bo.js +271 -0
  67. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +11 -0
  68. package/dist/tsdown/npm_cjs_chunk_lib.cjs +14151 -0
  69. package/dist/tsdown/npm_cjs_chunk_range.cjs +484 -0
  70. package/dist/tsdown/npm_cjs_chunk_semver.cjs +362 -0
  71. package/dist/tsdown/npm_entry_@babel_generator.cjs +6239 -0
  72. package/dist/tsdown/npm_entry_@babel_parser.cjs +12573 -0
  73. package/dist/tsdown/npm_entry_@babel_types.cjs +6 -0
  74. package/dist/tsdown/npm_entry_picomatch.cjs +1676 -0
  75. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +52 -0
  76. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +23 -0
  77. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +48 -0
  78. package/dist/tsdown/npm_entry_tree-kill.cjs +103 -0
  79. package/dist/tsdown/resolver-CyVXxlZv-Crx1948k.js +17 -0
  80. package/dist/tsdown/run.js +537 -0
  81. package/dist/tsdown/tsc-CEqo7Xcn.js +408 -0
  82. package/dist/vite/client/client.mjs +1140 -0
  83. package/dist/vite/client/env.mjs +19 -0
  84. package/dist/vite/client.d.ts +279 -0
  85. package/dist/vite/misc/false.d.ts +2 -0
  86. package/dist/vite/misc/false.js +1 -0
  87. package/dist/vite/misc/true.d.ts +2 -0
  88. package/dist/vite/misc/true.js +1 -0
  89. package/dist/vite/node/chunks/build.js +4 -0
  90. package/dist/vite/node/chunks/build2.js +5538 -0
  91. package/dist/vite/node/chunks/chunk.js +32 -0
  92. package/dist/vite/node/chunks/config.js +4 -0
  93. package/dist/vite/node/chunks/dist.js +6758 -0
  94. package/dist/vite/node/chunks/dist2.js +6653 -0
  95. package/dist/vite/node/chunks/lib.js +377 -0
  96. package/dist/vite/node/chunks/logger.js +332 -0
  97. package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +96 -0
  98. package/dist/vite/node/chunks/node.js +41593 -0
  99. package/dist/vite/node/chunks/optimizer.js +4 -0
  100. package/dist/vite/node/chunks/postcss-import.js +479 -0
  101. package/dist/vite/node/chunks/preview.js +4 -0
  102. package/dist/vite/node/chunks/server.js +4 -0
  103. package/dist/vite/node/cli.js +699 -0
  104. package/dist/vite/node/index.d.ts +3867 -0
  105. package/dist/vite/node/index.js +4 -0
  106. package/dist/vite/node/internal.d.ts +2 -0
  107. package/dist/vite/node/internal.js +3 -0
  108. package/dist/vite/node/module-runner.d.ts +311 -0
  109. package/dist/vite/node/module-runner.js +1160 -0
  110. package/dist/vite/types/customEvent.d.ts +52 -0
  111. package/dist/vite/types/hmrPayload.d.ts +80 -0
  112. package/dist/vite/types/hot.d.ts +39 -0
  113. package/dist/vite/types/import-meta.d.ts +5 -0
  114. package/dist/vite/types/importGlob.d.ts +89 -0
  115. package/dist/vite/types/importMeta.d.ts +30 -0
  116. package/dist/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  117. package/dist/vite/types/internal/esbuildOptions.d.ts +28 -0
  118. package/dist/vite/types/internal/lightningcssOptions.d.ts +18 -0
  119. package/dist/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  120. package/dist/vite/types/internal/terserOptions.d.ts +11 -0
  121. package/dist/vite/types/metadata.d.ts +38 -0
  122. package/package.json +198 -0
@@ -0,0 +1,1066 @@
1
+ import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
2
+ import { BuildOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
3
+ import { Hookable } from "hookable";
4
+ import { Options as DtsOptions } from "rolldown-plugin-dts";
5
+ import { StartOptions } from "@vitejs/devtools/cli-commands";
6
+ import { CheckPackageOptions } from "@arethetypeswrong/core";
7
+ import { Options } from "publint";
8
+ import { Options as UnusedOptions } from "unplugin-unused";
9
+
10
+ //#region ../../node_modules/.pnpm/tsdown@0.19.0-beta.5_@arethetypeswrong+core@0.18.2_@vitejs+devtools@0.0.0-alpha.24_@pnp_381121c80975625236d82ed1b131ce23/node_modules/tsdown/dist/types-_V4oT7uO.d.mts
11
+ //#region src/utils/types.d.ts
12
+ type Overwrite<T, U> = Omit<T, keyof U> & U;
13
+ type Awaitable<T> = T | Promise<T>;
14
+ type MarkPartial<T, K$1 extends keyof T> = Omit<Required<T>, K$1> & Partial<Pick<T, K$1>>;
15
+ type Arrayable<T> = T | T[];
16
+ //#endregion
17
+ //#region src/features/copy.d.ts
18
+ interface CopyEntry {
19
+ /**
20
+ * Source path or glob pattern.
21
+ */
22
+ from: string | string[];
23
+ /**
24
+ * Destination path.
25
+ * If not specified, defaults to the output directory ("outDir").
26
+ */
27
+ to?: string;
28
+ /**
29
+ * Whether to flatten the copied files (not preserving directory structure).
30
+ *
31
+ * @default true
32
+ */
33
+ flatten?: boolean;
34
+ /**
35
+ * Output copied items to console.
36
+ * @default false
37
+ */
38
+ verbose?: boolean;
39
+ /**
40
+ * Change destination file or folder name.
41
+ */
42
+ rename?: string | ((name: string, extension: string, fullPath: string) => string);
43
+ }
44
+ type CopyOptions = Arrayable<string | CopyEntry>;
45
+ type CopyOptionsFn = (options: ResolvedConfig) => Awaitable<CopyOptions>;
46
+ //#endregion
47
+ //#region src/features/css/index.d.ts
48
+ interface CssOptions {
49
+ /**
50
+ * Enable/disable CSS code splitting.
51
+ * When set to `false`, all CSS in the entire project will be extracted into a single CSS file.
52
+ * When set to `true`, CSS imported in async JS chunks will be preserved as chunks.
53
+ * @default true
54
+ */
55
+ splitting?: boolean;
56
+ /**
57
+ * Specify the name of the CSS file.
58
+ * @default 'style.css'
59
+ */
60
+ fileName?: string;
61
+ }
62
+ //#endregion
63
+ //#region src/features/devtools.d.ts
64
+ interface DevtoolsOptions extends NonNullable<InputOptions["devtools"]> {
65
+ /**
66
+ * **[experimental]** Enable devtools integration. `@vitejs/devtools` must be installed as a dependency.
67
+ *
68
+ * Defaults to true, if `@vitejs/devtools` is installed.
69
+ */
70
+ ui?: boolean | Partial<StartOptions>;
71
+ /**
72
+ * Clean devtools stale sessions.
73
+ *
74
+ * @default true
75
+ */
76
+ clean?: boolean;
77
+ }
78
+ //#endregion
79
+ //#region src/features/hooks.d.ts
80
+ interface BuildContext {
81
+ options: ResolvedConfig;
82
+ hooks: Hookable<TsdownHooks>;
83
+ }
84
+ interface RolldownContext {
85
+ buildOptions: BuildOptions;
86
+ }
87
+ /**
88
+ * Hooks for tsdown.
89
+ */
90
+ interface TsdownHooks {
91
+ /**
92
+ * Invoked before each tsdown build starts.
93
+ * Use this hook to perform setup or preparation tasks.
94
+ */
95
+ "build:prepare": (ctx: BuildContext) => void | Promise<void>;
96
+ /**
97
+ * Invoked before each Rolldown build.
98
+ * For dual-format builds, this hook is called for each format.
99
+ * Useful for configuring or modifying the build context before bundling.
100
+ */
101
+ "build:before": (ctx: BuildContext & RolldownContext) => void | Promise<void>;
102
+ /**
103
+ * Invoked after each tsdown build completes.
104
+ * Use this hook for cleanup or post-processing tasks.
105
+ */
106
+ "build:done": (ctx: BuildContext & {
107
+ chunks: RolldownChunk[];
108
+ }) => void | Promise<void>;
109
+ }
110
+ //#endregion
111
+ //#region node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.d.mts
112
+
113
+ interface PackageJson {
114
+ /**
115
+ * The name is what your thing is called.
116
+ * Some rules:
117
+ * - The name must be less than or equal to 214 characters. This includes the scope for scoped packages.
118
+ * - The name can’t start with a dot or an underscore.
119
+ * - New packages must not have uppercase letters in the name.
120
+ * - The name ends up being part of a URL, an argument on the command line, and a folder name. Therefore, the name can’t contain any non-URL-safe characters.
121
+ */
122
+ name?: string;
123
+ /**
124
+ * Version must be parseable by `node-semver`, which is bundled with npm as a dependency. (`npm install semver` to use it yourself.)
125
+ */
126
+ version?: string;
127
+ /**
128
+ * Put a description in it. It’s a string. This helps people discover your package, as it’s listed in `npm search`.
129
+ */
130
+ description?: string;
131
+ /**
132
+ * Put keywords in it. It’s an array of strings. This helps people discover your package as it’s listed in `npm search`.
133
+ */
134
+ keywords?: string[];
135
+ /**
136
+ * The url to the project homepage.
137
+ */
138
+ homepage?: string;
139
+ /**
140
+ * The url to your project’s issue tracker and / or the email address to which issues should be reported. These are helpful for people who encounter issues with your package.
141
+ */
142
+ bugs?: string | {
143
+ url?: string;
144
+ email?: string;
145
+ };
146
+ /**
147
+ * You should specify a license for your package so that people know how they are permitted to use it, and any restrictions you’re placing on it.
148
+ */
149
+ license?: string;
150
+ /**
151
+ * Specify the place where your code lives. This is helpful for people who want to contribute. If the git repo is on GitHub, then the `npm docs` command will be able to find you.
152
+ * For GitHub, GitHub gist, Bitbucket, or GitLab repositories you can use the same shortcut syntax you use for npm install:
153
+ */
154
+ repository?: string | {
155
+ type: string;
156
+ url: string;
157
+ /**
158
+ * If the `package.json` for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives:
159
+ */
160
+ directory?: string;
161
+ };
162
+ /**
163
+ * The `scripts` field is a dictionary containing script commands that are run at various times in the lifecycle of your package.
164
+ */
165
+ scripts?: PackageJsonScripts;
166
+ /**
167
+ * If you set `"private": true` in your package.json, then npm will refuse to publish it.
168
+ */
169
+ private?: boolean;
170
+ /**
171
+ * The “author” is one person.
172
+ */
173
+ author?: PackageJsonPerson;
174
+ /**
175
+ * “contributors” is an array of people.
176
+ */
177
+ contributors?: PackageJsonPerson[];
178
+ /**
179
+ * An object containing a URL that provides up-to-date information
180
+ * about ways to help fund development of your package,
181
+ * a string URL, or an array of objects and string URLs
182
+ */
183
+ funding?: PackageJsonFunding | PackageJsonFunding[];
184
+ /**
185
+ * The optional `files` field is an array of file patterns that describes the entries to be included when your package is installed as a dependency. File patterns follow a similar syntax to `.gitignore`, but reversed: including a file, directory, or glob pattern (`*`, `**\/*`, and such) will make it so that file is included in the tarball when it’s packed. Omitting the field will make it default to `["*"]`, which means it will include all files.
186
+ */
187
+ files?: string[];
188
+ /**
189
+ * The main field is a module ID that is the primary entry point to your program. That is, if your package is named `foo`, and a user installs it, and then does `require("foo")`, then your main module’s exports object will be returned.
190
+ * This should be a module ID relative to the root of your package folder.
191
+ * For most modules, it makes the most sense to have a main script and often not much else.
192
+ */
193
+ main?: string;
194
+ /**
195
+ * If your module is meant to be used client-side the browser field should be used instead of the main field. This is helpful to hint users that it might rely on primitives that aren’t available in Node.js modules. (e.g. window)
196
+ */
197
+ browser?: string | Record<string, string | false>;
198
+ /**
199
+ * The `unpkg` field is used to specify the URL to a UMD module for your package. This is used by default in the unpkg.com CDN service.
200
+ */
201
+ unpkg?: string;
202
+ /**
203
+ * A map of command name to local file name. On install, npm will symlink that file into `prefix/bin` for global installs, or `./node_modules/.bin/` for local installs.
204
+ */
205
+ bin?: string | Record<string, string>;
206
+ /**
207
+ * Specify either a single file or an array of filenames to put in place for the `man` program to find.
208
+ */
209
+ man?: string | string[];
210
+ /**
211
+ * Dependencies are specified in a simple object that maps a package name to a version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL.
212
+ */
213
+ dependencies?: Record<string, string>;
214
+ /**
215
+ * If someone is planning on downloading and using your module in their program, then they probably don’t want or need to download and build the external test or documentation framework that you use.
216
+ * In this case, it’s best to map these additional items in a `devDependencies` object.
217
+ */
218
+ devDependencies?: Record<string, string>;
219
+ /**
220
+ * If a dependency can be used, but you would like npm to proceed if it cannot be found or fails to install, then you may put it in the `optionalDependencies` object. This is a map of package name to version or url, just like the `dependencies` object. The difference is that build failures do not cause installation to fail.
221
+ */
222
+ optionalDependencies?: Record<string, string>;
223
+ /**
224
+ * In some cases, you want to express the compatibility of your package with a host tool or library, while not necessarily doing a `require` of this host. This is usually referred to as a plugin. Notably, your module may be exposing a specific interface, expected and specified by the host documentation.
225
+ */
226
+ peerDependencies?: Record<string, string>;
227
+ /**
228
+ * TypeScript typings, typically ending by `.d.ts`.
229
+ */
230
+ types?: string;
231
+ /**
232
+ * This field is synonymous with `types`.
233
+ */
234
+ typings?: string;
235
+ /**
236
+ * Non-Standard Node.js alternate entry-point to main.
237
+ * An initial implementation for supporting CJS packages (from main), and use module for ESM modules.
238
+ */
239
+ module?: string;
240
+ /**
241
+ * Make main entry-point be loaded as an ESM module, support "export" syntax instead of "require"
242
+ *
243
+ * Docs:
244
+ * - https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_package_json_type_field
245
+ *
246
+ * @default 'commonjs'
247
+ * @since Node.js v14
248
+ */
249
+ type?: "module" | "commonjs";
250
+ /**
251
+ * Alternate and extensible alternative to "main" entry point.
252
+ *
253
+ * When using `{type: "module"}`, any ESM module file MUST end with `.mjs` extension.
254
+ *
255
+ * Docs:
256
+ * - https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_exports_sugar
257
+ *
258
+ * @since Node.js v12.7
259
+ */
260
+ exports?: PackageJsonExports;
261
+ /**
262
+ * Docs:
263
+ * - https://nodejs.org/api/packages.html#imports
264
+ */
265
+ imports?: Record<string, string | Record<string, string>>;
266
+ /**
267
+ * The field is used to define a set of sub-packages (or workspaces) within a monorepo.
268
+ *
269
+ * This field is an array of glob patterns or an object with specific configurations for managing
270
+ * multiple packages in a single repository.
271
+ */
272
+ workspaces?: string[] | {
273
+ /**
274
+ * Workspace package paths. Glob patterns are supported.
275
+ */
276
+ packages?: string[];
277
+ /**
278
+ * Packages to block from hoisting to the workspace root.
279
+ * Uses glob patterns to match module paths in the dependency tree.
280
+ *
281
+ * Docs:
282
+ * - https://classic.yarnpkg.com/blog/2018/02/15/nohoist/
283
+ */
284
+ nohoist?: string[];
285
+ };
286
+ /**
287
+ * The field is used to specify different TypeScript declaration files for
288
+ * different versions of TypeScript, allowing for version-specific type definitions.
289
+ */
290
+ typesVersions?: Record<string, Record<string, string[]>>;
291
+ /**
292
+ * You can specify which operating systems your module will run on:
293
+ * ```json
294
+ * {
295
+ * "os": ["darwin", "linux"]
296
+ * }
297
+ * ```
298
+ * You can also block instead of allowing operating systems, just prepend the blocked os with a '!':
299
+ * ```json
300
+ * {
301
+ * "os": ["!win32"]
302
+ * }
303
+ * ```
304
+ * The host operating system is determined by `process.platform`
305
+ * It is allowed to both block and allow an item, although there isn't any good reason to do this.
306
+ */
307
+ os?: string[];
308
+ /**
309
+ * If your code only runs on certain cpu architectures, you can specify which ones.
310
+ * ```json
311
+ * {
312
+ * "cpu": ["x64", "ia32"]
313
+ * }
314
+ * ```
315
+ * Like the `os` option, you can also block architectures:
316
+ * ```json
317
+ * {
318
+ * "cpu": ["!arm", "!mips"]
319
+ * }
320
+ * ```
321
+ * The host architecture is determined by `process.arch`
322
+ */
323
+ cpu?: string[];
324
+ /**
325
+ * This is a set of config values that will be used at publish-time.
326
+ */
327
+ publishConfig?: {
328
+ /**
329
+ * The registry that will be used if the package is published.
330
+ */
331
+ registry?: string;
332
+ /**
333
+ * The tag that will be used if the package is published.
334
+ */
335
+ tag?: string;
336
+ /**
337
+ * The access level that will be used if the package is published.
338
+ */
339
+ access?: "public" | "restricted";
340
+ /**
341
+ * **pnpm-only**
342
+ *
343
+ * By default, for portability reasons, no files except those listed in
344
+ * the bin field will be marked as executable in the resulting package
345
+ * archive. The executableFiles field lets you declare additional fields
346
+ * that must have the executable flag (+x) set even if
347
+ * they aren't directly accessible through the bin field.
348
+ */
349
+ executableFiles?: string[];
350
+ /**
351
+ * **pnpm-only**
352
+ *
353
+ * You also can use the field `publishConfig.directory` to customize
354
+ * the published subdirectory relative to the current `package.json`.
355
+ *
356
+ * It is expected to have a modified version of the current package in
357
+ * the specified directory (usually using third party build tools).
358
+ */
359
+ directory?: string;
360
+ /**
361
+ * **pnpm-only**
362
+ *
363
+ * When set to `true`, the project will be symlinked from the
364
+ * `publishConfig.directory` location during local development.
365
+ * @default true
366
+ */
367
+ linkDirectory?: boolean;
368
+ } & Pick<PackageJson, "bin" | "main" | "exports" | "types" | "typings" | "module" | "browser" | "unpkg" | "typesVersions" | "os" | "cpu">;
369
+ /**
370
+ * See: https://nodejs.org/api/packages.html#packagemanager
371
+ * This field defines which package manager is expected to be used when working on the current project.
372
+ * Should be of the format: `<name>@<version>[#hash]`
373
+ */
374
+ packageManager?: string;
375
+ [key: string]: any;
376
+ }
377
+ /**
378
+ * See: https://docs.npmjs.com/cli/v11/using-npm/scripts#pre--post-scripts
379
+ */
380
+ type PackageJsonScriptWithPreAndPost<S extends string> = S | `${"pre" | "post"}${S}`;
381
+ /**
382
+ * See: https://docs.npmjs.com/cli/v11/using-npm/scripts#life-cycle-operation-order
383
+ */
384
+ type PackageJsonNpmLifeCycleScripts = "dependencies" | "prepublishOnly" | PackageJsonScriptWithPreAndPost<"install" | "pack" | "prepare" | "publish" | "restart" | "start" | "stop" | "test" | "version">;
385
+ /**
386
+ * See: https://pnpm.io/scripts#lifecycle-scripts
387
+ */
388
+ type PackageJsonPnpmLifeCycleScripts = "pnpm:devPreinstall";
389
+ type PackageJsonCommonScripts = "build" | "coverage" | "deploy" | "dev" | "format" | "lint" | "preview" | "release" | "typecheck" | "watch";
390
+ type PackageJsonScriptName = PackageJsonCommonScripts | PackageJsonNpmLifeCycleScripts | PackageJsonPnpmLifeCycleScripts | (string & {});
391
+ type PackageJsonScripts = { [P in PackageJsonScriptName]?: string };
392
+ /**
393
+ * A “person” is an object with a “name” field and optionally “url” and “email”. Or you can shorten that all into a single string, and npm will parse it for you.
394
+ */
395
+ type PackageJsonPerson = string | {
396
+ name: string;
397
+ email?: string;
398
+ url?: string;
399
+ };
400
+ type PackageJsonFunding = string | {
401
+ url: string;
402
+ type?: string;
403
+ };
404
+ type PackageJsonExportKey = "." | "import" | "require" | "types" | "node" | "browser" | "default" | (string & {});
405
+ type PackageJsonExportsObject = { [P in PackageJsonExportKey]?: string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject> };
406
+ type PackageJsonExports = string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject>;
407
+
408
+ /**
409
+ * Defines a PackageJson structure.
410
+ * @param pkg - The `package.json` content as an object. See {@link PackageJson}.
411
+ * @returns the same `package.json` object.
412
+ */
413
+ //#endregion
414
+ //#region src/utils/package.d.ts
415
+ interface PackageJsonWithPath extends PackageJson {
416
+ packageJsonPath: string;
417
+ }
418
+ type PackageType = "module" | "commonjs" | undefined;
419
+ //#endregion
420
+ //#region src/features/output.d.ts
421
+ interface OutExtensionContext {
422
+ options: InputOptions;
423
+ format: NormalizedFormat;
424
+ /** "type" field in project's package.json */
425
+ pkgType?: PackageType;
426
+ }
427
+ interface OutExtensionObject {
428
+ js?: string;
429
+ dts?: string;
430
+ }
431
+ type OutExtensionFactory = (context: OutExtensionContext) => OutExtensionObject | undefined;
432
+ interface ChunkAddonObject {
433
+ js?: string;
434
+ css?: string;
435
+ dts?: string;
436
+ }
437
+ type ChunkAddonFunction = (ctx: {
438
+ format: Format;
439
+ fileName: string;
440
+ }) => ChunkAddonObject | string | undefined;
441
+ type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string;
442
+ //#endregion
443
+ //#region src/features/pkg/attw.d.ts
444
+ interface AttwOptions extends CheckPackageOptions {
445
+ /**
446
+ * Profiles select a set of resolution modes to require/ignore. All are evaluated but failures outside
447
+ * of those required are ignored.
448
+ *
449
+ * The available profiles are:
450
+ * - `strict`: requires all resolutions
451
+ * - `node16`: ignores node10 resolution failures
452
+ * - `esm-only`: ignores CJS resolution failures
453
+ *
454
+ * @default 'strict'
455
+ */
456
+ profile?: "strict" | "node16" | "esm-only";
457
+ /**
458
+ * The level of the check.
459
+ *
460
+ * The available levels are:
461
+ * - `error`: fails the build
462
+ * - `warn`: warns the build
463
+ *
464
+ * @default 'warn'
465
+ */
466
+ level?: "error" | "warn";
467
+ /**
468
+ * List of problem types to ignore by rule name.
469
+ *
470
+ * The available values are:
471
+ * - `no-resolution`
472
+ * - `untyped-resolution`
473
+ * - `false-cjs`
474
+ * - `false-esm`
475
+ * - `cjs-resolves-to-esm`
476
+ * - `fallback-condition`
477
+ * - `cjs-only-exports-default`
478
+ * - `named-exports`
479
+ * - `false-export-default`
480
+ * - `missing-export-equals`
481
+ * - `unexpected-module-syntax`
482
+ * - `internal-resolution-error`
483
+ *
484
+ * @example
485
+ * ```ts
486
+ * ignoreRules: ['no-resolution', 'false-cjs']
487
+ * ```
488
+ */
489
+ ignoreRules?: string[];
490
+ }
491
+ //#endregion
492
+ //#region src/utils/chunks.d.ts
493
+ type RolldownChunk = (OutputChunk | OutputAsset) & {
494
+ outDir: string;
495
+ };
496
+ type ChunksByFormat = Partial<Record<NormalizedFormat, RolldownChunk[]>>;
497
+ interface TsdownBundle extends AsyncDisposable {
498
+ chunks: RolldownChunk[];
499
+ config: ResolvedConfig;
500
+ }
501
+ //#endregion
502
+ //#region src/features/pkg/exports.d.ts
503
+ interface ExportsOptions {
504
+ /**
505
+ * Generate exports that link to source code during development.
506
+ * - string: add as a custom condition.
507
+ * - true: all conditions point to source files, and add dist exports to `publishConfig`.
508
+ */
509
+ devExports?: boolean | string;
510
+ /**
511
+ * Exports for package.json file.
512
+ * @default true
513
+ */
514
+ packageJson?: boolean;
515
+ /**
516
+ * Exports for all files.
517
+ */
518
+ all?: boolean;
519
+ /**
520
+ * Specifies file patterns (as glob patterns or regular expressions) to exclude from package exports.
521
+ * Use this to prevent certain files from being included in the exported package, such as test files, binaries, or internal utilities.
522
+ *
523
+ * **Note:** Do not include file extensions, and paths should be relative to the dist directory.
524
+ *
525
+ * @example
526
+ * exclude: ['cli', '**\/*.test', /internal/]
527
+ */
528
+ exclude?: (RegExp | string)[];
529
+ /**
530
+ * Generate legacy fields (`main` and `module`) for older Node.js and bundlers
531
+ * that do not support package `exports` field.
532
+ *
533
+ * Defaults to false, if only ESM builds are included, true otherwise.
534
+ *
535
+ * @see {@link https://github.com/publint/publint/issues/24}
536
+ */
537
+ legacy?: boolean;
538
+ customExports?: (exports: Record<string, any>, context: {
539
+ pkg: PackageJson;
540
+ chunks: ChunksByFormat;
541
+ isPublish: boolean;
542
+ }) => Awaitable<Record<string, any>>;
543
+ }
544
+ //#endregion
545
+ //#region src/features/pkg/publint.d.ts
546
+ interface PublintOptions extends Options {}
547
+ //#endregion
548
+ //#region src/utils/logger.d.ts
549
+ type LogType = "error" | "warn" | "info";
550
+ type LogLevel = LogType | "silent";
551
+ interface Logger {
552
+ level: LogLevel;
553
+ info: (...args: any[]) => void;
554
+ warn: (...args: any[]) => void;
555
+ warnOnce: (...args: any[]) => void;
556
+ error: (...args: any[]) => void;
557
+ success: (...args: any[]) => void;
558
+ }
559
+ declare const globalLogger: Logger;
560
+ //#endregion
561
+ //#region src/features/report.d.ts
562
+ interface ReportOptions {
563
+ /**
564
+ * Enable/disable gzip-compressed size reporting.
565
+ * Compressing large output files can be slow, so disabling this may increase build performance for large projects.
566
+ *
567
+ * @default true
568
+ */
569
+ gzip?: boolean;
570
+ /**
571
+ * Enable/disable brotli-compressed size reporting.
572
+ * Compressing large output files can be slow, so disabling this may increase build performance for large projects.
573
+ *
574
+ * @default false
575
+ */
576
+ brotli?: boolean;
577
+ /**
578
+ * Skip reporting compressed size for files larger than this size.
579
+ * @default 1_000_000 // 1MB
580
+ */
581
+ maxCompressSize?: number;
582
+ }
583
+ //#endregion
584
+ //#region src/config/types.d.ts
585
+ type Sourcemap = boolean | "inline" | "hidden";
586
+ type Format = ModuleFormat;
587
+ type NormalizedFormat = InternalModuleFormat;
588
+ /**
589
+ * Extended input option that supports glob negation patterns.
590
+ *
591
+ * When using object form, values can be:
592
+ * - A single glob pattern string
593
+ * - An array of glob patterns, including negation patterns (prefixed with `!`)
594
+ *
595
+ * @example
596
+ * ```ts
597
+ * entry: {
598
+ * // Single pattern
599
+ * "utils/*": "./src/utils/*.ts",
600
+ * // Array with negation pattern to exclude files
601
+ * "hooks/*": ["./src/hooks/*.ts", "!./src/hooks/index.ts"],
602
+ * }
603
+ * ```
604
+ */
605
+ type TsdownInputOption = string | string[] | Record<string, string | string[]>;
606
+ interface Workspace {
607
+ /**
608
+ * Workspace directories. Glob patterns are supported.
609
+ * - `auto`: Automatically detect `package.json` files in the workspace.
610
+ * @default 'auto'
611
+ */
612
+ include?: Arrayable<string> | "auto";
613
+ /**
614
+ * Exclude directories from workspace.
615
+ * Defaults to all `node_modules`, `dist`, `test`, `tests`, `temp`, and `tmp` directories.
616
+ */
617
+ exclude?: Arrayable<string>;
618
+ /**
619
+ * Path to the workspace configuration file.
620
+ */
621
+ config?: boolean | string;
622
+ }
623
+ type NoExternalFn = (id: string, importer: string | undefined) => boolean | null | undefined | void;
624
+ type CIOption = "ci-only" | "local-only";
625
+ type WithEnabled<T> = boolean | undefined | CIOption | (T & {
626
+ /** @default true */
627
+ enabled?: boolean | CIOption;
628
+ });
629
+ /**
630
+ * Options for tsdown.
631
+ */
632
+ interface UserConfig {
633
+ /**
634
+ * Defaults to `'src/index.ts'` if it exists.
635
+ *
636
+ * Supports glob patterns with negation to exclude files:
637
+ * @example
638
+ * ```ts
639
+ * entry: {
640
+ * "hooks/*": ["./src/hooks/*.ts", "!./src/hooks/index.ts"],
641
+ * }
642
+ * ```
643
+ */
644
+ entry?: TsdownInputOption;
645
+ external?: ExternalOption;
646
+ noExternal?: Arrayable<string | RegExp> | NoExternalFn;
647
+ /**
648
+ * Bundle only the dependencies listed here; throw an error if any others are missing.
649
+ *
650
+ * Note: Be sure to include all required sub-dependencies as well.
651
+ */
652
+ inlineOnly?: Arrayable<string | RegExp>;
653
+ /**
654
+ * Skip bundling `node_modules`.
655
+ * @default false
656
+ */
657
+ skipNodeModulesBundle?: boolean;
658
+ alias?: Record<string, string>;
659
+ tsconfig?: string | boolean;
660
+ /**
661
+ * Specifies the target runtime platform for the build.
662
+ *
663
+ * - `node`: Node.js and compatible runtimes (e.g., Deno, Bun).
664
+ * For CJS format, this is always set to `node` and cannot be changed.
665
+ * - `neutral`: A platform-agnostic target with no specific runtime assumptions.
666
+ * - `browser`: Web browsers.
667
+ *
668
+ * @default 'node'
669
+ * @see https://tsdown.dev/options/platform
670
+ */
671
+ platform?: "node" | "neutral" | "browser";
672
+ /**
673
+ * Specifies the compilation target environment(s).
674
+ *
675
+ * Determines the JavaScript version or runtime(s) for which the code should be compiled.
676
+ * If not set, defaults to the value of `engines.node` in your project's `package.json`.
677
+ * If no `engines.node` field exists, no syntax transformations are applied.
678
+ *
679
+ * Accepts a single target (e.g., `'es2020'`, `'node18'`), an array of targets, or `false` to disable all transformations.
680
+ *
681
+ * @see {@link https://tsdown.dev/options/target#supported-targets} for a list of valid targets and more details.
682
+ *
683
+ * @example
684
+ * ```jsonc
685
+ * // Target a single environment
686
+ * { "target": "node18" }
687
+ * ```
688
+ *
689
+ * @example
690
+ * ```jsonc
691
+ * // Target multiple environments
692
+ * { "target": ["node18", "es2020"] }
693
+ * ```
694
+ *
695
+ * @example
696
+ * ```jsonc
697
+ * // Disable all syntax transformations
698
+ * { "target": false }
699
+ * ```
700
+ */
701
+ target?: string | string[] | false;
702
+ /**
703
+ * Compile-time env variables, which can be accessed via `import.meta.env` or `process.env`.
704
+ * @example
705
+ * ```json
706
+ * {
707
+ * "DEBUG": true,
708
+ * "NODE_ENV": "production"
709
+ * }
710
+ * ```
711
+ */
712
+ env?: Record<string, any>;
713
+ /**
714
+ * Path to env file providing compile-time env variables.
715
+ * @example
716
+ * `.env`, `.env.production`, etc.
717
+ */
718
+ envFile?: string;
719
+ /**
720
+ * When loading env variables from `envFile`, only include variables with these prefixes.
721
+ * @default 'TSDOWN_'
722
+ */
723
+ envPrefix?: string | string[];
724
+ define?: Record<string, string>;
725
+ /** @default false */
726
+ shims?: boolean;
727
+ /**
728
+ * Configure tree shaking options.
729
+ * @see {@link https://rolldown.rs/options/treeshake} for more details.
730
+ * @default true
731
+ */
732
+ treeshake?: boolean | TreeshakingOptions;
733
+ /**
734
+ * Sets how input files are processed.
735
+ * For example, use 'js' to treat files as JavaScript or 'base64' for images.
736
+ * Lets you import or require files like images or fonts.
737
+ * @example
738
+ * ```json
739
+ * { '.jpg': 'asset', '.png': 'base64' }
740
+ * ```
741
+ */
742
+ loader?: ModuleTypes;
743
+ /**
744
+ * If enabled, strips the `node:` protocol prefix from import source.
745
+ *
746
+ * @default false
747
+ * @deprecated Use `nodeProtocol: 'strip'` instead.
748
+ *
749
+ * @example
750
+ * // With removeNodeProtocol enabled:
751
+ * import('node:fs'); // becomes import('fs')
752
+ */
753
+ removeNodeProtocol?: boolean;
754
+ /**
755
+ * - If `true`, add `node:` prefix to built-in modules.
756
+ * - If `'strip'`, strips the `node:` protocol prefix from import source.
757
+ * - If `false`, does not modify the import source.
758
+ *
759
+ * @default false
760
+ *
761
+ * @example
762
+ * // With nodeProtocol enabled:
763
+ * import('fs'); // becomes import('node:fs')
764
+ * // With nodeProtocol set to 'strip':
765
+ * import('node:fs'); // becomes import('fs')
766
+ * // With nodeProtocol set to false:
767
+ * import('node:fs'); // remains import('node:fs')
768
+ *
769
+ */
770
+ nodeProtocol?: "strip" | boolean;
771
+ plugins?: InputOptions["plugins"];
772
+ /**
773
+ * Use with caution; ensure you understand the implications.
774
+ */
775
+ inputOptions?: InputOptions | ((options: InputOptions, format: NormalizedFormat, context: {
776
+ cjsDts: boolean;
777
+ }) => Awaitable<InputOptions | void | null>);
778
+ /** @default 'es' */
779
+ format?: Format | Format[] | Partial<Record<Format, Partial<ResolvedConfig>>>;
780
+ globalName?: string;
781
+ /** @default 'dist' */
782
+ outDir?: string;
783
+ /**
784
+ * Whether to write the files to disk.
785
+ * This option is incompatible with watch mode.
786
+ * @default true
787
+ */
788
+ write?: boolean;
789
+ /**
790
+ * Whether to generate source map files.
791
+ *
792
+ * Note that this option will always be `true` if you have
793
+ * [`declarationMap`](https://www.typescriptlang.org/tsconfig/#declarationMap)
794
+ * option enabled in your `tsconfig.json`.
795
+ *
796
+ * @default false
797
+ */
798
+ sourcemap?: Sourcemap;
799
+ /**
800
+ * Clean directories before build.
801
+ *
802
+ * Default to output directory.
803
+ * @default true
804
+ */
805
+ clean?: boolean | string[];
806
+ /**
807
+ * @default false
808
+ */
809
+ minify?: boolean | "dce-only" | MinifyOptions;
810
+ footer?: ChunkAddon;
811
+ banner?: ChunkAddon;
812
+ /**
813
+ * Determines whether unbundle mode is enabled.
814
+ * When set to true, the output files will mirror the input file structure.
815
+ * @default false
816
+ */
817
+ unbundle?: boolean;
818
+ /**
819
+ * @deprecated Use `unbundle` instead.
820
+ * @default true
821
+ */
822
+ bundle?: boolean;
823
+ /**
824
+ * Use a fixed extension for output files.
825
+ * The extension will always be `.cjs` or `.mjs`.
826
+ * Otherwise, it will depend on the package type.
827
+ *
828
+ * Defaults to `true` if `platform` is set to `node`, `false` otherwise.
829
+ */
830
+ fixedExtension?: boolean;
831
+ /**
832
+ * Custom extensions for output files.
833
+ * `fixedExtension` will be overridden by this option.
834
+ */
835
+ outExtensions?: OutExtensionFactory;
836
+ /**
837
+ * If enabled, appends hash to chunk filenames.
838
+ * @default true
839
+ */
840
+ hash?: boolean;
841
+ /**
842
+ * @default true
843
+ */
844
+ cjsDefault?: boolean;
845
+ /**
846
+ * Use with caution; ensure you understand the implications.
847
+ */
848
+ outputOptions?: OutputOptions | ((options: OutputOptions, format: NormalizedFormat, context: {
849
+ cjsDts: boolean;
850
+ }) => Awaitable<OutputOptions | void | null>);
851
+ /**
852
+ * The working directory of the config file.
853
+ * - Defaults to `process.cwd()` for root config.
854
+ * - Defaults to the package directory for workspace config.
855
+ */
856
+ cwd?: string;
857
+ /**
858
+ * The name to show in CLI output. This is useful for monorepos or workspaces.
859
+ * When using workspace mode, this option defaults to the package name from package.json.
860
+ * In non-workspace mode, this option must be set explicitly for the name to show in the CLI output.
861
+ */
862
+ name?: string;
863
+ /**
864
+ * Log level.
865
+ * @default 'info'
866
+ */
867
+ logLevel?: LogLevel;
868
+ /**
869
+ * If true, fails the build on warnings.
870
+ * @default 'ci-only'
871
+ */
872
+ failOnWarn?: boolean | CIOption;
873
+ /**
874
+ * Custom logger.
875
+ */
876
+ customLogger?: Logger;
877
+ /**
878
+ * Reuse config from Vite or Vitest (experimental)
879
+ * @default false
880
+ */
881
+ fromVite?: boolean | "vitest";
882
+ /**
883
+ * @default false
884
+ */
885
+ watch?: boolean | Arrayable<string>;
886
+ /**
887
+ * Files or patterns to not watch while in watch mode.
888
+ */
889
+ ignoreWatch?: Arrayable<string | RegExp>;
890
+ /**
891
+ * **[experimental]** Enable devtools.
892
+ *
893
+ *DevTools is still under development, and this is for early testers only.
894
+ *
895
+ * This may slow down the build process significantly.
896
+ *
897
+ * @default false
898
+ */
899
+ devtools?: WithEnabled<DevtoolsOptions>;
900
+ /**
901
+ * You can specify command to be executed after a successful build, specially useful for Watch mode
902
+ */
903
+ onSuccess?: string | ((config: ResolvedConfig, signal: AbortSignal) => void | Promise<void>);
904
+ /**
905
+ * Enables generation of TypeScript declaration files (`.d.ts`).
906
+ *
907
+ * By default, this option is auto-detected based on your project's `package.json`:
908
+ * - If the `types` field is present, or if the main `exports` contains a `types` entry, declaration file generation is enabled by default.
909
+ * - Otherwise, declaration file generation is disabled by default.
910
+ */
911
+ dts?: WithEnabled<DtsOptions>;
912
+ /**
913
+ * Enable unused dependencies check with `unplugin-unused`
914
+ * Requires `unplugin-unused` to be installed.
915
+ * @default false
916
+ */
917
+ unused?: WithEnabled<UnusedOptions>;
918
+ /**
919
+ * Run publint after bundling.
920
+ * Requires `publint` to be installed.
921
+ * @default false
922
+ */
923
+ publint?: WithEnabled<PublintOptions>;
924
+ /**
925
+ * Run `arethetypeswrong` after bundling.
926
+ * Requires `@arethetypeswrong/core` to be installed.
927
+ *
928
+ * @default false
929
+ * @see https://github.com/arethetypeswrong/arethetypeswrong.github.io
930
+ */
931
+ attw?: WithEnabled<AttwOptions>;
932
+ /**
933
+ * Enable size reporting after bundling.
934
+ * @default true
935
+ */
936
+ report?: WithEnabled<ReportOptions>;
937
+ /**
938
+ * `import.meta.glob` support.
939
+ * @see https://vite.dev/guide/features.html#glob-import
940
+ * @default true
941
+ */
942
+ globImport?: boolean;
943
+ /**
944
+ * Generate package exports for `package.json`.
945
+ *
946
+ * This will set the `main`, `module`, `types`, `exports` fields in `package.json`
947
+ * to point to the generated files.
948
+ */
949
+ exports?: WithEnabled<ExportsOptions>;
950
+ /**
951
+ * **[experimental]** CSS options.
952
+ */
953
+ css?: CssOptions;
954
+ /**
955
+ * @deprecated Alias for `copy`, will be removed in the future.
956
+ */
957
+ publicDir?: CopyOptions | CopyOptionsFn;
958
+ /**
959
+ * Copy files to another directory.
960
+ * @example
961
+ * ```ts
962
+ * [
963
+ * 'src/assets',
964
+ * 'src/env.d.ts',
965
+ * 'src/styles/**\/*.css',
966
+ * { from: 'src/assets', to: 'dist/assets' },
967
+ * { from: 'src/styles/**\/*.css', to: 'dist', flatten: true },
968
+ * ]
969
+ * ```
970
+ */
971
+ copy?: CopyOptions | CopyOptionsFn;
972
+ hooks?: Partial<TsdownHooks> | ((hooks: Hookable<TsdownHooks>) => Awaitable<void>);
973
+ /**
974
+ * **[experimental]** Enable workspace mode.
975
+ * This allows you to build multiple packages in a monorepo.
976
+ */
977
+ workspace?: Workspace | Arrayable<string> | true;
978
+ }
979
+ interface InlineConfig extends UserConfig {
980
+ /**
981
+ * Config file path
982
+ */
983
+ config?: boolean | string;
984
+ /**
985
+ * Config loader to use. It can only be set via CLI or API.
986
+ * @default 'auto'
987
+ */
988
+ configLoader?: "auto" | "native" | "unrun";
989
+ /**
990
+ * Filter configs by cwd or name.
991
+ */
992
+ filter?: RegExp | Arrayable<string>;
993
+ }
994
+ type UserConfigFn = (inlineConfig: InlineConfig, context: {
995
+ ci: boolean;
996
+ }) => Awaitable<Arrayable<UserConfig>>;
997
+ type UserConfigExport = Awaitable<Arrayable<UserConfig> | UserConfigFn>;
998
+ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "fromVite" | "publicDir" | "bundle" | "removeNodeProtocol" | "logLevel" | "failOnWarn" | "customLogger" | "envFile" | "envPrefix">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "external" | "onSuccess" | "outExtensions" | "hooks" | "copy" | "loader" | "name" | "banner" | "footer">, {
999
+ /** Resolved entry map (after glob expansion) */
1000
+ entry: Record<string, string>;
1001
+ nameLabel: string | undefined;
1002
+ format: NormalizedFormat;
1003
+ target?: string[];
1004
+ clean: string[];
1005
+ pkg?: PackageJsonWithPath;
1006
+ nodeProtocol: "strip" | boolean;
1007
+ logger: Logger;
1008
+ ignoreWatch: Array<string | RegExp>;
1009
+ noExternal?: NoExternalFn;
1010
+ inlineOnly?: Array<string | RegExp>;
1011
+ css: Required<CssOptions>;
1012
+ dts: false | DtsOptions;
1013
+ report: false | ReportOptions;
1014
+ tsconfig: false | string;
1015
+ exports: false | ExportsOptions;
1016
+ devtools: false | DevtoolsOptions;
1017
+ publint: false | PublintOptions;
1018
+ attw: false | AttwOptions;
1019
+ unused: false | UnusedOptions;
1020
+ }>;
1021
+ //#endregion
1022
+ //#endregion
1023
+ //#region ../../node_modules/.pnpm/tsdown@0.19.0-beta.5_@arethetypeswrong+core@0.18.2_@vitejs+devtools@0.0.0-alpha.24_@pnp_381121c80975625236d82ed1b131ce23/node_modules/tsdown/dist/config-B_X6YTxy.d.mts
1024
+ //#region src/config/options.d.ts
1025
+
1026
+ /**
1027
+ * Resolve user config into resolved configs
1028
+ *
1029
+ * **Internal API, not for public use**
1030
+ * @private
1031
+ */
1032
+ declare function resolveUserConfig(userConfig: UserConfig, inlineConfig: InlineConfig): Promise<ResolvedConfig[]>;
1033
+ declare function mergeConfig(defaults: UserConfig, overrides: UserConfig): UserConfig;
1034
+ declare function mergeConfig(defaults: InlineConfig, overrides: InlineConfig): InlineConfig;
1035
+ //#endregion
1036
+ //#region src/config.d.ts
1037
+ /**
1038
+ * Defines the configuration for tsdown.
1039
+ */
1040
+ declare function defineConfig(options: UserConfig): UserConfig;
1041
+ declare function defineConfig(options: UserConfig[]): UserConfig[];
1042
+ declare function defineConfig(options: UserConfigFn): UserConfigFn;
1043
+ declare function defineConfig(options: UserConfigExport): UserConfigExport;
1044
+ //#endregion
1045
+ //#endregion
1046
+ //#region ../../node_modules/.pnpm/tsdown@0.19.0-beta.5_@arethetypeswrong+core@0.18.2_@vitejs+devtools@0.0.0-alpha.24_@pnp_381121c80975625236d82ed1b131ce23/node_modules/tsdown/dist/index.d.mts
1047
+ //#region src/build.d.ts
1048
+
1049
+ /**
1050
+ * Build with tsdown.
1051
+ */
1052
+ declare function build(userOptions?: InlineConfig): Promise<TsdownBundle[]>;
1053
+ /**
1054
+ * Build with `ResolvedConfigs`.
1055
+ *
1056
+ * **Internal API, not for public use**
1057
+ * @private
1058
+ */
1059
+ declare function buildWithConfigs(configs: ResolvedConfig[], configFiles: string[]): Promise<TsdownBundle[]>;
1060
+ //#endregion
1061
+ //#region src/features/debug.d.ts
1062
+ declare function enableDebug(debug?: boolean | Arrayable<string>): void;
1063
+ //#endregion
1064
+
1065
+ //#endregion
1066
+ export { AttwOptions, BuildContext, CIOption, ChunkAddon, ChunkAddonFunction, ChunkAddonObject, CopyEntry, CopyOptions, CopyOptionsFn, CssOptions, DevtoolsOptions, DtsOptions, ExportsOptions, Format, InlineConfig, type Logger, NoExternalFn, NormalizedFormat, OutExtensionContext, OutExtensionFactory, OutExtensionObject, PackageJsonWithPath, PackageType, PublintOptions, ReportOptions, ResolvedConfig, Rolldown, RolldownChunk, RolldownContext, Sourcemap, TreeshakingOptions, TsdownBundle, TsdownHooks, TsdownInputOption, UnusedOptions, UserConfig, UserConfigExport, UserConfigFn, WithEnabled, Workspace, build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig };