File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ import * as npm from "npm";
6
6
7
7
export class NodePackageManager implements INodePackageManager {
8
8
constructor ( private $childProcess : IChildProcess ,
9
- private $logger : ILogger ,
10
- private $errors : IErrors ,
11
- private $fs : IFileSystem ,
12
- private $lockfile : ILockFile ,
13
9
private $options : IOptions ) { }
14
10
15
11
public getCache ( ) : string {
@@ -18,7 +14,7 @@ export class NodePackageManager implements INodePackageManager {
18
14
19
15
public load ( config ?: any ) : IFuture < void > {
20
16
let future = new Future < void > ( ) ;
21
- npm . load ( config , ( err ) => {
17
+ npm . load ( config , ( err : Error ) => {
22
18
if ( err ) {
23
19
future . throw ( err ) ;
24
20
} else {
Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ export class PlatformService implements IPlatformService {
75
75
npmOptions [ "version" ] = version ;
76
76
}
77
77
78
- let downloadedPackagePath = this . $npmInstallationManager . install ( packageToInstall , npmOptions ) . wait ( ) ;
79
- let frameworkDir = path . join ( downloadedPackagePath , constants . PROJECT_FRAMEWORK_FOLDER_NAME ) ;
80
- frameworkDir = path . resolve ( frameworkDir ) ;
81
-
82
78
try {
79
+ let downloadedPackagePath = this . $npmInstallationManager . install ( packageToInstall , npmOptions ) . wait ( ) ;
80
+ let frameworkDir = path . join ( downloadedPackagePath , constants . PROJECT_FRAMEWORK_FOLDER_NAME ) ;
81
+ frameworkDir = path . resolve ( frameworkDir ) ;
82
+
83
83
this . addPlatformCore ( platformData , frameworkDir ) . wait ( ) ;
84
84
} catch ( err ) {
85
85
this . $fs . deleteDirectory ( platformPath ) . wait ( ) ;
You can’t perform that action at this time.
0 commit comments