From 351fc8261d6b877644291e2236c147ad55f58e30 Mon Sep 17 00:00:00 2001 From: Greg Signal Date: Sat, 13 Jul 2024 22:43:50 +0200 Subject: [PATCH] fix(dev): prevent fs-fixture causing a re-run loop Some part of the `tsx watch` mode causes it to observe file changes that are caused by the fs-fixture tool in the test suite, leading to the test suite running repeatedly. Ignoring the system's temporary directory seems to at least put a bandaid on the problem. This is unlikely to be compatible across every platform, so, suggestions on improvements welcome. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9410c18..c6b9304 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "scripts": { "build": "pkgroll --target=node16.19.0", "test": "tsx tests", - "dev": "tsx watch --conditions=development tests", + "dev": "tsx watch --ignore /tmp --conditions=development tests", "lint": "lintroll --cache .", "type-check": "tsc --noEmit", "prepack": "pnpm build && clean-pkg-json"