hypnagaga/bin/mods/rngs-io/index.ts
Ben Aultowski 04877468cf initial
2026-02-27 11:58:02 -05:00

16 lines
485 B
TypeScript

import { getLocations } from '../_utils/locations';
import * as url from 'url';
import path from 'path';
import { Mod } from '../_utils/mod';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const templatesDir = path.join(__dirname, 'templates');
const mod = new Mod();
export const unconfigRngsIo = () => {
const { ROOT } = getLocations();
const pagesDir = path.join(ROOT, 'pages');
mod.fs.copy([templatesDir, '+layout.ts'], [pagesDir, '+layout.ts']);
};