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:
parent
03362d2c6d
commit
83f6045167
@ -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
Loading…
Reference in New Issue
Block a user