build.js: Fix LINT env variable check

This commit is contained in:
Tomas Matus 2023-07-20 12:10:37 +02:00 committed by Martin Pitt
parent 36fc246711
commit 3d75eb66d7

View file

@ -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';