@ds-sfdc/sfparty 1.4.11 → 1.4.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ds-sfdc/sfparty",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "description": "Salesforce metadata XML splitter for CI/CD",
5
5
  "type": "module",
6
6
  "repository": {
@@ -23,6 +23,7 @@
23
23
  "author": "Tim Paulaskas",
24
24
  "license": "BSD-3-Clause",
25
25
  "dependencies": {
26
+ "@ds-sfdc/sfparty": "^1.4.12",
26
27
  "axios": "^1.2.2",
27
28
  "cli-color": "^2.0.3",
28
29
  "cli-spinners": "^2.7.0",
@@ -43,6 +43,13 @@ export async function checkVersion({
43
43
  // do not display errors
44
44
  }
45
45
 
46
+ let updateCommand
47
+ if (process.env.npm_lifecycle_script === 'sfparty') {
48
+ updateCommand = 'npm i @ds-sfdc/sfparty@latest'
49
+ } else {
50
+ updateCommand = 'sfparty update'
51
+ }
52
+
46
53
  if (result !== undefined) {
47
54
  const latestVersion = result['dist-tags'].latest
48
55
  if (semver.gt(latestVersion, currentVersion)) {
@@ -53,7 +60,7 @@ export async function checkVersion({
53
60
  if (!update) {
54
61
  console.log(
55
62
  `Please upgrade by running ${clc.cyanBright(
56
- 'sfparty update',
63
+ updateCommand,
57
64
  )}`,
58
65
  )
59
66
  return 'A newer version'