Skip to content

Commit 411b65d

Browse files
committed
feat(create-jellycommands): update templates
1 parent cf165b4 commit 411b65d

File tree

13 files changed

+31
-35
lines changed

13 files changed

+31
-35
lines changed

.changeset/ten-walls-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-jellycommands': minor
3+
---
4+
5+
feat: update templates
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DISCORD_TOKEN=
1+
DISCORD_TOKEN=""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.env
22
node_modules
3-
.jellycommands
3+
.jellycommands
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// * Don't delete me!!!
2-
// * If you have questions, ask in The Dev Lounge Discord
3-
// * https://discord.com/invite/2Vd4wAjJnm
4-
51
{
62
"compilerOptions": {
73
"lib": ["ESNext"],
@@ -11,9 +7,11 @@
117
"forceConsistentCasingInFileNames": true,
128
"moduleResolution": "node",
139
"resolveJsonModule": true,
10+
"skipLibCheck": true,
1411
"strict": true,
1512
"checkJs": true,
1613
"allowJs": true
1714
},
18-
"include": ["./src/**/*.js", "./src/**/*.ts"]
15+
"include": ["./src/**/*.js", "./src/**/*.ts"],
16+
"exclude": ["node_modules/**"]
1917
}

packages/create-jellycommands/src/js/package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
{
22
"type": "module",
3-
"main": "src/index.js",
43
"scripts": {
5-
"dev": "nodemon .",
6-
"start": "node ."
4+
"dev": "node --watch src/index.js",
5+
"start": "node src/index.js"
76
},
87
"dependencies": {
9-
"discord.js": "^14.15.3",
10-
"dotenv": "^16.4.5",
11-
"jellycommands": "1.0.0-next.44"
12-
},
13-
"devDependencies": {
14-
"nodemon": "^3.1.7"
8+
"discord.js": "^14.23.2",
9+
"dotenv": "^17.2.3",
10+
"jellycommands": "1.0.0-next.45"
1511
},
1612
"engines": {
1713
"node": ">=20.13.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { event } from 'jellycommands';
22

33
export default event({
4-
name: 'ready',
4+
name: 'clientReady',
55
run: (_, client) => console.log(client.user.tag, 'is online!'),
66
});

packages/create-jellycommands/src/js/src/components/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default command({
88
global: true,
99

1010
run: ({ interaction }) => {
11+
/** @type {ActionRowBuilder<ButtonBuilder>} */
1112
const row = new ActionRowBuilder();
1213

1314
const button = new ButtonBuilder()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DISCORD_TOKEN=
1+
DISCORD_TOKEN=""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.env
22
node_modules
3-
.jellycommands
3+
.jellycommands

packages/create-jellycommands/src/ts/package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{
22
"type": "module",
3-
"main": "src/index.ts",
43
"scripts": {
5-
"dev": "nodemon -e js,ts --loader tsm .",
6-
"start": "tsm ."
4+
"dev": "tsx --watch src/index.ts",
5+
"start": "tsx src/index.ts"
76
},
87
"dependencies": {
9-
"discord.js": "^14.15.3",
10-
"dotenv": "^16.4.5",
11-
"jellycommands": "1.0.0-next.44",
12-
"typescript": "^5.4.5"
8+
"discord.js": "^14.23.2",
9+
"dotenv": "^17.2.3",
10+
"jellycommands": "1.0.0-next.45",
11+
"typescript": "^5.9.3"
1312
},
1413
"devDependencies": {
1514
"@types/node": "^20.12.11",
16-
"nodemon": "^3.1.7",
17-
"tsm": "^2.3.0"
15+
"tsx": "^4.20.6"
1816
},
1917
"engines": {
2018
"node": ">=20.13.1"

0 commit comments

Comments
 (0)