Comparing version 1.0.0 to 1.0.1
@@ -10,2 +10,4 @@ // Copyright (C) 2015 IBM Corporation and Others. All Rights Reserved. | ||
var isglobal = process.env.npm_config_global === 'true'; | ||
module.exports = function npmInstallNpm(fullIcu, advice) { | ||
@@ -37,7 +39,12 @@ var icupkg = fullIcu.icupkg; | ||
} else { | ||
var datPath = path.join('node_modules','icu4c-data',icudat); | ||
var datPath; | ||
if(isglobal) { | ||
datPath = path.join('..','icu4c-data',icudat); | ||
} else { | ||
datPath = path.join('node_modules','icu4c-data',icudat); | ||
} | ||
if(fs.existsSync(icudat)) { | ||
console.log(' √ ' + icudat + " (existing symlink?)"); | ||
} else if(!fs.existsSync(datPath)) { | ||
console.log(' • ' + ' (no ' + icudat + ')'); | ||
console.log(' • ' + ' (no ' + icudat + ' at ‘' + datPath+'’)'); | ||
} else { | ||
@@ -44,0 +51,0 @@ try { |
{ | ||
"name": "full-icu", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "install 'full-icu' data for your current node", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30335
205
9