fix: replaceAllでコケるのを修正
This commit is contained in:
parent
e87b1a7155
commit
43b7f699ad
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue