Skip to content

Commit eed8c71

Browse files
committed
feat: remove emitDtsOnly option
1 parent 9daec5f commit eed8c71

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

.changeset/cruel-loops-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"elysia-remote-dts": patch
3+
---
4+
5+
remove option for `emitDtsOnly`

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ dts(entryPoint, options)
6262
|--------|------|---------|-------------|
6363
| `cwd` | `string` | Current directory | The directory where the plugin will look for the `tsconfig.json` file. |
6464
| `dtsInput` | `boolean` | `false` | When entries are `.d.ts` files (instead of `.ts` files), this option should be set to `true`. If enabled, the plugin will skip generating a `.d.ts` file for the entry point. |
65-
| `emitDtsOnly` | `boolean` | `false` | When `true`, the plugin will only emit `.d.ts` files and remove all other chunks. Useful when generating `d.ts` files for CommonJS format as part of a separate build process. |
6665
| `tsconfig` | `string \| boolean` | `"tsconfig.json"` | The path to the `tsconfig.json` file. When set to `false`, any `tsconfig.json` file will be ignored. |
6766
| `compilerOptions` | `object` | `{}` | The `compilerOptions` for the TypeScript compiler. See [TypeScript compiler options](https://www.typescriptlang.org/docs/handbook/compiler-options.html). |
6867
| `resolve` | `boolean \| (string \| RegExp)[]` | `false` | Resolve external types used in `.d.ts` files from `node_modules`. Can be a boolean or an array of strings/RegExp patterns. |

src/resolveOptions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export function resolveOptions({
77
tsconfig,
88
compilerOptions = {},
99
dtsInput = false,
10-
emitDtsOnly = false,
1110
resolve = false,
1211
resolvePaths,
1312
}: Options): OptionsResolved {
@@ -39,7 +38,7 @@ export function resolveOptions({
3938
isolatedDeclarations: false,
4039
sourcemap: false,
4140
dtsInput,
42-
emitDtsOnly,
41+
emitDtsOnly: false,
4342
resolve,
4443
resolvePaths: resolvePaths ?? !!compilerOptions?.paths,
4544
}

src/types.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ export interface Options {
1313
*/
1414
dtsInput?: boolean
1515

16-
/**
17-
* When `true`, the plugin will only emit `.d.ts` files and remove all other chunks.
18-
*
19-
* This feature is particularly beneficial when you need to generate `d.ts` files for the CommonJS format as part of a separate build process.
20-
*/
21-
emitDtsOnly?: boolean
22-
2316
/**
2417
* The path to the `tsconfig.json` file.
2518
*
@@ -56,6 +49,7 @@ export type OptionsResolved = Overwrite<
5649
tsconfig: string | undefined
5750
isolatedDeclarations: false
5851
sourcemap: false
52+
emitDtsOnly: false
5953
}
6054
>
6155

0 commit comments

Comments
 (0)