create-commandkit 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.js +1 -1
- package/dist/utils.js +2 -2
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/neplexlabs/commandkit/main/apps/website/static/img/ckit_logo.svg" width="60%" />
|
|
3
3
|
<br />
|
|
4
4
|
<a href="https://commandkit.dev/discord"><img src="https://img.shields.io/discord/1055188344188973066?color=5865F2&logo=discord&logoColor=white" alt="support server" /></a>
|
|
5
5
|
<a href="https://www.npmjs.com/package/create-commandkit"><img src="https://img.shields.io/npm/v/create-commandkit?maxAge=3600" alt="npm version" /></a>
|
|
@@ -68,13 +68,13 @@ npx create-commandkit@latest --example "https://github.com/user/repo" --example-
|
|
|
68
68
|
### Available Examples
|
|
69
69
|
|
|
70
70
|
<!-- BEGIN_AVAILABLE_EXAMPLES -->
|
|
71
|
-
- `basic-js` - [examples/basic-js](https://github.com/
|
|
72
|
-
- `basic-ts` - [examples/basic-ts](https://github.com/
|
|
73
|
-
- `deno-ts` - [examples/deno-ts](https://github.com/
|
|
74
|
-
- `with-ai` - [examples/with-ai](https://github.com/
|
|
75
|
-
- `with-leveling-system` - [examples/with-leveling-system](https://github.com/
|
|
76
|
-
- `with-workflow` - [examples/with-workflow](https://github.com/
|
|
77
|
-
- `without-cli` - [examples/without-cli](https://github.com/
|
|
71
|
+
- `basic-js` - [examples/basic-js](https://github.com/neplexlabs/commandkit/tree/main/examples/basic-js)
|
|
72
|
+
- `basic-ts` - [examples/basic-ts](https://github.com/neplexlabs/commandkit/tree/main/examples/basic-ts)
|
|
73
|
+
- `deno-ts` - [examples/deno-ts](https://github.com/neplexlabs/commandkit/tree/main/examples/deno-ts)
|
|
74
|
+
- `with-ai` - [examples/with-ai](https://github.com/neplexlabs/commandkit/tree/main/examples/with-ai)
|
|
75
|
+
- `with-leveling-system` - [examples/with-leveling-system](https://github.com/neplexlabs/commandkit/tree/main/examples/with-leveling-system)
|
|
76
|
+
- `with-workflow` - [examples/with-workflow](https://github.com/neplexlabs/commandkit/tree/main/examples/with-workflow)
|
|
77
|
+
- `without-cli` - [examples/without-cli](https://github.com/neplexlabs/commandkit/tree/main/examples/without-cli)
|
|
78
78
|
<!-- END_AVAILABLE_EXAMPLES -->
|
|
79
79
|
|
|
80
80
|
### Examples
|
package/dist/index.js
CHANGED
|
@@ -197,7 +197,7 @@ To start your bot${projectDir !== '.' ? `, ${colors.magenta(`cd ${projectDir}`)}
|
|
|
197
197
|
${colors.magenta(command('start'))} - Run your bot in production mode
|
|
198
198
|
|
|
199
199
|
• Documentation: ${colors.blue('https://commandkit.dev')}
|
|
200
|
-
• GitHub: ${colors.blue('https://github.com/
|
|
200
|
+
• GitHub: ${colors.blue('https://github.com/neplexlabs/commandkit')}
|
|
201
201
|
• Neplex: ${colors.blue('https://neplextech.com')}
|
|
202
202
|
• Discord community: ${colors.blue('https://commandkit.dev/discord')}
|
|
203
203
|
|
package/dist/utils.js
CHANGED
|
@@ -46,7 +46,7 @@ export function isOfficialExample(example) {
|
|
|
46
46
|
try {
|
|
47
47
|
const url = new URL(example);
|
|
48
48
|
return (url.hostname === 'github.com' &&
|
|
49
|
-
url.pathname.startsWith('/
|
|
49
|
+
url.pathname.startsWith('/neplexlabs/commandkit'));
|
|
50
50
|
}
|
|
51
51
|
catch {
|
|
52
52
|
return false;
|
|
@@ -70,7 +70,7 @@ export function getInstallCommand(manager, deps, dev = false) {
|
|
|
70
70
|
}
|
|
71
71
|
export async function fetchAvailableExamples() {
|
|
72
72
|
try {
|
|
73
|
-
const response = await fetch('https://api.github.com/repos/
|
|
73
|
+
const response = await fetch('https://api.github.com/repos/neplexlabs/commandkit/contents/examples', {
|
|
74
74
|
signal: AbortSignal.timeout(10_000),
|
|
75
75
|
headers: {
|
|
76
76
|
'User-Agent': 'create-commandkit',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-commandkit",
|
|
3
3
|
"description": "Effortlessly create a CommandKit project",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.2",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"bin": "./dist/index.js",
|
|
@@ -22,32 +22,32 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/
|
|
25
|
+
"url": "https://github.com/neplexlabs/commandkit",
|
|
26
26
|
"directory": "packages/create-commandkit"
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://commandkit.dev",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"check-types": "tsc --noEmit",
|
|
31
|
+
"dev": "tsc --watch",
|
|
32
|
+
"build": "tsc && tsx scripts/sync-available-examples.ts"
|
|
33
|
+
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@clack/prompts": "^1.0
|
|
31
|
-
"commander": "^
|
|
32
|
-
"fs-extra": "^11.3.
|
|
35
|
+
"@clack/prompts": "^1.7.0",
|
|
36
|
+
"commander": "^15.0.0",
|
|
37
|
+
"fs-extra": "^11.3.6",
|
|
33
38
|
"gradient-string": "^3.0.0",
|
|
34
|
-
"ora": "^9.
|
|
39
|
+
"ora": "^9.4.1",
|
|
35
40
|
"picocolors": "^1.1.1",
|
|
36
|
-
"tiged": "^2.12.
|
|
37
|
-
"validate-npm-package-name": "^
|
|
41
|
+
"tiged": "^2.12.8",
|
|
42
|
+
"validate-npm-package-name": "^8.0.0"
|
|
38
43
|
},
|
|
39
44
|
"devDependencies": {
|
|
40
45
|
"@types/fs-extra": "^11.0.4",
|
|
41
46
|
"@types/gradient-string": "^1.1.6",
|
|
42
|
-
"@types/node": "^25.
|
|
47
|
+
"@types/node": "^25.9.5",
|
|
43
48
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
},
|
|
48
|
-
"scripts": {
|
|
49
|
-
"check-types": "tsc --noEmit",
|
|
50
|
-
"dev": "tsc --watch",
|
|
51
|
-
"build": "tsc && tsx scripts/sync-available-examples.ts"
|
|
49
|
+
"tsconfig": "workspace:*",
|
|
50
|
+
"tsx": "^4.23.1",
|
|
51
|
+
"typescript": "catalog:build"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|