14 lines
279 B
JavaScript
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',
|
|
});
|
|
};
|