@mcp-use/cli 2.12.1 → 2.12.2-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5395,16 +5395,25 @@ program.command("dev").description("Run development server with auto-reload and
5395
5395
  }
5396
5396
  const watcher = chokidar.watch(".", {
5397
5397
  cwd: projectPath,
5398
- ignored: [
5399
- /(^|[/\\])\../,
5400
- // dotfiles
5401
- "**/node_modules/**",
5402
- "**/dist/**",
5403
- "**/resources/**",
5404
- // widgets are watched separately by vite
5405
- "**/*.d.ts"
5406
- // type definitions
5407
- ],
5398
+ ignored: (path7, stats) => {
5399
+ const normalizedPath = path7.replace(/\\/g, "/");
5400
+ if (/(^|\/)\.[^/]/.test(normalizedPath)) {
5401
+ return true;
5402
+ }
5403
+ if (normalizedPath.includes("/node_modules/") || normalizedPath.endsWith("/node_modules")) {
5404
+ return true;
5405
+ }
5406
+ if (normalizedPath.includes("/dist/") || normalizedPath.endsWith("/dist")) {
5407
+ return true;
5408
+ }
5409
+ if (normalizedPath.includes("/resources/") || normalizedPath.endsWith("/resources")) {
5410
+ return true;
5411
+ }
5412
+ if (stats?.isFile() && normalizedPath.endsWith(".d.ts")) {
5413
+ return true;
5414
+ }
5415
+ return false;
5416
+ },
5408
5417
  persistent: true,
5409
5418
  ignoreInitial: true,
5410
5419
  depth: 3