From 3d75eb66d7559c5cf2f761f061147382af2f72d0 Mon Sep 17 00:00:00 2001 From: Tomas Matus Date: Thu, 20 Jul 2023 12:10:37 +0200 Subject: [PATCH] build.js: Fix LINT env variable check --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index 6b62d01..2c6eb5d 100755 --- a/build.js +++ b/build.js @@ -20,7 +20,7 @@ const esbuild = (await import(useWasm ? 'esbuild-wasm' : 'esbuild')).default; const production = process.env.NODE_ENV === 'production'; const watchMode = process.env.ESBUILD_WATCH === "true"; // linters dominate the build time, so disable them for production builds by default, but enable in watch mode -const lint = process.env.LINT ? (process.env.LINT !== 0) : (watchMode || !production); +const lint = process.env.LINT ? (process.env.LINT !== '0') : (watchMode || !production); // List of directories to use when using import statements const nodePaths = ['pkg/lib']; const outdir = 'dist';