Skip to content

Commit e905a9f

Browse files
committed
Switch to sha1
1 parent 87d9f79 commit e905a9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/ncc-cache-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const os = require("os");
33
const path = require("path");
44

55
const cacheBase = process.env.XDG_CACHE_HOME || path.join(os.homedir(), ".cache");
6-
const projectKey = crypto.createHash("sha256").update(process.cwd()).digest("hex").slice(0, 12);
6+
const projectKey = crypto.hash("sha1", process.cwd());
77

88
module.exports = path.join(cacheBase, "ncc", projectKey);

0 commit comments

Comments
 (0)