mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
17 lines
333 B
JavaScript
17 lines
333 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.filter((arg) => typeof arg === 'string'),
|
|
], {
|
|
cwd: './tgui',
|
|
});
|
|
};
|