mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
Format the retired-file check
This commit is contained in:
@@ -1014,7 +1014,8 @@ function publicSnapshot(snapshot) {
|
||||
|
||||
function checkLocal() {
|
||||
for (const path of retiredOutputPaths) {
|
||||
if (existsSync(path)) throw new Error(`${path.slice(root.length)} is no longer generated; delete it`);
|
||||
if (existsSync(path))
|
||||
throw new Error(`${path.slice(root.length)} is no longer generated; delete it`);
|
||||
}
|
||||
const snapshot = JSON.parse(readFileSync(internalOutputPath, "utf8"));
|
||||
if (snapshot.nodeVersion !== pin.version || snapshot.nodeCommit !== pin.commit) {
|
||||
|
||||
Reference in New Issue
Block a user