@@ -96,26 +96,27 @@ dts({
9696
9797### General
9898
99- | Option | Description | Default |
100- | ----------------- | ----------------------------------------------------------------------------------------- | ----------------------- |
101- | ` generator ` | Built-in generator name or a custom ` Generator ` implementation. | Inferred |
102- | ` tsc ` | Options for the built-in ` tsc ` generator. | ` {} ` |
103- | ` entry ` | Glob or globs selecting files to emit. Supports ` ! ` negation and paths relative to ` cwd ` . | Rolldown entries |
104- | ` cwd ` | Base directory for config discovery, globs, and relative paths. | ` process.cwd() ` |
105- | ` dtsOnly ` | Build declarations only. See [ Declaration-only builds] ( #declaration-only-builds ) . | ` false ` |
106- | ` tsconfig ` | Config path; ` true ` discovers one and ` false ` disables loading. | Nearest ` tsconfig.json ` |
107- | ` tsconfigRaw ` | Raw config values merged over the loaded config. | ` {} ` |
108- | ` compilerOptions ` | Compiler options merged over the loaded config. | ` {} ` |
109- | ` sourcemap ` | Emit ` .d.ts.map ` files. | ` declarationMap ` |
110- | ` resolver ` | Resolve declaration imports with ` oxc ` or ` tsc ` . | ` oxc ` |
111- | ` cjsDefault ` | Convert a single default export to ` export = ` . | ` false ` |
112- | ` sideEffects ` | Mark declaration modules as having side effects. | ` false ` |
113- | ` logger ` | Logger implementing ` info ` , ` warn ` , and ` error ` . | ` console ` |
99+ | Option | Description | Default |
100+ | ----------------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------- |
101+ | ` generator ` | Built-in generator name or a custom ` Generator ` implementation. | Inferred |
102+ | ` tsc ` | Options for the built-in ` tsc ` generator. | ` {} ` |
103+ | ` entry ` | Glob or globs filtering which Rolldown entries emit declarations . Supports ` ! ` negation and paths relative to ` cwd ` . | All Rolldown entries |
104+ | ` cwd ` | Base directory for config discovery, globs, and relative paths. | ` process.cwd() ` |
105+ | ` dtsOnly ` | Build declarations only. See [ Declaration-only builds] ( #declaration-only-builds ) . | ` false ` |
106+ | ` tsconfig ` | Config path; ` true ` discovers one and ` false ` disables loading. | Nearest ` tsconfig.json ` |
107+ | ` tsconfigRaw ` | Raw config values merged over the loaded config. | ` {} ` |
108+ | ` compilerOptions ` | Compiler options merged over the loaded config. | ` {} ` |
109+ | ` sourcemap ` | Emit ` .d.ts.map ` files. | ` declarationMap ` |
110+ | ` resolver ` | Resolve declaration imports with ` oxc ` or ` tsc ` . | ` oxc ` |
111+ | ` cjsDefault ` | Convert a single default export to ` export = ` . | ` false ` |
112+ | ` sideEffects ` | Mark declaration modules as having side effects. | ` false ` |
113+ | ` logger ` | Logger implementing ` info ` , ` warn ` , and ` error ` . | ` console ` |
114114
115115` tsc.* ` , ` oxc.* ` , ` tsgo.* ` , and ` tsrs.* ` apply only to their respective
116116generators.
117117
118- ` entry ` may include files that are not Rolldown entry points:
118+ ` entry ` filters Rolldown entries. It never adds declarations for files that
119+ are not entries. For example, to skip declarations for icon entries:
119120
120121``` ts
121122dts ({
0 commit comments