1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2026-05-14 01:12:37 +08:00

builders: update yarn builder

This commit is contained in:
moscovium
2018-10-03 16:55:18 +02:00
Unverified
parent 03362d2c6d
commit 83f6045167
2 changed files with 5788 additions and 5525 deletions
@@ -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