Files
VOREStation/tools/build/lib/bun.ts
T
Kashargul 4874f2a117 Biomeport (#18022)
* biome port

* fix

* umm

* up

* prettier on repo level

* .

* uh

* fix that

* .

* guh

* could be deelted

* fix query

* raccoon

* raccoon
2025-07-20 16:48:40 +02:00

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,
});
}