File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export class PlatformService implements IPlatformService {
74
74
75
75
var downloadedPackagePath = this . $npm . install ( packageToInstall , npmOptions ) . wait ( ) ;
76
76
var frameworkDir = path . join ( downloadedPackagePath , constants . PROJECT_FRAMEWORK_FOLDER_NAME ) ;
77
+ frameworkDir = path . resolve ( frameworkDir ) ;
77
78
78
79
try {
79
80
this . addPlatformCore ( platformData , frameworkDir ) . wait ( ) ;
@@ -92,7 +93,7 @@ export class PlatformService implements IPlatformService {
92
93
platformData . platformProjectService . createProject ( platformData . projectRoot , frameworkDir ) . wait ( ) ;
93
94
var installedVersion = this . $fs . readJson ( path . join ( frameworkDir , "../" , "package.json" ) ) . wait ( ) . version ;
94
95
95
- if ( options . frameworkPath && ! options . symlink ) {
96
+ if ( options . frameworkPath && this . $fs . getFsStats ( options . frameworkPath ) . wait ( ) . isFile ( ) && ! options . symlink ) {
96
97
// Need to remove unneeded node_modules folder
97
98
// One level up is the runtime module and one above is the node_modules folder.
98
99
this . $fs . deleteDirectory ( path . join ( frameworkDir , "../../" ) ) . wait ( ) ;
You can’t perform that action at this time.
0 commit comments