assets-manager
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -80,3 +80,5 @@ 'use strict'; | ||
value: function isInstalled() { | ||
return _file3.default.isDirectory(this.path); | ||
return _file3.default.isDirectory(this.path, { | ||
cwd: _configure2.default.get('cwd', process.cwd()) | ||
}); | ||
} | ||
@@ -83,0 +85,0 @@ }, { |
@@ -67,3 +67,3 @@ 'use strict'; | ||
return _finder2.default.listFiles(this.getPackagePath(packageName), '**/*', options); | ||
return _finder2.default.listFiles(this.getRelativePackagePath(packageName), '**/*', options); | ||
} | ||
@@ -89,3 +89,3 @@ }, { | ||
var dir = this.getPackagePath(packageName); | ||
var dir = this.getRelativePackagePath(packageName); | ||
@@ -110,2 +110,7 @@ if (main === true) { | ||
value: function getPackagePath(packageName) { | ||
return _path2.default.join(this.options.dir, packageName); | ||
} | ||
}, { | ||
key: 'getRelativePackagePath', | ||
value: function getRelativePackagePath(packageName) { | ||
return _path2.default.join(this.relative, this.options.dir, packageName); | ||
@@ -112,0 +117,0 @@ } |
@@ -64,5 +64,5 @@ 'use strict'; | ||
value: function getPackageInfo(packageName, key) { | ||
var infoPath = _path2.default.join(this.getPackagePath(packageName), this.options.componentJson); | ||
var infoPath = _path2.default.join(this.getRelativePackagePath(packageName), this.options.componentJson); | ||
if (!_file2.default.exists(infoPath)) { | ||
infoPath = _path2.default.join(this.getPackagePath(packageName), this.options.json); | ||
infoPath = _path2.default.join(this.getRelativePackagePath(packageName), this.options.json); | ||
} | ||
@@ -69,0 +69,0 @@ |
@@ -62,3 +62,3 @@ 'use strict'; | ||
value: function getPackageInfo(packageName, key) { | ||
var packagePath = this.getPackagePath(packageName); | ||
var packagePath = this.getRelativePackagePath(packageName); | ||
@@ -91,3 +91,3 @@ if (!_file2.default.isDirectory(packagePath)) { | ||
value: function getPackageInstallCmd(packageName) { | ||
var packagePath = this.getPackagePath(packageName); | ||
var packagePath = this.getRelativePackagePath(packageName); | ||
return 'check ' + packagePath + ' path'; | ||
@@ -94,0 +94,0 @@ } |
@@ -65,3 +65,3 @@ 'use strict'; | ||
value: function getPackageInfo(packageName, key) { | ||
var infoPath = _path2.default.join(this.getPackagePath(packageName), this.options.json); | ||
var infoPath = _path2.default.join(this.getRelativePackagePath(packageName), this.options.json); | ||
var info = {}; | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "assets-manager", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Copy packages files based on manifest file", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/amazingSurge/assets-manager", |
@@ -146,2 +146,6 @@ # assets-manager [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] | ||
### dest | ||
The destination path. It's relative path to cwd. | ||
Defaults to `assets`. | ||
### flattenPackages | ||
@@ -148,0 +152,0 @@ Whether to remove all package path parts from generated dest paths. |
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
70637
1513
385