import { copyFileSync, mkdirSync } from 'node:fs'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; const websiteRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const source = resolve(websiteRoot, 'public/web.config'); const destination = resolve(websiteRoot, 'dist/toju-website/web.config'); mkdirSync(dirname(destination), { recursive: true }); copyFileSync(source, destination);