Skip to content

Commit 301706c

Browse files
committed
fix: fix npm tests runner
1 parent 5c4bffe commit 301706c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ export default class Package {
613613
}
614614

615615
async runScript ( script, args ) {
616-
return this.npm.runScript( script, { args } );
616+
return this.npm.api.runScript( script, { args } );
617617
}
618618

619619
async getOutdatedDependencies ( { all } = {} ) {
@@ -934,7 +934,7 @@ export default class Package {
934934
res = result( [ 200, "No tests to run" ] );
935935
}
936936
else {
937-
res = await this.npm.runScript( "test", { log } );
937+
res = await this.npm.api.runScript( "test", { log } );
938938
}
939939

940940
if ( log ) {

0 commit comments

Comments
 (0)