@provartesting/provardx-cli 1.2.1 → 1.2.3

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.
@@ -336,5 +336,5 @@
336
336
  ]
337
337
  }
338
338
  },
339
- "version": "1.2.1"
339
+ "version": "1.2.3"
340
340
  }
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@provartesting/provardx-cli",
3
3
  "description": "A plugin for the Salesforce CLI to orchestrate testing activities and report quality metrics to Provar Manager",
4
- "version": "1.2.1",
4
+ "version": "1.2.3",
5
5
  "license": "BSD-3-Clause",
6
+ "plugins": [
7
+ "@provartesting/provardx-plugins-automation",
8
+ "@provartesting/provardx-plugins-manager"
9
+ ],
6
10
  "dependencies": {
7
11
  "@oclif/core": "^3.26.2",
8
12
  "@salesforce/core": "^6.5.1",
@@ -14,7 +18,7 @@
14
18
  "fast-xml-parser": "^4.3.6",
15
19
  "jsonschema": "^1.4.1",
16
20
  "node-stream-zip": "^1.15.0",
17
- "@provartesting/provardx-plugins-utils": "0.0.2-beta",
21
+ "@provartesting/provardx-plugins-utils": "1.0.0",
18
22
  "sync-request": "^6.1.0",
19
23
  "xml-js": "^1.6.11"
20
24
  },
@@ -94,7 +98,6 @@
94
98
  "docs": "sf-docs",
95
99
  "format": "wireit",
96
100
  "lint": "wireit",
97
- "postinstall": "node ./scripts/postInstall.js",
98
101
  "postpack": "shx rm -f oclif.manifest.json",
99
102
  "prepack": "sf-prepack",
100
103
  "test": "wireit",
@@ -1,18 +1,22 @@
1
- import { exec } from 'child_process';
1
+ import { execSync } from 'node:child_process';
2
2
 
3
- const commandToInstallAutomationPlugin = 'echo y | sfdx plugins:install @provartesting/provardx-plugins-automation';
4
- const commandToInstallManagerPlugin = 'echo y | sfdx plugins:install @provartesting/provardx-plugins-manager';
3
+ const commandToInstallAutomationPlugin = 'echo y | sf plugins install @provartesting/provardx-plugins-automation';
4
+ const commandToInstallManagerPlugin = 'echo y | sf plugins install @provartesting/provardx-plugins-manager';
5
5
 
6
- exec(commandToInstallAutomationPlugin, (error) => {
6
+ console.log('starting postInstall');
7
+
8
+ execSync(commandToInstallAutomationPlugin, (error) => {
7
9
  if (error) {
8
- console.error(`Error: ${error.message}`);
10
+ const errormessage = error.message ? error.message.toString('utf-8') : 'Unknown error';
11
+ console.error(`Error: ${errormessage}`);
9
12
  return;
10
13
  }
11
14
  });
12
15
 
13
- exec(commandToInstallManagerPlugin, (error) => {
16
+ execSync(commandToInstallManagerPlugin, (error) => {
14
17
  if (error) {
15
- console.error(`Error: ${error.message}`);
18
+ const errormessage = error.message ? error.message.toString('utf-8') : 'Unknown error';
19
+ console.error(`Error: ${errormessage}`);
16
20
  return;
17
21
  }
18
22
  });