Signed-off-by: lizhouze <lizhouze@huawei.com>
This commit is contained in:
lizhouze
2022-03-16 10:04:13 +08:00
parent 43ba3c2e67
commit 10f172043b
+1 -7
View File
@@ -135,13 +135,7 @@ function validateCardModule(moduleJsonConfig) {
}
function hashProjectPath(projectPath) {
const ASSCIIStart = 65;
const ASSCIIEnd = 90;
const deviation = 1;
process.env.hashProjectPath =
String.fromCharCode(Math.floor(Math.random() * (ASSCIIEnd - ASSCIIStart + deviation) + ASSCIIStart)) +
md5(projectPath).substring(9, 16) +
String.fromCharCode(Math.floor(Math.random() * (ASSCIIEnd - ASSCIIStart + deviation) + ASSCIIStart));
process.env.hashProjectPath = "_" + md5(projectPath);
}
module.exports = {