Skip to content

Commit a4abcdc

Browse files
committed
fix: fix npm api
1 parent 807460b commit a4abcdc

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

lib/package/npm.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ export default class Npm {
3232
var res;
3333

3434
try {
35+
process.stdout.write( `Publishing npm package "${ this.pkg.name }" ...` );
36+
3537
res = await this.#publish( { commitRef, accessStatus } );
3638

37-
console.log( `Publishing npm package "${ this.pkg.name }" ...`, res + "" );
39+
console.log( res + "" );
3840

3941
return res;
4042
}
@@ -69,9 +71,11 @@ export default class Npm {
6971

7072
return repeatAction(
7173
async () => {
74+
process.stdout.write( `Setting npm tags for "${ this.pkg.name }" ...` );
75+
7276
const res = await this.#setTags();
7377

74-
console.log( `Setting npm tags for "${ this.pkg.name }" ...`, res + "" );
78+
console.log( res + "" );
7579

7680
if ( !res.ok ) throw res;
7781

@@ -90,9 +94,11 @@ export default class Npm {
9094
if ( accessStatus && this.pkg.name.startsWith( "@" ) ) {
9195
const res = await repeatAction(
9296
async () => {
97+
process.stdout.write( `Setting npm access status for "${ this.pkg.name }"...` );
98+
9399
const res = await this.api.setAccessStatus( this.pkg.name, accessStatus );
94100

95-
console.log( `Setting npm access status for "${ this.pkg.name }"...`, res + "" );
101+
console.log( res + "" );
96102

97103
if ( !res.ok ) throw res;
98104

0 commit comments

Comments
 (0)