mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-21 14:17:41 +01:00
9c71c3bb4f
* Yarn to bun migration port * . * . * . * . * . * . * . * missed that * ... * can't have those * end of compat * port tg 91703 * we need to accept the eula * make sure to use basic * -f as JL suggested * Update dependencies.sh * push --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
16 lines
471 B
TypeScript
16 lines
471 B
TypeScript
import { DME_NAME } from "../build";
|
|
|
|
/**
|
|
* Prepends the defines to the .dme.
|
|
* Does not clean them up, as this is intended for TGS which
|
|
* clones new copies anyway.
|
|
*/
|
|
export async function prependDefines(...defines: string[]): Promise<void> {
|
|
const file = Bun.file(`${DME_NAME}.dme`);
|
|
|
|
const dmeContents = await file.text();
|
|
const textToWrite = defines.map((define) => `#define ${define}\n`);
|
|
|
|
await file.write(`${textToWrite.join("")}\n${dmeContents}`);
|
|
}
|