Files
S.P.L.U.R.T-Station-13/tools/build/lib/yarn.js
2021-09-08 09:13:14 +08:00

14 lines
279 B
JavaScript

import Juke from '../juke/index.js';
let yarnPath;
export const yarn = (...args) => {
if (!yarnPath) {
yarnPath = Juke.glob('./tgui/.yarn/releases/*.cjs')[0]
.replace('/tgui/', '/');
}
return Juke.exec('node', [yarnPath, ...args], {
cwd: './tgui',
});
};