mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -2,6 +2,34 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
# [create-discord-bot@4.0.0](https://github.com/discordjs/discord.js/compare/create-discord-bot@1.0.0...create-discord-bot@4.0.0) - (2025-06-21)
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
- Structure imports on windows (#10835) ([5c0b714](https://github.com/discordjs/discord.js/commit/5c0b714557ce86d793145445ff5f103b6962ec11)) by @almeidx
|
||||
- **create-discord-bot:** Register command files in subdirectories (#10775) ([79b79b6](https://github.com/discordjs/discord.js/commit/79b79b6a44967d9ed1e449b49a851b417afb263b)) by @schrodienieur
|
||||
|
||||
## Documentation
|
||||
|
||||
- Guide setup (#10862) ([2184085](https://github.com/discordjs/discord.js/commit/2184085fdaf00c982130212eb27ab878df2c3e1e)) by @iCrawl
|
||||
- Fix close tags (#10756) ([5c49b6d](https://github.com/discordjs/discord.js/commit/5c49b6d9af9b0e69c4792ef4be831607675d418c)) by @Jiralite
|
||||
|
||||
## Refactor
|
||||
|
||||
- Remove `registerEvents` function (#10877) ([2c21de6](https://github.com/discordjs/discord.js/commit/2c21de68f3bd1faa52e14cc70aebc322cf4bdd56)) by @sdanialraza
|
||||
- **constants:** Update guide URL (#10803) ([eabcc52](https://github.com/discordjs/discord.js/commit/eabcc52594c2237666bbbbbc89c66d5e34ef29bb)) by @Jiralite
|
||||
|
||||
## Build
|
||||
|
||||
- Bump Node.js to 22.12.0 (#10726) ([3db8ce7](https://github.com/discordjs/discord.js/commit/3db8ce70a2d20bd2def70a2c839b015bc24195eb)) by @Jiralite
|
||||
- **BREAKING CHANGE:** Node.js 22.12.0 or above is required.
|
||||
- Bumps the version of create-discord-bot and create-discord-app to `4.0.0` for consistency
|
||||
|
||||
### New Contributors
|
||||
|
||||
* @schrodienieur made their first contribution in #10775
|
||||
* @nsgpriyanshu made their first contribution in #10428
|
||||
|
||||
# [create-discord-bot@1.0.0](https://github.com/discordjs/discord.js/compare/create-discord-bot@0.3.1...create-discord-bot@1.0.0) - (2025-01-01)
|
||||
|
||||
## Features
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "create-discord-bot",
|
||||
"version": "1.0.0",
|
||||
"version": "4.0.0",
|
||||
"description": "A simple way to create a startup Discord bot.",
|
||||
"scripts": {
|
||||
"build": "tsc --noEmit && tsup",
|
||||
@@ -9,7 +9,8 @@
|
||||
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src",
|
||||
"prepack": "pnpm run build && pnpm run lint",
|
||||
"changelog": "git cliff --prepend ./CHANGELOG.md -u -c ./cliff.toml -r ../../ --include-path 'packages/create-discord-bot/*'",
|
||||
"release": "cliff-jumper"
|
||||
"release": "cliff-jumper",
|
||||
"rename-to-app": "node scripts/rename-to-app.mjs"
|
||||
},
|
||||
"type": "module",
|
||||
"bin": "./dist/index.js",
|
||||
|
||||
14
packages/create-discord-bot/scripts/rename-to-app.mjs
Normal file
14
packages/create-discord-bot/scripts/rename-to-app.mjs
Normal 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'));
|
||||
Reference in New Issue
Block a user