fix: replaceAllでコケるのを修正

This commit is contained in:
yukineko 2023-11-27 19:43:13 +09:00
parent e87b1a7155
commit 43b7f699ad
No known key found for this signature in database
GPG key ID: E5BACB72109B7B90

View file

@ -94,7 +94,7 @@ if (process.argv.includes("--watch")) {
const watcher = fs.watch('./', { recursive: true });
for await (const event of watcher) {
const filename = event.filename.replaceAll('\\', '/');
const filename = event.filename?.replaceAll('\\', '/');
if (/^packages\/[a-z]+\/src/.test(filename)) {
await build();