nativescript-dev-android-snapshot
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -50,2 +50,4 @@ var path = require("path"); | ||
console.warn("*** nativescript-dev-android-snapshot will be deprecated in the near future in favour of nativescript-dev-webpack plugin. To learn more on how to setup Webpack bundling with V8 heap snapshot generation using nativescript-dev-webpack, read the following article: https://docs.nativescript.org/tooling/bundling-with-webpack ***"); | ||
var currentRuntimeVersion = common.getAndroidRuntimeVersion(projectData, androidPlatformData); | ||
@@ -52,0 +54,0 @@ if (!currentRuntimeVersion) { |
@@ -99,19 +99,19 @@ var path = require("path"); | ||
var proc = shelljs.exec("npm ls --json " + packageInfo.name + "@" + coreVersion, { silent: true }); | ||
var localPackageInfo = JSON.parse(proc.stdout.toString("utf8")); | ||
if (localPackageInfo.dependencies) { | ||
return true; | ||
} | ||
var packageJsonPath = "./node_modules/" + packageInfo.name + "/package.json"; | ||
if (fs.existsSync(packageJsonPath)) { | ||
var packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, "utf8")); | ||
if (packageJsonContent.version == coreVersion) { | ||
return true; | ||
} | ||
var publishedSnapshotPackageVersions = getSnapshotPackageTags(packageInfo.name); | ||
var latestTagVersion = publishedSnapshotPackageVersions[packageInfo.version]; | ||
var publishedSnapshotPackageVersions = getSnapshotPackageTags(packageInfo.name); | ||
var latestTagVersion = publishedSnapshotPackageVersions[packageInfo.version]; | ||
if (!latestTagVersion) { | ||
return false; | ||
} | ||
if (!latestTagVersion) { | ||
return false; | ||
} | ||
proc = shelljs.exec("npm ls --json " + packageInfo.name + "@" + latestTagVersion, { silent: true }); | ||
localPackageInfo = JSON.parse(proc.stdout.toString("utf8")); | ||
if (localPackageInfo.dependencies) { | ||
return true; | ||
if (packageJsonContent.version == latestTagVersion) { | ||
return true; | ||
} | ||
} | ||
@@ -118,0 +118,0 @@ |
{ | ||
"name": "nativescript-dev-android-snapshot", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
require('nativescript-hook')(__dirname).postinstall(); | ||
console.warn("*** nativescript-dev-android-snapshot will be deprecated in the near future in favour of nativescript-dev-webpack plugin. To learn more on how to setup Webpack bundling with V8 heap snapshot generation using nativescript-dev-webpack, read the following article: https://docs.nativescript.org/tooling/bundling-with-webpack ***"); |
21485
307