@pitcher/cli-scripts 1.0.5 → 1.0.8
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 +1 -1
- package/dist/index.js +6 -1
- package/dist/package.json +7 -3
- package/dist/src/copyInstanceFiles.js +1 -1
- 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
|
@@ -13,7 +13,7 @@ p command --help
|
|
|
13
13
|
## To run the `copy-instance-files` command:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
p copy-instance-files <fromInstance> <toInstance> --org
|
|
16
|
+
p copy-instance-files <fromInstance> <toInstance> --org pitcher --api-key myapikey
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## To run the `publish-app` command:
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitcher/cli-scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "The Pitcher CLI for various tasks in its ecosystem.",
|
|
5
5
|
"author": "Pitcher AG",
|
|
6
6
|
"license": "MIT",
|
|
@@ -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"
|
|
@@ -5,7 +5,7 @@ export function createCopyInstanceFilesCommand() {
|
|
|
5
5
|
.arguments("<fromInstance> <toInstance>")
|
|
6
6
|
.requiredOption("--api-key <apiKey>", "API Key", process.env.PITCHER_API_KEY)
|
|
7
7
|
.requiredOption("--org <orgName>", "Organization Name", process.env.PITCHER_ORG)
|
|
8
|
-
.description('clone instance files into another one e.g. "p copy-instance-files <fromInstanceId> <toInstanceId> --org
|
|
8
|
+
.description('clone instance files into another one e.g. "p copy-instance-files <fromInstanceId> <toInstanceId> --org pitcher --api-key myapikey"')
|
|
9
9
|
.action((sourceInstanceId, destinationInstanceId, options) => {
|
|
10
10
|
console.log("clone instance files command called", {
|
|
11
11
|
sourceInstanceId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitcher/cli-scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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
|
+
}
|