зеркало из https://github.com/microsoft/TACO.git
fix updateInternalDependencies for dev Dependencies
This commit is contained in:
Родитель
1bf8060df7
Коммит
f1987e6e62
|
@ -25,6 +25,7 @@ interface IPackageJson {
|
|||
version: string;
|
||||
dependencies: { [key: string]: string };
|
||||
optionalDependencies: { [key: string]: string };
|
||||
devDependencies: { [key: string]: string };
|
||||
}
|
||||
|
||||
interface IDynamicDependenicesJson {
|
||||
|
@ -64,6 +65,11 @@ class GulpPackageUtils {
|
|||
json.optionalDependencies[packageKey] = GulpPackageUtils.getDependencyValue(packageKey, srcPath, buildType, destPath);
|
||||
}
|
||||
});
|
||||
Object.keys(json.devDependencies || {}).forEach(function(packageKey: string): void {
|
||||
if (tacoModules.indexOf(packageKey) >= 0) {
|
||||
json.devDependencies[packageKey] = GulpPackageUtils.getDependencyValue(packageKey, srcPath, buildType, destPath);
|
||||
}
|
||||
});
|
||||
return json;
|
||||
}))
|
||||
.pipe(gulp.dest(srcPath)));
|
||||
|
|
Загрузка…
Ссылка в новой задаче