Skip to content

Commit a8d9fb1

Browse files
committed
fix: do not restart server on changes to declaration files
1 parent 39864d2 commit a8d9fb1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kopflos": patch
3+
---
4+
5+
Ignore TypeScript declaration files from file watching

packages/cli/lib/command/serve.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ async function run({
6565
}
6666

6767
chokidar.watch(config.watch, {
68+
ignored: /\.d\.ts$/i,
6869
ignoreInitial: true,
6970
})
7071
.on('change', restartServer)

0 commit comments

Comments
 (0)