@sapphire/cli 1.2.1-next.ef86e5a.0 → 1.2.1-next.ff0796a.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 +81 -0
- package/dist/cli.js +0 -0
- package/package.json +119 -115
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.2.0](https://github.com/sapphiredev/cli/compare/v1.1.0...v1.2.0) (2022-02-26)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- add yarn v3 support ([#84](https://github.com/sapphiredev/cli/issues/84)) ([4c47d1a](https://github.com/sapphiredev/cli/commit/4c47d1aef07b600c0727106bd8d008213f3c2d04))
|
|
10
|
+
|
|
11
|
+
## [1.1.0](https://github.com/sapphiredev/cli/compare/v1.0.2...v1.1.0) (2022-01-31)
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- add tsup and swc template options ([#71](https://github.com/sapphiredev/cli/issues/71)) ([625dd8e](https://github.com/sapphiredev/cli/commit/625dd8ea9d43f7005c72212fb5a65bf0b8aa7492))
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **deps:** update dependency commander to v9 ([#76](https://github.com/sapphiredev/cli/issues/76)) ([d75ea1b](https://github.com/sapphiredev/cli/commit/d75ea1b1542490fd67a14630ee67e3223dc3b6e7))
|
|
20
|
+
- Generated command comportnent code has error ([#67](https://github.com/sapphiredev/cli/issues/67)) ([9901517](https://github.com/sapphiredev/cli/commit/990151771e3d1da09dee34c9995d70abc241a769))
|
|
21
|
+
|
|
22
|
+
### [1.0.2](https://github.com/sapphiredev/cli/compare/v1.0.1...v1.0.2) (2021-11-08)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- update URL for guide ([0b7e402](https://github.com/sapphiredev/cli/commit/0b7e402e3db26af818824f423059c643374ed920))
|
|
27
|
+
|
|
28
|
+
### [1.0.1](https://github.com/sapphiredev/cli/compare/v1.0.0...v1.0.1) (2021-11-06)
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
- allow more node & npm versions in engines field ([ce6c97f](https://github.com/sapphiredev/cli/commit/ce6c97f8c2934796e9d6ab159195f2c0fa05188a))
|
|
33
|
+
- **deps:** update all non-major dependencies ([#36](https://github.com/sapphiredev/cli/issues/36)) ([1a9e791](https://github.com/sapphiredev/cli/commit/1a9e791768ebbe5edd11875ac07c31b9d3cec50e))
|
|
34
|
+
- typo `msg` -> `message` ([#39](https://github.com/sapphiredev/cli/issues/39)) ([0f8933b](https://github.com/sapphiredev/cli/commit/0f8933b1af3927c96a79a1f4d9b1bcc46727dd24))
|
|
35
|
+
|
|
36
|
+
## [1.0.0](https://github.com/sapphiredev/cli/compare/v0.0.3...v1.0.0) (2021-10-16)
|
|
37
|
+
|
|
38
|
+
### [0.0.3](https://github.com/sapphiredev/cli/compare/v0.0.2...v0.0.3) (2021-10-16)
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
- **templates:** Overridden run method to messageRun ([#30](https://github.com/sapphiredev/cli/issues/30)) ([07fc1d5](https://github.com/sapphiredev/cli/commit/07fc1d5516f057cd346340de853ded314741335f))
|
|
43
|
+
|
|
44
|
+
### [0.0.2](https://github.com/sapphiredev/cli/compare/v0.0.1...v0.0.2) (2021-10-16)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- add `init` command ([588e956](https://github.com/sapphiredev/cli/commit/588e956eeb9867be1e16db9bcd962fd72864d8fc))
|
|
49
|
+
- add JSON scheme for CLI config ([1ca569b](https://github.com/sapphiredev/cli/commit/1ca569b8ed89a869af3d5e39c6f1f4cc988edf08))
|
|
50
|
+
- add prompt for `init` command ([67d5a10](https://github.com/sapphiredev/cli/commit/67d5a106c66df3235260810ac6770234a7e7f2fc))
|
|
51
|
+
- category support ([0498b31](https://github.com/sapphiredev/cli/commit/0498b3125767b1b37614e50795402dbb8d72627e))
|
|
52
|
+
- switch to commander ([#15](https://github.com/sapphiredev/cli/issues/15)) ([8f34fa8](https://github.com/sapphiredev/cli/commit/8f34fa8323a6dfdb79abf2ebaf7fdd4d17f3df4b))
|
|
53
|
+
- YAML support ([#17](https://github.com/sapphiredev/cli/issues/17)) ([f69ae95](https://github.com/sapphiredev/cli/commit/f69ae959b664a3aa4342cf67c27802e197505c08))
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
- add timeout when finding the config file ([46e3e21](https://github.com/sapphiredev/cli/commit/46e3e21e2b3e0d431e1eeea612a5da9b636ed34a))
|
|
58
|
+
- create the config file on project root instead of the current folder ([aa3b352](https://github.com/sapphiredev/cli/commit/aa3b352aa22b7cecb2117ced37f8e33202fa492b))
|
|
59
|
+
- include `templates` directory in the npm package ([c85406f](https://github.com/sapphiredev/cli/commit/c85406f9e9ba764a8063f5b7af458eb8b8f23924))
|
|
60
|
+
- path and executable issues on Windows ([f317d7f](https://github.com/sapphiredev/cli/commit/f317d7f35d39d388798e6250d79915e7cfdfa23a))
|
|
61
|
+
- **templates:** typescript types ([3812b34](https://github.com/sapphiredev/cli/commit/3812b34f7467e30624c7993a64366d2cb0821ac9))
|
|
62
|
+
|
|
63
|
+
### 0.0.1 (2021-09-23)
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
- add a function to check if a command exists ([107ccee](https://github.com/sapphiredev/cli/commit/107ccee0b55b3ddf6261d177d6b0b5730512811c))
|
|
68
|
+
- add command: `generate` ([b14a965](https://github.com/sapphiredev/cli/commit/b14a965548f5548ce7ac5e0e53d23c85ca827da2))
|
|
69
|
+
- add command: `new` ([4afa8cd](https://github.com/sapphiredev/cli/commit/4afa8cdaf122bac4bc7b16a8f18a9bda40663d4c))
|
|
70
|
+
- add command: `new` ([ffe5a69](https://github.com/sapphiredev/cli/commit/ffe5a695c0126523a4c9e79ea4817542023de193))
|
|
71
|
+
- add function to create files using templates ([e95db50](https://github.com/sapphiredev/cli/commit/e95db50555a9f02e241bea9753506e12a14b0395))
|
|
72
|
+
- add path aliases ([1b65110](https://github.com/sapphiredev/cli/commit/1b65110d0135f4ee9a064d8ac6f130f06ec8ab4c))
|
|
73
|
+
- add PWSH script for Windows ([c69c55f](https://github.com/sapphiredev/cli/commit/c69c55f44f39b6d1984adaded486e29759118375))
|
|
74
|
+
- add templates for `generate` command ([be6f535](https://github.com/sapphiredev/cli/commit/be6f53583ecba3d959a76a12310ff3d80cbd52dd))
|
|
75
|
+
- update batch file for Windows Command Prompt ([746ab83](https://github.com/sapphiredev/cli/commit/746ab838bc668c863a8fc6b2d9632e4c5790acdc))
|
|
76
|
+
- update config template ([65c47a0](https://github.com/sapphiredev/cli/commit/65c47a0728f4652b725b37ebcf758fb60155de7c))
|
|
77
|
+
- use new template format ([1adcbeb](https://github.com/sapphiredev/cli/commit/1adcbeb39678fbbfe6ea119dd9586d3a022cbc11))
|
|
78
|
+
|
|
79
|
+
### Bug Fixes
|
|
80
|
+
|
|
81
|
+
- language value was not getting replaced when creating the `.sapphirerc.json` file from template ([946a40a](https://github.com/sapphiredev/cli/commit/946a40a4365411c2f20a1ed8806e0057c0afbc56))
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,116 +1,120 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
2
|
+
"name": "@sapphire/cli",
|
|
3
|
+
"version": "1.2.1-next.ff0796a.0",
|
|
4
|
+
"description": "CLI for Sapphire Framework",
|
|
5
|
+
"author": "@sapphire",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/cli.js",
|
|
9
|
+
"bin": {
|
|
10
|
+
"sapphire": "./dist/cli.js"
|
|
11
|
+
},
|
|
12
|
+
"imports": {
|
|
13
|
+
"#prompts/*": "./dist/prompts/*.js",
|
|
14
|
+
"#functions/*": "./dist/functions/*.js",
|
|
15
|
+
"#commands/*": "./dist/commands/*.js",
|
|
16
|
+
"#constants": "./dist/constants.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": "false",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"!dist/*.tsbuildinfo",
|
|
22
|
+
"!dist/**/*.js.map",
|
|
23
|
+
"!dist/**/*.d.ts",
|
|
24
|
+
"!dist/**/*.d.ts.map",
|
|
25
|
+
"templates"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"lint": "eslint src --ext ts --fix",
|
|
29
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
30
|
+
"update": "yarn upgrade-interactive",
|
|
31
|
+
"build": "tsc -b src",
|
|
32
|
+
"clean": "tsc -b src --clean",
|
|
33
|
+
"watch": "tsc -b src -w",
|
|
34
|
+
"bump": "cliff-jumper",
|
|
35
|
+
"check-update": "cliff-jumper --dry-run",
|
|
36
|
+
"_postinstall": "husky install .github/husky",
|
|
37
|
+
"prepack": "yarn build && pinst --disable",
|
|
38
|
+
"postpack": "pinst --enable"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@sapphire/result": "^1.1.1",
|
|
42
|
+
"colorette": "^2.0.16",
|
|
43
|
+
"commander": "^9.2.0",
|
|
44
|
+
"execa": "^6.1.0",
|
|
45
|
+
"find-up": "^5.0.0",
|
|
46
|
+
"js-yaml": "^4.1.0",
|
|
47
|
+
"prompts": "^2.4.2",
|
|
48
|
+
"tslib": "^2.4.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@commitlint/cli": "^16.3.0",
|
|
52
|
+
"@commitlint/config-conventional": "^16.2.4",
|
|
53
|
+
"@favware/cliff-jumper": "^1.8.0",
|
|
54
|
+
"@favware/npm-deprecate": "^1.0.4",
|
|
55
|
+
"@sapphire/eslint-config": "^4.3.5",
|
|
56
|
+
"@sapphire/prettier-config": "^1.4.3",
|
|
57
|
+
"@sapphire/ts-config": "^3.3.4",
|
|
58
|
+
"@types/js-yaml": "^4.0.5",
|
|
59
|
+
"@types/node": "^17.0.33",
|
|
60
|
+
"@types/prompts": "^2.0.14",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
|
62
|
+
"@typescript-eslint/parser": "^5.23.0",
|
|
63
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
64
|
+
"eslint": "^8.15.0",
|
|
65
|
+
"eslint-config-prettier": "^8.5.0",
|
|
66
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
67
|
+
"globby": "^13.1.1",
|
|
68
|
+
"husky": "^8.0.1",
|
|
69
|
+
"lint-staged": "^12.4.1",
|
|
70
|
+
"pinst": "^3.0.0",
|
|
71
|
+
"prettier": "^2.6.2",
|
|
72
|
+
"pretty-quick": "^3.1.3",
|
|
73
|
+
"ts-node": "^10.7.0",
|
|
74
|
+
"typescript": "^4.6.4"
|
|
75
|
+
},
|
|
76
|
+
"resolutions": {
|
|
77
|
+
"ansi-regex": "^5.0.1",
|
|
78
|
+
"minimist": "^1.2.6"
|
|
79
|
+
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=v16.6.0",
|
|
82
|
+
"npm": ">=7.0.0"
|
|
83
|
+
},
|
|
84
|
+
"keywords": [
|
|
85
|
+
"@sapphire/cli",
|
|
86
|
+
"bot",
|
|
87
|
+
"typescript",
|
|
88
|
+
"ts",
|
|
89
|
+
"yarn",
|
|
90
|
+
"discord",
|
|
91
|
+
"sapphire",
|
|
92
|
+
"discordjs"
|
|
93
|
+
],
|
|
94
|
+
"repository": {
|
|
95
|
+
"type": "git",
|
|
96
|
+
"url": "git+https://github.com/sapphiredev/cli.git"
|
|
97
|
+
},
|
|
98
|
+
"bugs": {
|
|
99
|
+
"url": "https://github.com/sapphiredev/cli/issues"
|
|
100
|
+
},
|
|
101
|
+
"homepage": "https://www.sapphirejs.dev",
|
|
102
|
+
"commitlint": {
|
|
103
|
+
"extends": [
|
|
104
|
+
"@commitlint/config-conventional"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"lint-staged": {
|
|
108
|
+
"*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts"
|
|
109
|
+
},
|
|
110
|
+
"config": {
|
|
111
|
+
"commitizen": {
|
|
112
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"publishConfig": {
|
|
116
|
+
"access": "public"
|
|
117
|
+
},
|
|
118
|
+
"prettier": "@sapphire/prettier-config",
|
|
119
|
+
"packageManager": "yarn@3.2.1"
|
|
120
|
+
}
|