Changeset e29cc2e for trip-planner-front/node_modules/esbuild/install.js
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/esbuild/install.js
r59329aa re29cc2e 51 51 "freebsd arm64 LE": "esbuild-freebsd-arm64", 52 52 "freebsd x64 LE": "esbuild-freebsd-64", 53 "openbsd x64 LE": "esbuild-openbsd-64",54 53 "linux arm LE": "esbuild-linux-arm", 55 54 "linux arm64 LE": "esbuild-linux-arm64", … … 58 57 "linux ppc64 LE": "esbuild-linux-ppc64le", 59 58 "linux x64 LE": "esbuild-linux-64", 59 "netbsd x64 LE": "esbuild-netbsd-64", 60 "openbsd x64 LE": "esbuild-openbsd-64", 60 61 "sunos x64 LE": "esbuild-sunos-64" 61 62 }; … … 92 93 command.push("--version"); 93 94 const stdout = child_process.execFileSync(command.shift(), command).toString().trim(); 94 if (stdout !== "0.13. 4") {95 throw new Error(`Expected ${JSON.stringify("0.13. 4")} but got ${JSON.stringify(stdout)}`);95 if (stdout !== "0.13.8") { 96 throw new Error(`Expected ${JSON.stringify("0.13.8")} but got ${JSON.stringify(stdout)}`); 96 97 } 97 98 } … … 144 145 try { 145 146 fs2.writeFileSync(path2.join(installDir, "package.json"), "{}"); 146 child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.13. 4"}`, { cwd: installDir, stdio: "pipe", env });147 child_process.execSync(`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.13.8"}`, { cwd: installDir, stdio: "pipe", env }); 147 148 const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath); 148 149 fs2.renameSync(installedBinPath, binPath); … … 192 193 } 193 194 async function downloadDirectlyFromNPM(pkg, subpath, binPath) { 194 const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.13. 4"}.tgz`;195 const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"0.13.8"}.tgz`; 195 196 console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`); 196 197 try { … … 203 204 } 204 205 async function checkAndPreparePackage() { 205 if ( process.env.ESBUILD_BINARY_PATH) {206 applyManualBinaryPathOverride( process.env.ESBUILD_BINARY_PATH);206 if (ESBUILD_BINARY_PATH) { 207 applyManualBinaryPathOverride(ESBUILD_BINARY_PATH); 207 208 return; 208 209 }
Note:
See TracChangeset
for help on using the changeset viewer.