add blank line after built-in module imports & drop 4913 temp file checking

This commit is contained in:
Subho 2023-04-12 13:10:01 +05:30
parent 5445ba6b32
commit 441b1c6b0d

View file

@ -3,6 +3,7 @@
import fs from 'node:fs'; import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import os from 'node:os'; import os from 'node:os';
import copy from 'esbuild-plugin-copy'; import copy from 'esbuild-plugin-copy';
import { cleanPlugin } from './pkg/lib/esbuild-cleanup-plugin.js'; import { cleanPlugin } from './pkg/lib/esbuild-cleanup-plugin.js';
@ -52,9 +53,9 @@ const cwd = process.cwd();
function watch_dirs(dir, on_change) { function watch_dirs(dir, on_change) {
const callback = (ev, dir, fname) => { const callback = (ev, dir, fname) => {
// only listen for "change" events, as renames are noisy // 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); const isHidden = /^\./.test(fname);
if (ev !== "change" || isHidden || fname === "4913") { if (ev !== "change" || isHidden) {
return; return;
} }
on_change(path.join(dir, fname)); on_change(path.join(dir, fname));