@goldstack/utils-cli 0.3.27 → 0.3.29
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 +21 -1
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
+
[](https://badge.fury.io/js/%40goldstack%2Futils-cli)
|
|
2
|
+
|
|
1
3
|
# Goldstack CLI Utils
|
|
2
4
|
|
|
3
5
|
This library contains a method to wrap the execution for a Node.js CLI application.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
This utility has been developed for the [Goldstack](https://goldstack.party) starter project builder. Check it out for starting your next project ❤️
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @goldstack/utils-cli
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { runCli } from '@goldstack/utils-cli';
|
|
18
|
+
|
|
19
|
+
runCli(async () => {
|
|
20
|
+
// Your CLI logic here
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
See [Source Code](https://github.com/goldstack/goldstack/blob/master/workspaces/utils/packages/utils-cli/src/utilsCli.ts).
|
|
25
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/utils-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
4
4
|
"description": "Utilities for building command line interfaces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
|
|
30
30
|
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js --runInBand",
|
|
31
31
|
"prepublishOnly": "yarn run build",
|
|
32
|
-
"publish": "
|
|
32
|
+
"publish": "yarn npm publish --tolerate-republish",
|
|
33
33
|
"test": "jest --passWithNoTests --config=./jest.config.js --runInBand",
|
|
34
|
-
"version:apply": "
|
|
34
|
+
"version:apply": "yarn version $@ && yarn version apply",
|
|
35
35
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
@@ -39,13 +39,12 @@
|
|
|
39
39
|
"pino-pretty": "^11.2.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@goldstack/utils-git": "0.2.22",
|
|
43
42
|
"@swc/core": "^1.15.8",
|
|
44
43
|
"@swc/jest": "^0.2.39",
|
|
45
44
|
"@types/jest": "^30.0.0",
|
|
46
45
|
"@types/node": "^25.0.3",
|
|
47
46
|
"jest": "^30.2.0",
|
|
48
|
-
"rimraf": "^
|
|
47
|
+
"rimraf": "^6.1.2",
|
|
49
48
|
"typescript": "^5.9.3"
|
|
50
49
|
},
|
|
51
50
|
"publishConfig": {
|