@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.cjs CHANGED
@@ -5413,16 +5413,25 @@ program.command("dev").description("Run development server with auto-reload and
5413
5413
  }
5414
5414
  const watcher = chokidar.watch(".", {
5415
5415
  cwd: projectPath,
5416
- ignored: [
5417
- /(^|[/\\])\../,
5418
- // dotfiles
5419
- "**/node_modules/**",
5420
- "**/dist/**",
5421
- "**/resources/**",
5422
- // widgets are watched separately by vite
5423
- "**/*.d.ts"
5424
- // type definitions
5425
- ],
5416
+ ignored: (path6, stats) => {
5417
+ const normalizedPath = path6.replace(/\\/g, "/");
5418
+ if (/(^|\/)\.[^/]/.test(normalizedPath)) {
5419
+ return true;
5420
+ }
5421
+ if (normalizedPath.includes("/node_modules/") || normalizedPath.endsWith("/node_modules")) {
5422
+ return true;
5423
+ }
5424
+ if (normalizedPath.includes("/dist/") || normalizedPath.endsWith("/dist")) {
5425
+ return true;
5426
+ }
5427
+ if (normalizedPath.includes("/resources/") || normalizedPath.endsWith("/resources")) {
5428
+ return true;
5429
+ }
5430
+ if (stats?.isFile() && normalizedPath.endsWith(".d.ts")) {
5431
+ return true;
5432
+ }
5433
+ return false;
5434
+ },
5426
5435
  persistent: true,
5427
5436
  ignoreInitial: true,
5428
5437
  depth: 3