sfdx-predeploy-hook-org-env 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +9 -3
  2. package/package.json +3 -9
package/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  > sfdx predeploy hook to export target org details as environment variables
4
4
 
5
+ > [!IMPORTANT]
6
+ >
7
+ > This plugin currently only works with `sfdx force:source:push` and `sfdx force:source:deploy`.
8
+ >
9
+ > The `sf project deploy start` command does not (yet) emit the `predeploy` hook.
10
+
5
11
  ## Use Case
6
12
 
7
13
  Example:
@@ -106,20 +112,20 @@ sfdx force source deploy -p "Portal:Customer Portal" -u my-target-org3
106
112
 
107
113
  ## Debugging
108
114
 
109
- To preview the environment variables, set the environment variable `DEBUG` to `sfdx:sfdx-predeploy-hook-org-env:hooks:predeploy` and perform a **validation deployment** to the target org.
115
+ To preview the environment variables, set the environment variable `DEBUG` to `*:sfdx-predeploy-hook-org-env:*` and perform a **validation deployment** to the target org.
110
116
 
111
117
  **Example**
112
118
 
113
119
  MacOS/Linux:
114
120
 
115
121
  ```console
116
- $ DEBUG=sfdx:sfdx-predeploy-hook-org-env:hooks:predeploy sfdx force source deploy --checkonly -u mytargetorg -p force-app
122
+ $ DEBUG="*:sfdx-predeploy-hook-org-env:*" sfdx force source deploy --checkonly -u mytargetorg -p force-app
117
123
  ```
118
124
 
119
125
  Windows PowerShell:
120
126
 
121
127
  ```powershell
122
- $env:DEBUG=sfdx:sfdx-predeploy-hook-org-env:hooks:predeploy
128
+ $env:DEBUG="*:sfdx-predeploy-hook-org-env:*"
123
129
  sfdx force source deploy --checkonly -u mytargetorg -p force-app
124
130
  ```
125
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfdx-predeploy-hook-org-env",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "sfdx predeploy hook to export target org details as environment variables",
5
5
  "license": "MIT",
6
6
  "repository": "amtrack/sfdx-predeploy-hook-org-env",
@@ -14,14 +14,8 @@
14
14
  "predeploy": "./src/hook.mjs"
15
15
  }
16
16
  },
17
- "dependencies": {},
18
- "peerDependencies": {
19
- "@oclif/core": "2.x",
20
- "@salesforce/core": "3.x"
21
- },
22
- "devDependencies": {
23
- "@oclif/core": "2.8.2",
24
- "@salesforce/core": "3.34.8"
17
+ "dependencies": {
18
+ "@salesforce/sf-plugins-core": "4.0.0"
25
19
  },
26
20
  "scripts": {
27
21
  "test:e2e": "bash scripts/test-e2e.sh"