Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ jobs:
pnpm --filter=${{ steps.extract-tag.outputs.subpackage == 'true' && '@discordjs/' || '' }}${{ steps.extract-tag.outputs.package }} publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: create-discord-bot -> create-discord-app
if: steps.extract-tag.outputs.package == 'create-discord-bot'
run: |
pnpm --filter=create-discord-bot run rename-to-app
pnpm --filter=create-discord-app publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
28 changes: 28 additions & 0 deletions packages/create-discord-bot/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions packages/create-discord-bot/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"$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",
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src",
"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",
Expand Down
14 changes: 14 additions & 0 deletions packages/create-discord-bot/scripts/rename-to-app.mjs
Original file line number Diff line number Diff line change
@@ -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'));