assets-manager
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -237,5 +237,9 @@ 'use strict'; | ||
return new Promise(function (resolve, reject) { | ||
if (options.verbose) { | ||
log(_chalk2.default.blue('Copy Package ') + name + ':'); | ||
} | ||
if (!_this2.hasPackage(name)) { | ||
if (options.ignoreError) { | ||
log(_chalk2.default.red('Package ' + name + ' is not exists.')); | ||
log(_chalk2.default.red('Error: Package ' + name + ' is not exists.')); | ||
return resolve(); | ||
@@ -250,3 +254,3 @@ } | ||
if (options.ignoreError) { | ||
log(_chalk2.default.red('Package ' + pkg.options.registry + ':' + name + ' is not installed.') + (' Please ' + pkg.getInstallCmd() + '.')); | ||
log(_chalk2.default.red('Error: Package ' + pkg.options.registry + ':' + name + ' is not installed.') + (' Please ' + pkg.getInstallCmd() + '.')); | ||
return resolve(); | ||
@@ -257,6 +261,2 @@ } | ||
if (options.verbose) { | ||
log(_chalk2.default.blue('Copying Package ') + name + ':'); | ||
} | ||
var files = void 0; | ||
@@ -306,5 +306,9 @@ try { | ||
return new Promise(function (resolve, reject) { | ||
if (options.verbose) { | ||
log(_chalk2.default.magenta('Clean Package ') + name + ':'); | ||
} | ||
if (!_this3.hasPackage(name)) { | ||
if (options.ignoreError) { | ||
log(_chalk2.default.red('Package ' + name + ' is not exists.')); | ||
log(_chalk2.default.red('Error: Package ' + name + ' is not exists.')); | ||
return resolve(); | ||
@@ -319,3 +323,3 @@ } | ||
if (options.ignoreError) { | ||
log(_chalk2.default.red('Package ' + pkg.options.registry + ':' + name + ' is not installed.') + (' Please ' + pkg.getInstallCmd() + '.')); | ||
log(_chalk2.default.red('Error: Package ' + pkg.options.registry + ':' + name + ' is not installed.') + (' Please ' + pkg.getInstallCmd() + '.')); | ||
return resolve(); | ||
@@ -326,6 +330,2 @@ } | ||
if (options.verbose) { | ||
log(_chalk2.default.magenta('Clean Package ') + name + ":"); | ||
} | ||
var files = void 0; | ||
@@ -332,0 +332,0 @@ try { |
{ | ||
"name": "assets-manager", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Copy packages files based on manifest file", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/amazingSurge/assets-manager", |
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
69513