Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
style: prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Dec 5, 2019
1 parent 4d4f109 commit 52f7016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ module.exports = async (pluginConfig, {cwd, env, stdout, stderr, nextRelease: {v
logger.log(`Write version ${version} to package.json`);

const versionResult = execa('npm', ['version', version, '--no-git-tag-version'], {cwd, env});
versionResult.stdout.pipe(
stdout,
{end: false}
);
versionResult.stderr.pipe(
stderr,
{end: false}
);
versionResult.stdout.pipe(stdout, {end: false});
versionResult.stderr.pipe(stderr, {end: false});

await versionResult;
};
10 changes: 2 additions & 8 deletions lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ module.exports = async (pluginConfig, {name}, context) => {
cwd,
env,
});
result.stdout.pipe(
stdout,
{end: false}
);
result.stderr.pipe(
stderr,
{end: false}
);
result.stdout.pipe(stdout, {end: false});
result.stderr.pipe(stderr, {end: false});
await result;

logger.log(`Published ${name}@${version}`);
Expand Down

0 comments on commit 52f7016

Please sign in to comment.