Skip to content

Commit 6743c57

Browse files
Revert "fix(scripts): populate failing NPM publish command"
This reverts commit e5a9bd1.
1 parent e5a9bd1 commit 6743c57

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

scripts/release-tasks.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Listr, { ListrTask } from 'listr';
44
import { buildAll } from './build';
55
import { BuildOptions } from './utils/options';
66
import { isPrereleaseVersion, isValidVersionInput, SEMVER_INCREMENTS, updateChangeLog } from './utils/release-utils';
7-
import { stderr } from 'node:process';
87

98
/**
109
* We have to wrap `execa` in a promise to ensure it works with `Listr`. `Listr` uses rxjs under the hood which
@@ -166,12 +165,7 @@ export async function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<st
166165
if (isDryRun) {
167166
return console.log(`[dry-run] ${cmd} ${cmdArgs.join(' ')}`);
168167
}
169-
return execa(cmd, cmdArgs, { cwd: rootDir }).then(({ stdout, stderr }) => {
170-
if (stderr) {
171-
throw new Error(stderr);
172-
}
173-
console.log(stdout);
174-
});
168+
return execa(cmd, cmdArgs, { cwd: rootDir });
175169
},
176170
},
177171
{

0 commit comments

Comments
 (0)