build.js: Fix LINT env variable check
This commit is contained in:
parent
36fc246711
commit
3d75eb66d7
1 changed files with 1 additions and 1 deletions
2
build.js
2
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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue