diff --git a/src/NodeBuilder.js b/src/NodeBuilder.js index dbafc55..832774d 100644 --- a/src/NodeBuilder.js +++ b/src/NodeBuilder.js @@ -97,7 +97,7 @@ class NodeJsBuilder { .on('finish', resolve); }) ) - .then(() => this.version.split('.')[0] >= 15 ? this.applyPatches() : Promise.resolve()) + .then(() => this.version.split('.')[0] >= 15 ? this.applyPatches() : Promise.resolve()); } downloadCachedBuild(platform, arch, placeHolderSizeMB) { @@ -218,7 +218,7 @@ class NodeJsBuilder { join(this.patchDir, 'vcbuild.bat.patch')); isLinux && await patchFile( - this.nodePath('deps','cares','config','linux','ares_config.h'), + this.nodePath('deps', 'cares', 'config', 'linux', 'ares_config.h'), join(this.patchDir, 'no_rand_on_glibc.patch')); } @@ -265,9 +265,9 @@ class NodeJsBuilder { buildFromSource(uploadBuild, cache, container, arch, ptrCompression) { const makeArgs = isWindows ? ['x64', 'no-cctest'] : [`-j${os.cpus().length}`]; const configArgs = []; - if(ptrCompression) { - if(isWindows) makeArgs.push('v8_ptr_compress'); - else configArgs.push('--experimental-enable-pointer-compression'); + if (ptrCompression) { + if (isWindows) makeArgs.push('v8_ptr_compress'); + else configArgs.push('--experimental-enable-pointer-compression'); } return this.printDiskUsage() .then(() => this.downloadExpandNodeSource()) @@ -306,7 +306,7 @@ class NodeJsBuilder { if (this.placeHolderSizeMB % 2 !== 0) { this.placeHolderSizeMB += 1; } - if (size) this.placeHolderSizeMB = parseInt( size.toUpperCase().replaceAll('MB', '') ) + if (size) this.placeHolderSizeMB = parseInt(size.toUpperCase().replaceAll('MB', '')); return this.downloadCachedBuild(platform, arch) .then(cachedFile => {