Skip to content

Commit c9fc3c1

Browse files
committed
style: prettier formatting
1 parent cd1ecaa commit c9fc3c1

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

lib/prepare.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,16 @@ module.exports = async (npmrc, {tarballDir, pkgRoot}, {cwd, env, stdout, stderr,
1111
cwd: basePath,
1212
env,
1313
});
14-
versionResult.stdout.pipe(
15-
stdout,
16-
{end: false}
17-
);
18-
versionResult.stderr.pipe(
19-
stderr,
20-
{end: false}
21-
);
14+
versionResult.stdout.pipe(stdout, {end: false});
15+
versionResult.stderr.pipe(stderr, {end: false});
2216

2317
await versionResult;
2418

2519
if (tarballDir) {
2620
logger.log('Creating npm package version %s', version);
2721
const packResult = execa('npm', ['pack', basePath, '--userconfig', npmrc], {cwd, env});
28-
packResult.stdout.pipe(
29-
stdout,
30-
{end: false}
31-
);
32-
packResult.stderr.pipe(
33-
stderr,
34-
{end: false}
35-
);
22+
packResult.stdout.pipe(stdout, {end: false});
23+
packResult.stderr.pipe(stderr, {end: false});
3624

3725
const tarball = (await packResult).stdout.split('\n').pop();
3826
const tarballSource = path.resolve(cwd, tarball);

lib/publish.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@ module.exports = async (npmrc, {npmPublish, pkgRoot}, pkg, context) => {
1919

2020
logger.log('Publishing version %s to npm registry', version);
2121
const result = execa('npm', ['publish', basePath, '--userconfig', npmrc, '--registry', registry], {cwd, env});
22-
result.stdout.pipe(
23-
stdout,
24-
{end: false}
25-
);
26-
result.stderr.pipe(
27-
stderr,
28-
{end: false}
29-
);
22+
result.stdout.pipe(stdout, {end: false});
23+
result.stderr.pipe(stderr, {end: false});
3024
await result;
3125

3226
logger.log(`Published ${pkg.name}@${pkg.version} on ${registry}`);

lib/verify-auth.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@ module.exports = async (npmrc, pkg, context) => {
1919
if (normalizeUrl(registry) === normalizeUrl(DEFAULT_NPM_REGISTRY)) {
2020
try {
2121
const whoamiResult = execa('npm', ['whoami', '--userconfig', npmrc, '--registry', registry], {cwd, env});
22-
whoamiResult.stdout.pipe(
23-
stdout,
24-
{end: false}
25-
);
26-
whoamiResult.stderr.pipe(
27-
stderr,
28-
{end: false}
29-
);
22+
whoamiResult.stdout.pipe(stdout, {end: false});
23+
whoamiResult.stderr.pipe(stderr, {end: false});
3024
await whoamiResult;
3125
} catch (_) {
3226
throw new AggregateError([getError('EINVALIDNPMTOKEN', {registry})]);

0 commit comments

Comments
 (0)