@sapphire/cli 1.6.0-next.650ec76.0 → 1.6.0
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/CHANGELOG.md +26 -0
- package/dist/commands/init.js +2 -1
- package/dist/prompts/PromptInit.js +11 -0
- package/dist/prompts/PromptNew.js +0 -1
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [1.6.0](https://github.com/sapphiredev/cli/compare/v1.5.0...v1.6.0) - (2023-04-12)
|
|
6
|
+
|
|
7
|
+
## 🏠 Refactor
|
|
8
|
+
|
|
9
|
+
- Remove `with-docker` template ([1b485f8](https://github.com/sapphiredev/cli/commit/1b485f836d656022dd761cc13862fa9a970142a7))
|
|
10
|
+
- Stricter typing for config parsing ([ab0efb3](https://github.com/sapphiredev/cli/commit/ab0efb3c602843b76bf64e135c0a448288227462))
|
|
11
|
+
- **new:** Make yarn v3 the default ([30499ea](https://github.com/sapphiredev/cli/commit/30499ea72a52c31220794f41da695494145c9b08))
|
|
12
|
+
- **CreateFileFromTemplate:** Better internal code naming ([3189772](https://github.com/sapphiredev/cli/commit/3189772a1b85ecc2bad2949ed8d339ff0541cebf))
|
|
13
|
+
- Better error messages for `generate` when template doesn't exist ([dc34e1e](https://github.com/sapphiredev/cli/commit/dc34e1ecda585eeb7024d716fbf401e8e18a9b93))
|
|
14
|
+
|
|
15
|
+
## 🐛 Bug Fixes
|
|
16
|
+
|
|
17
|
+
- Better error messages when creating file ([afa4afb](https://github.com/sapphiredev/cli/commit/afa4afba579f4877eecbe447a9728b71b4042b0c))
|
|
18
|
+
- Fixed JSON config file ([6fe3d0c](https://github.com/sapphiredev/cli/commit/6fe3d0c87a0ba70a802d73c73028832b77c0077b))
|
|
19
|
+
- **templates:** Adhere to strict type checking rules ([b455738](https://github.com/sapphiredev/cli/commit/b455738705d475d99357f758d9eeea505d43c2f2))
|
|
20
|
+
|
|
21
|
+
## 🚀 Features
|
|
22
|
+
|
|
23
|
+
- Add route in prompt (#220) ([60451d6](https://github.com/sapphiredev/cli/commit/60451d6e2c92ef42c07f592d2923177aa9386595))
|
|
24
|
+
- **templates:** Add interaction handler templates (#216) ([650ec76](https://github.com/sapphiredev/cli/commit/650ec76c3c17e2ae5d480994daac4b42bacbfc34))
|
|
25
|
+
- Add `interactive-tools` plugin for yarn v3 installs ([c417d97](https://github.com/sapphiredev/cli/commit/c417d970f139da1827fe914f69903f90df436907))
|
|
26
|
+
|
|
27
|
+
## 🪞 Styling
|
|
28
|
+
|
|
29
|
+
- Add prettierignore file ([2d24595](https://github.com/sapphiredev/cli/commit/2d24595e347a9e4d24ca6926e35fb60945e11725))
|
|
30
|
+
|
|
5
31
|
# [1.5.0](https://github.com/sapphiredev/cli/compare/v1.4.0...v1.5.0) - (2023-04-10)
|
|
6
32
|
|
|
7
33
|
## 🐛 Bug Fixes
|
package/dist/commands/init.js
CHANGED
|
@@ -21,7 +21,8 @@ export default async () => {
|
|
|
21
21
|
commands: response.commands,
|
|
22
22
|
listeners: response.listeners,
|
|
23
23
|
preconditions: response.preconditions,
|
|
24
|
-
'interaction-handlers': response['interaction-handlers']
|
|
24
|
+
'interaction-handlers': response['interaction-handlers'],
|
|
25
|
+
routes: response.routes ?? ''
|
|
25
26
|
},
|
|
26
27
|
customFileTemplates: {
|
|
27
28
|
enabled: response.cftEnabled,
|
|
@@ -53,6 +53,17 @@ export const PromptInit = [
|
|
|
53
53
|
message: 'Where do you store your interaction handlers? (do not include the base)',
|
|
54
54
|
initial: 'interaction-handlers'
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
type: 'confirm',
|
|
58
|
+
name: 'rEnabled',
|
|
59
|
+
message: 'Would you use the api plugin?'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: (prev) => (prev ? 'text' : null),
|
|
63
|
+
name: 'rLocation',
|
|
64
|
+
message: 'Where do you store your routes? (do not include the base)',
|
|
65
|
+
initial: 'routes'
|
|
66
|
+
},
|
|
56
67
|
{
|
|
57
68
|
type: 'confirm',
|
|
58
69
|
name: 'cftEnabled',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const tsTemplates = [
|
|
2
2
|
{ title: 'Starter template (Recommended)', value: 'with-typescript-starter' },
|
|
3
3
|
{ title: 'Complete template', value: 'with-typescript-complete' },
|
|
4
|
-
{ title: 'with Docker', value: 'with-docker' },
|
|
5
4
|
{ title: 'with tsup', value: 'with-tsup' },
|
|
6
5
|
{ title: 'with SWC', value: 'with-swc' }
|
|
7
6
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/cli",
|
|
3
|
-
"version": "1.6.0
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "CLI for Sapphire Framework",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,10 @@
|
|
|
48
48
|
"@commitlint/config-conventional": "^17.4.4",
|
|
49
49
|
"@favware/cliff-jumper": "^2.0.0",
|
|
50
50
|
"@favware/npm-deprecate": "^1.0.7",
|
|
51
|
+
"@sapphire/decorators": "*",
|
|
51
52
|
"@sapphire/eslint-config": "^4.4.0",
|
|
53
|
+
"@sapphire/framework": "*",
|
|
54
|
+
"@sapphire/plugin-api": "*",
|
|
52
55
|
"@sapphire/prettier-config": "^1.4.5",
|
|
53
56
|
"@sapphire/ts-config": "^4.0.0",
|
|
54
57
|
"@types/js-yaml": "^4.0.5",
|
|
@@ -57,6 +60,7 @@
|
|
|
57
60
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
58
61
|
"@typescript-eslint/parser": "^5.58.0",
|
|
59
62
|
"cz-conventional-changelog": "^3.3.0",
|
|
63
|
+
"discord.js": "*",
|
|
60
64
|
"eslint": "^8.38.0",
|
|
61
65
|
"eslint-config-prettier": "^8.8.0",
|
|
62
66
|
"eslint-plugin-prettier": "^4.2.1",
|