mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
* Juke Build (#59390) * Juke Build Hotfix 1 (#59643) * Juke Build Fix * More fixes * Juke Build Hotfix 2 - PreCompile script compatibility (#59649) * Juke Build Hotfix 2 - PreCompile script compatibility * Pass arguments from bat to build.js * Pass arguments in BUILD.bat as well * Quick tweak * Modular Skyrat detection~ Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
18 lines
318 B
JavaScript
18 lines
318 B
JavaScript
const { exec, resolveGlob } = require('../juke');
|
|
|
|
let yarnPath;
|
|
|
|
const yarn = (...args) => {
|
|
if (!yarnPath) {
|
|
yarnPath = resolveGlob('./tgui/.yarn/releases/yarn-*.cjs')[0]
|
|
.replace('/tgui/', '/');
|
|
}
|
|
return exec('node', [yarnPath, ...args], {
|
|
cwd: './tgui',
|
|
});
|
|
};
|
|
|
|
module.exports = {
|
|
yarn,
|
|
};
|