Rename the unified application to dashboard

This commit is contained in:
2026-11-04 23:01:32 +08:00
parent 4ec83f2603
commit 61d80f352f
223 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
import { copyFile, mkdir, readFile } from 'node:fs/promises';
import { resolve } from 'node:path';
const app = JSON.parse(await readFile('package.json', 'utf8'));
if (app.name !== '@prompt/waterfall-wiki') throw Error('Run from a consuming application directory');
if (app.name !== '@prompt/dashboard') throw Error('Run from a consuming application directory');
const source = new URL('../assets/', import.meta.url);
await mkdir(resolve('public/brand'), {recursive:true});
for (const name of ['logo-light.svg','logo-dark.svg','icon-dark.svg']) await copyFile(new URL(`svg/${name}`, source), resolve(`public/brand/${name}`));