From 441b1c6b0dfb9c1c56eebf224b8696d664ede212 Mon Sep 17 00:00:00 2001 From: Subho Date: Wed, 12 Apr 2023 13:10:01 +0530 Subject: [PATCH] add blank line after built-in module imports & drop 4913 temp file checking --- build.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 8b6a2ee..6b62d01 100755 --- a/build.js +++ b/build.js @@ -3,6 +3,7 @@ import fs from 'node:fs'; import path from 'node:path'; import os from 'node:os'; + import copy from 'esbuild-plugin-copy'; import { cleanPlugin } from './pkg/lib/esbuild-cleanup-plugin.js'; @@ -52,9 +53,9 @@ const cwd = process.cwd(); function watch_dirs(dir, on_change) { const callback = (ev, dir, fname) => { // only listen for "change" events, as renames are noisy - // ignore hidden files and the "4913" temporary file create by vim + // ignore hidden files const isHidden = /^\./.test(fname); - if (ev !== "change" || isHidden || fname === "4913") { + if (ev !== "change" || isHidden) { return; } on_change(path.join(dir, fname));