Skip to content

Commit 6edb25b

Browse files
committed
refactor(config): use default in load
1 parent 810f467 commit 6edb25b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
## Config
5252

53-
#### Use local config (nvton.ts)
53+
#### Use local config (nvton.config.ts)
5454

5555
```ts
5656
export default {

packages/nvton/src/nvton.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ export class NVTON {
6868
name: 'nvton',
6969
rcFile: false,
7070
envName: false,
71+
defaultConfig: DEFAULT_CONFIG
7172
});
7273

73-
this.options = defu(defu(options, config), DEFAULT_CONFIG);
74+
this.options = defu(options, config);
7475

7576
res(this.options);
7677
});

0 commit comments

Comments
 (0)