Commit e24738e4 authored by super-lin0's avatar super-lin0

删除打包后的 nemean-cli依赖

parent d7aa7ff6
{
"name": "nemean-cli",
"version": "0.1.4",
"version": "0.1.5",
"main": "src/index.js",
"bin": "bin/npmrc.js",
"license": "ISC",
......
......@@ -90,9 +90,6 @@ class Factory {
} else {
curPackage.devDependencies[item] = temPackage.devDependencies[item];
}
if (curPackage.dependencies && curPackage.dependencies["nemean-cli"]) {
delete curPackage.dependencies["nemean-cli"];
}
});
// dependencies
......@@ -112,12 +109,13 @@ class Factory {
} else {
curPackage.dependencies[item] = temPackage.dependencies[item];
}
if (curPackage.dependencies && curPackage.dependencies["nemean-cli"]) {
delete curPackage.dependencies["nemean-cli"];
}
});
if (curPackage.dependencies && curPackage.dependencies["nemean-cli"]) {
Factory.log("删除nemean-cli包");
delete curPackage.dependencies["nemean-cli"];
}
// scripts
// 暂时不考虑覆盖问题
curPackage.scripts = temPackage.scripts;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment