Skip to content
Snippets Groups Projects
Commit 9d6ec38a authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(bundler): look in stdout and stderr for resolve matches

parent 7b5485ed
No related branches found
No related tags found
No related merge requests found
......@@ -161,13 +161,14 @@ export async function updateArtifacts(
global.repoCache.bundlerArtifactsError = BUNDLER_INVALID_CREDENTIALS;
throw new Error(BUNDLER_INVALID_CREDENTIALS);
}
const output = err.stdout + err.stderr;
const resolveMatchRe = new RegExp('\\s+(.*) was resolved to', 'g');
if (err.stderr && err.stderr.match(resolveMatchRe)) {
if (output.match(resolveMatchRe)) {
logger.debug({ err }, 'Bundler has a resolve error');
const resolveMatches = [];
let resolveMatch;
do {
resolveMatch = resolveMatchRe.exec(err.stderr);
resolveMatch = resolveMatchRe.exec(output);
if (resolveMatch) {
resolveMatches.push(resolveMatch[1].split(' ').shift());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment