1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-02-09 06:33:29 +08:00

builders: update yarn builder

This commit is contained in:
moscovium 2018-10-03 16:55:18 +02:00
parent 03362d2c6d
commit 83f6045167
2 changed files with 5839 additions and 5576 deletions

View File

@ -14,7 +14,7 @@ const yarnBuildTask = {
try {
const yarnStat = fs.statSync(yarnLock);
if (packageStat.mtimeMs > yarnStat.mtimeMs) {
return true;
}
@ -43,6 +43,15 @@ const yarnBuildTask = {
cb(false, 'yarn failed!');
return;
}
const resourcePath = GetResourcePath(resourceName);
const yarnLock = path.resolve(resourcePath, 'yarn.lock');
try {
fs.utimesSync(yarnLock, new Date(), new Date());
} catch (e) {
}
cb(true);
});

File diff suppressed because one or more lines are too long