Skip to content

Commit 83bca6e

Browse files
committed
minor changes to the publish scripts
1 parent b5b0f39 commit 83bca6e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/publisher/src/build.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ export default function buildPackages(path: string, packages: string[]) {
44
return Promise.all(
55
packages.map(
66
pkg =>
7-
new Promise<void>((resolve, reject) => {
7+
new Promise<void>((resolve, reject) =>
88
exec(
99
`yarn build`,
1010
{ cwd: `${path}/${pkg}` },
1111
(error, stdout, stderr) => {
1212
if (error) {
13-
console.error(`exec error: ${error}`);
14-
reject('Unable to build codeshift packages');
13+
console.error(`exec error for package ${pkg}\n${error}`);
14+
reject(`Unable to build codeshift package: ${pkg}\n${error}`);
1515
return;
1616
}
1717

@@ -23,8 +23,8 @@ export default function buildPackages(path: string, packages: string[]) {
2323

2424
resolve();
2525
},
26-
);
27-
}),
26+
),
27+
),
2828
),
2929
);
3030
}

scripts/publish-all-dry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ async function main(sourcePath: string, targetPath: string) {
2222
}
2323

2424
main(process.argv[2], process.argv[3]).catch(error => {
25-
console.error('Publishing error:', error.message);
25+
console.error('Publishing error:', error);
2626
process.exit(1);
2727
});

0 commit comments

Comments
 (0)