Skip to content

Commit da771c3

Browse files
committed
always save to dependencies on platform add
1 parent 92de5c7 commit da771c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/platform-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ export class PlatformService implements IPlatformService {
7979

8080
let packageToInstall = "";
8181
let npmOptions: IStringDictionary = {
82-
pathToSave: path.join(this.$projectData.platformsDir, platform)
82+
pathToSave: path.join(this.$projectData.platformsDir, platform),
83+
dependencyType: "save"
8384
};
8485

8586
if (!this.$options.frameworkPath) {
8687
packageToInstall = platformData.frameworkPackageName;
8788
npmOptions["version"] = version;
88-
npmOptions["dependencyType"] = "save";
8989
}
9090

9191
let spinner = new clui.Spinner("Installing " + packageToInstall);

0 commit comments

Comments
 (0)