Files
Bubberstation/tools/build/cbt/yarn.js
Funce df9e8183f6 [MIRROR] Juke Build (#6313)
* 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>
2021-06-14 22:14:29 +12:00

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,
};