chore(create-discord-bot): release create-discord-bot@4.0.0 (#10947)

* chore(create-discord-bot): release create-discord-bot@4.0.0

* chore(ci): handle identical deploy to create-discord-app

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Vlad Frangu
2025-06-23 00:39:09 +03:00
committed by GitHub
parent cbb20566c5
commit 8e374aa8e3
4 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import { readFile, writeFile } from 'node:fs/promises';
import { URL } from 'node:url';
const pkgJsonPath = new URL('../package.json', import.meta.url);
const pkgJson = JSON.parse(await readFile(pkgJsonPath, 'utf8'));
pkgJson.name = 'create-discord-app';
await writeFile(pkgJsonPath, JSON.stringify(pkgJson, null, '\t'));
const readmePath = new URL('../README.md', import.meta.url);
const readme = await readFile(readmePath, 'utf8');
await writeFile(readmePath, readme.replaceAll('create discord-bot', 'create discord-app'));