Skip to content

Commit

Permalink
build.js: Fix LINT env variable check
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus authored and martinpitt committed Jul 20, 2023
1 parent 36fc246 commit 3d75eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 3d75eb6

Please sign in to comment.