mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-20 13:47:12 +01:00
4874f2a117
* biome port * fix * umm * up * prettier on repo level * . * uh * fix that * . * guh * could be deelted * fix query * raccoon * raccoon
29 lines
720 B
TypeScript
29 lines
720 B
TypeScript
import { mkdirSync } from 'node:fs';
|
|
import Juke from '../juke/index.js';
|
|
|
|
let hasInstallFolder = false;
|
|
|
|
export function bun(...args: any[]): Promise<Juke.ExecReturn> {
|
|
if (!hasInstallFolder) {
|
|
mkdirSync('./tgui/node_modules/', { recursive: true });
|
|
hasInstallFolder = true;
|
|
}
|
|
|
|
return Juke.exec('bun', [...args.filter((arg) => typeof arg === 'string')], {
|
|
cwd: './tgui',
|
|
shell: true,
|
|
});
|
|
}
|
|
|
|
export function bunRoot(...args: any[]): Promise<Juke.ExecReturn> {
|
|
if (!hasInstallFolder) {
|
|
mkdirSync('./node_modules/', { recursive: true });
|
|
hasInstallFolder = true;
|
|
}
|
|
|
|
return Juke.exec('bun', [...args.filter((arg) => typeof arg === 'string')], {
|
|
cwd: './',
|
|
shell: true,
|
|
});
|
|
}
|