You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library can configured using a `dts.config.ts`_(or `dts.config.js`)_ file and it will be automatically loaded when running the `./dtsx`_(or `bunx dtsx`)_ command.
59
+
Library usage can also be configured using a `dts.config.ts`_(or `dts.config.js`)_ file which is automatically loaded when running the `./dtsx`_(or `bunx dtsx`)_ command. It is also loaded when the `generate` function is called, unless custom options are provided.
60
60
61
61
```ts
62
62
// dts.config.ts (or dts.config.js)
63
+
63
64
exportdefault {
64
65
cwd: './',
65
66
root: './src',
@@ -70,20 +71,20 @@ export default {
70
71
}
71
72
```
72
73
73
-
_Then run:_
74
+
_You may also run:_
74
75
75
76
```bash
76
77
./dtsx generate
77
78
78
-
#or, you may use
79
+
#if the package is installed, you can also run:
79
80
# bunx dtsx generate
80
81
```
81
82
82
-
###CLI
83
+
## CLI
83
84
84
85
The `dtsx` CLI provides a simple way to generate TypeScript declaration files from your project. Here's how to use it:
85
86
86
-
####Usage
87
+
### Usage
87
88
88
89
Generate declaration files using the default options:
0 commit comments