admin: small updates to build scripts.

This commit is contained in:
Richard Moore 2021-02-08 15:27:05 -05:00
parent 5b41675f33
commit 3a76d69a16
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
11 changed files with 20 additions and 8 deletions

@ -79,7 +79,12 @@ const utils_1 = require("../utils");
}
output.forEach((line) => { console.log(line); });
});
})().catch((error) => {
})().then((result) => {
// Something above causes this script to hang, so let's exit manually
setTimeout(() => {
process.exit(0);
}, 1000);
}, (error) => {
console.log(`Error running ${process.argv[0]}: ${error.message}`);
process.exit(1);
});

@ -97,7 +97,6 @@ function alias(name) {
// + transform the map JSON to reference "geturl.js"
// We need to swap in the replacement and update its data
const replace = replacements[filename.replace(/\.d.ts\.map$|\.js\.map$/i, ".js")];
console.log(filename, replace);
// Skip!
if (replace === "") {
return;

@ -19,19 +19,19 @@ const utils_1 = require("../utils");
accum[pkg.name] = pkg.version;
return accum;
}, ({}));
console.log(versions);
path_1.dirnames.forEach((dirname) => {
// Skip ethers; it's versions are locked during update-versions
if (dirname === "ethers") {
return;
}
console.log(dirname);
const path = path_1.resolve("packages", dirname, "package.json");
const json = utils_1.loadJson(path);
for (const name in (json.dependencies || {})) {
const version = json.dependencies[name];
const target = (versions[name] ? ("^" + versions[name]) : version);
if (version !== target) {
console.log(name, version, "=>", target);
console.log(" ", name, version, "=>", target);
}
json.dependencies[name] = target;
}

@ -14,6 +14,7 @@ function getMime(filename) {
case 'eot': return 'application/vnd.ms-fontobject';
case 'gif': return 'image/gif';
case 'html': return 'text/html';
case 'ico': return 'image/x-icon';
case 'js': return 'application/javascript';
case 'jpg': return 'image/jpeg';
case 'jpeg': return 'image/jpeg';

@ -74,7 +74,7 @@ apikey asc endblock startblock
alchemyapi Cloudflare Etherscan INFURA IPFS MetaMask Nodesmith
Trezor ledgerhq axic bitcoinjs browserify easyseed ethereumjs
goerli homestead kotti kovan mainnet morden mordor rinkeby
ropsten testnet
ropsten testnet lb
// Demo words
args foo eth foo foobar ll localhost passwd ricmoo tx xxx yna

@ -65,6 +65,7 @@ function getMime(filename) {
case 'eot': return 'application/vnd.ms-fontobject';
case 'gif': return 'image/gif';
case 'html': return 'text/html';
case 'ico': return 'image/x-icon';
case 'js': return 'application/javascript';
case 'jpg': return 'image/jpeg';
case 'jpeg': return 'image/jpeg';

@ -75,7 +75,12 @@ import { loadJson, repeat, saveJson } from "../utils";
output.forEach((line) => { console.log(line); });
})().catch((error) => {
})().then((result) => {
// Something above causes this script to hang, so let's exit manually
setTimeout(() => {
process.exit(0);
}, 1000);
}, (error) => {
console.log(`Error running ${ process.argv[0] }: ${ error.message }`);
process.exit(1);
});

@ -88,7 +88,6 @@ async function alias(name: string): Promise<void> {
// + transform the map JSON to reference "geturl.js"
// We need to swap in the replacement and update its data
const replace = replacements[filename.replace(/\.d.ts\.map$|\.js\.map$/i, ".js")];
console.log(filename, replace);
// Skip!
if (replace === "") { return; }

@ -11,6 +11,7 @@ export function getMime(filename: string): string {
case 'eot': return 'application/vnd.ms-fontobject';
case 'gif': return 'image/gif';
case 'html': return 'text/html';
case 'ico': return 'image/x-icon';
case 'js': return 'application/javascript';
case 'jpg': return 'image/jpeg';
case 'jpeg': return 'image/jpeg';

@ -65,7 +65,7 @@ apikey asc endblock startblock
alchemyapi Cloudflare Etherscan INFURA IPFS MetaMask Nodesmith
Trezor ledgerhq axic bitcoinjs browserify easyseed ethereumjs
goerli homestead kotti kovan mainnet morden mordor rinkeby
ropsten testnet
ropsten testnet lb
// Demo words
args foo eth foo foobar ll localhost passwd ricmoo tx xxx yna

@ -56,6 +56,7 @@ function getMime(filename: string): string {
case 'eot': return 'application/vnd.ms-fontobject';
case 'gif': return 'image/gif';
case 'html': return 'text/html';
case 'ico': return 'image/x-icon';
case 'js': return 'application/javascript';
case 'jpg': return 'image/jpeg';
case 'jpeg': return 'image/jpeg';