Skip to content

Commit 54884db

Browse files
committed
Exclude .tempest directory from Vite's file watcher
1 parent 746ade2 commit 54884db

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/vite-plugin-tempest/src/plugin.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export default function tempest(): Plugin {
6262
/^https?:\/\/.*\.test(:\d+)?$/,
6363
].filter(Boolean),
6464
},
65+
watch: userConfig.server?.watch?.ignored ?? [
66+
'**/.tempest/**'
67+
],
6568
...(serverConfig
6669
? {
6770
host: userConfig.server?.host ?? serverConfig.host,
@@ -122,22 +125,19 @@ export default function tempest(): Plugin {
122125

123126
setTimeout(() => {
124127
server.config.logger.info(
125-
`\n ${colors.magenta(`${colors.bold('TEMPEST')} ${tempestVersion()}`)} ${colors.dim('plugin')} ${
126-
colors.bold(`v${pluginVersion()}`)
128+
`\n ${colors.magenta(`${colors.bold('TEMPEST')} ${tempestVersion()}`)} ${colors.dim('plugin')} ${colors.bold(`v${pluginVersion()}`)
127129
}`,
128130
)
129131
server.config.logger.info('')
130132

131133
if (appUrl) {
132134
server.config.logger.info(
133-
` ${colors.green('➜')} ${colors.bold('URL')}: ${
134-
colors.cyan(appUrl.replace(/:(\d+)/, (_, port) => `:${colors.bold(port)}`))
135+
` ${colors.green('➜')} ${colors.bold('URL')}: ${colors.cyan(appUrl.replace(/:(\d+)/, (_, port) => `:${colors.bold(port)}`))
135136
}`,
136137
)
137138
} else {
138139
server.config.logger.info(
139-
` ${colors.magenta('➜')} ${
140-
colors.yellow(`No ${colors.bold('BASE_URI')} specified in ${colors.bold('.env')}`)
140+
` ${colors.magenta('➜')} ${colors.yellow(`No ${colors.bold('BASE_URI')} specified in ${colors.bold('.env')}`)
141141
}.`,
142142
)
143143
}

0 commit comments

Comments
 (0)