mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 07:48:55 +00:00
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',
|
|
});
|
|
};
|