nativescript-dev-android-snapshot
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -29,3 +29,10 @@ var path = require("path"); | ||
function deleteAngularModules(projectData, platformAppDirectory) { | ||
var angularDependencies = Object.keys(JSON.parse(fs.readFileSync(path.join(projectData.projectDir, "node_modules", "nativescript-angular/package.json"), "utf8"))["dependencies"]); | ||
var nativeScriptAngularPackageJson = JSON.parse(fs.readFileSync(path.join(projectData.projectDir, "node_modules", "nativescript-angular/package.json"), "utf8")); | ||
var dependencies = nativeScriptAngularPackageJson["dependencies"]; | ||
if (nativeScriptAngularPackageJson["peerDependencies"]) { | ||
for (var peerDep in nativeScriptAngularPackageJson["peerDependencies"]) { | ||
dependencies[peerDep] = nativeScriptAngularPackageJson["peerDependencies"][peerDep]; | ||
} | ||
} | ||
var angularDependencies = Object.keys(dependencies); | ||
for (var i = 0; i < angularDependencies.length; i++) { | ||
@@ -32,0 +39,0 @@ if (/^@angular\//.test(angularDependencies[i])) { |
{ | ||
"name": "nativescript-dev-android-snapshot", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
20839
303