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

删除打包后的 nemean-cli依赖

parent d7aa7ff6
{ {
"name": "nemean-cli", "name": "nemean-cli",
"version": "0.1.4", "version": "0.1.5",
"main": "src/index.js", "main": "src/index.js",
"bin": "bin/npmrc.js", "bin": "bin/npmrc.js",
"license": "ISC", "license": "ISC",
......
...@@ -90,9 +90,6 @@ class Factory { ...@@ -90,9 +90,6 @@ class Factory {
} else { } else {
curPackage.devDependencies[item] = temPackage.devDependencies[item]; curPackage.devDependencies[item] = temPackage.devDependencies[item];
} }
if (curPackage.dependencies && curPackage.dependencies["nemean-cli"]) {
delete curPackage.dependencies["nemean-cli"];
}
}); });
// dependencies // dependencies
...@@ -112,11 +109,12 @@ class Factory { ...@@ -112,11 +109,12 @@ class Factory {
} else { } else {
curPackage.dependencies[item] = temPackage.dependencies[item]; curPackage.dependencies[item] = temPackage.dependencies[item];
} }
});
if (curPackage.dependencies && curPackage.dependencies["nemean-cli"]) { if (curPackage.dependencies && curPackage.dependencies["nemean-cli"]) {
Factory.log("删除nemean-cli包");
delete curPackage.dependencies["nemean-cli"]; delete curPackage.dependencies["nemean-cli"];
} }
});
// scripts // 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