@pitcher/cli-scripts 1.0.6 → 1.0.9
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.internal.md +11 -2
- package/README.md +3 -2
- package/dist/index.js +6 -1
- package/dist/package.json +6 -2
- package/package.json +8 -4
package/README.internal.md
CHANGED
|
@@ -7,6 +7,15 @@ yarn install
|
|
|
7
7
|
## To work on it
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
# at the root folder:
|
|
11
|
-
|
|
10
|
+
# at the root folder:
|
|
11
|
+
npm link
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## To use version from npm globally installed
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# anywhere:
|
|
18
|
+
npm unlink @pitcher/cli-scripts
|
|
19
|
+
# then
|
|
20
|
+
npm install -g @pitcher/cli-scripts
|
|
12
21
|
```
|
package/README.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# @pitcher/cli-scripts
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
> Pitcher CLI Tools provide a suite of command-line utilities to streamline your workflow. For the best experience, we recommend installing the tools globally using `npm install -g @pitcher/cli-scripts`.
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
## Help
|
|
6
7
|
```bash
|
|
7
8
|
p --help
|
|
8
9
|
# or for specific command help:
|
|
9
|
-
p command --help
|
|
10
|
+
p command --help
|
|
10
11
|
```
|
|
11
12
|
|
|
12
13
|
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { createCopyInstanceFilesCommand } from "./src/copyInstanceFiles.js";
|
|
4
4
|
import { createPublishAppCommand } from "./src/publishApp.js";
|
|
5
|
-
import
|
|
5
|
+
import { readFileSync } from "fs";
|
|
6
|
+
import { fileURLToPath } from "url";
|
|
7
|
+
import { dirname, join } from "path";
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = dirname(__filename);
|
|
10
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf8"));
|
|
6
11
|
const program = new Command();
|
|
7
12
|
program
|
|
8
13
|
.name("p")
|
package/dist/package.json
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/PitcherAG/ng-scripts.git"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [
|
|
11
|
+
"keywords": [
|
|
12
|
+
"pitcher",
|
|
13
|
+
"cli",
|
|
14
|
+
"ng-scripts"
|
|
15
|
+
],
|
|
12
16
|
"type": "module",
|
|
13
17
|
"main": "./dist/index.js",
|
|
14
18
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
"prepublishOnly": "npm run build"
|
|
18
22
|
},
|
|
19
23
|
"bin": {
|
|
20
|
-
"p": "./dist/index.js"
|
|
24
|
+
"p": "node --no-warnings ./dist/index.js"
|
|
21
25
|
},
|
|
22
26
|
"files": [
|
|
23
27
|
"dist"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitcher/cli-scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "The Pitcher CLI for various tasks in its ecosystem.",
|
|
5
5
|
"author": "Pitcher AG",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,13 +8,17 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/PitcherAG/ng-scripts.git"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [
|
|
11
|
+
"keywords": [
|
|
12
|
+
"pitcher",
|
|
13
|
+
"cli",
|
|
14
|
+
"ng-scripts"
|
|
15
|
+
],
|
|
12
16
|
"type": "module",
|
|
13
17
|
"main": "./dist/index.js",
|
|
14
18
|
"types": "./dist/index.d.ts",
|
|
15
19
|
"scripts": {
|
|
16
20
|
"build": "tsc",
|
|
17
|
-
"prepublishOnly": "
|
|
21
|
+
"prepublishOnly": "yarn build"
|
|
18
22
|
},
|
|
19
23
|
"bin": {
|
|
20
24
|
"p": "./dist/index.js"
|
|
@@ -33,4 +37,4 @@
|
|
|
33
37
|
"commander": "^12.1.0",
|
|
34
38
|
"form-data": "^4.0.0"
|
|
35
39
|
}
|
|
36
|
-
}
|
|
40
|
+
}
|