@salesforce/plugin-apex 2.2.1 → 2.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.
package/README.md CHANGED
@@ -42,6 +42,7 @@ $ NODE_OPTIONS=--inspect-brk bin/dev force:apex:log:list -u myOrg@example.com
42
42
  ```
43
43
 
44
44
  <br />
45
+
45
46
  ### Running the Test Suite
46
47
 
47
48
  Test the test suite locally by building the project first and then running the tests.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.1",
2
+ "version": "2.2.3",
3
3
  "commands": {
4
4
  "apex:run": {
5
5
  "id": "apex:run",
package/package.json CHANGED
@@ -1,34 +1,32 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-apex",
3
3
  "description": "Apex commands",
4
- "version": "2.2.1",
4
+ "version": "2.2.3",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "main": "lib/index.js",
8
8
  "dependencies": {
9
- "@oclif/core": "^2.1.4",
9
+ "@oclif/core": "^2.4.0",
10
10
  "@salesforce/apex-node": "^1.6.0",
11
- "@salesforce/core": "^3.33.4",
12
- "@salesforce/sf-plugins-core": "^2.1.2",
11
+ "@salesforce/core": "^3.33.5",
12
+ "@salesforce/sf-plugins-core": "^2.2.4",
13
13
  "chalk": "^4.1.0",
14
14
  "tslib": "^2"
15
15
  },
16
16
  "devDependencies": {
17
- "@oclif/plugin-command-snapshot": "^3.3.6",
17
+ "@oclif/plugin-command-snapshot": "^3.3.8",
18
18
  "@oclif/plugin-help": "^5",
19
19
  "@salesforce/dev-config": "3.1.0",
20
- "@salesforce/dev-scripts": "^3.1.1",
21
- "@salesforce/plugin-command-reference": "^2.3.1",
20
+ "@salesforce/dev-scripts": "^4.1.2",
21
+ "@salesforce/plugin-command-reference": "^2.4.1",
22
22
  "@salesforce/prettier-config": "^0.0.2",
23
23
  "@salesforce/ts-sinon": "^1.4.4",
24
24
  "@salesforce/ts-types": "1.7.3",
25
- "@swc/core": "^1.3.35",
26
- "@types/mkdirp": "0.5.2",
27
- "@typescript-eslint/eslint-plugin": "^5.50.0",
28
- "@typescript-eslint/parser": "^5.51.0",
25
+ "@swc/core": "^1.3.39",
26
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
27
+ "@typescript-eslint/parser": "^5.53.0",
29
28
  "chai": "^4.2.0",
30
- "cross-env": "7.0.3",
31
- "eslint": "^8.32.0",
29
+ "eslint": "^8.35.0",
32
30
  "eslint-config-prettier": "^8.6.0",
33
31
  "eslint-config-salesforce": "^1.1.0",
34
32
  "eslint-config-salesforce-license": "^0.2.0",
@@ -36,18 +34,18 @@
36
34
  "eslint-plugin-header": "^3.0.0",
37
35
  "eslint-plugin-import": "^2.27.5",
38
36
  "eslint-plugin-jsdoc": "^39.3.6",
39
- "eslint-plugin-sf-plugin": "^1.8.1",
40
- "globby": "^8",
37
+ "eslint-plugin-sf-plugin": "^1.9.2",
41
38
  "husky": "^7.0.4",
42
39
  "mocha": "^9.1.3",
43
40
  "nyc": "^15.1.0",
44
- "oclif": "^3.6.5",
45
- "prettier": "^2.7.1",
41
+ "oclif": "^3.7.0",
42
+ "prettier": "^2.8.4",
46
43
  "pretty-quick": "^3.1.0",
47
44
  "shx": "^0.3.4",
48
45
  "sinon": "10.0.0",
49
46
  "ts-node": "^10.0.0",
50
- "typescript": "4.9.5"
47
+ "typescript": "4.9.5",
48
+ "wireit": "^0.9.5"
51
49
  },
52
50
  "engines": {
53
51
  "node": ">=14.0.0"
@@ -104,24 +102,20 @@
104
102
  },
105
103
  "repository": "salesforcecli/plugin-apex",
106
104
  "scripts": {
107
- "build": "sf-build",
105
+ "build": "wireit",
108
106
  "clean": "sf-clean",
109
107
  "clean-all": "sf-clean all",
110
108
  "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
111
- "compile": "sf-compile",
109
+ "compile": "wireit",
112
110
  "docs": "sf-docs",
113
- "format": "sf-format",
114
- "lint": "sf-lint",
111
+ "format": "wireit",
112
+ "lint": "wireit",
115
113
  "postpack": "shx rm -f oclif.manifest.json",
116
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference",
117
114
  "prepack": "sf-prepack",
118
115
  "prepare": "sf-install",
119
- "pretest": "sf-compile-test",
120
- "test": "sf-test",
121
- "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
122
- "test:deprecation-policy": "./bin/dev snapshot:compare",
123
- "test:json-schema": "./bin/dev schema:compare",
116
+ "test": "wireit",
124
117
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
118
+ "test:only": "wireit",
125
119
  "version": "oclif readme"
126
120
  },
127
121
  "lint-staged": {
@@ -129,8 +123,114 @@
129
123
  "eslint -c .eslintrc.json --fix"
130
124
  ]
131
125
  },
126
+ "wireit": {
127
+ "build": {
128
+ "dependencies": [
129
+ "compile",
130
+ "lint"
131
+ ]
132
+ },
133
+ "compile": {
134
+ "command": "tsc -p . --pretty --incremental",
135
+ "files": [
136
+ "src/**/*.ts",
137
+ "tsconfig.json",
138
+ "messages/**"
139
+ ],
140
+ "output": [
141
+ "lib/**",
142
+ "*.tsbuildinfo"
143
+ ],
144
+ "clean": "if-file-deleted"
145
+ },
146
+ "format": {
147
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
148
+ "files": [
149
+ "src/**/*.ts",
150
+ "test/**/*.ts",
151
+ "schemas/**/*.json",
152
+ "command-snapshot.json",
153
+ ".prettier*"
154
+ ],
155
+ "output": []
156
+ },
157
+ "lint": {
158
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
159
+ "files": [
160
+ "src/**/*.ts",
161
+ "test/**/*.ts",
162
+ "messages/**",
163
+ ".eslint*"
164
+ ],
165
+ "output": []
166
+ },
167
+ "test:compile": {
168
+ "command": "tsc -p \"./test\" --pretty",
169
+ "files": [
170
+ "test/**/*.ts",
171
+ "tsconfig.json",
172
+ "test/tsconfig.json"
173
+ ],
174
+ "output": []
175
+ },
176
+ "test": {
177
+ "dependencies": [
178
+ "test:compile",
179
+ "test:only",
180
+ "test:command-reference",
181
+ "test:deprecation-policy",
182
+ "lint",
183
+ "test:json-schema"
184
+ ]
185
+ },
186
+ "test:only": {
187
+ "command": "nyc mocha \"test/**/*.test.ts\"",
188
+ "env": {
189
+ "FORCE_COLOR": "2"
190
+ },
191
+ "files": [
192
+ "test/**/*.ts",
193
+ "src/**/*.ts",
194
+ "tsconfig.json",
195
+ ".mocha*",
196
+ "test/tsconfig.json",
197
+ "!*.nut.ts",
198
+ ".nycrc"
199
+ ],
200
+ "output": []
201
+ },
202
+ "test:command-reference": {
203
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
204
+ "files": [
205
+ "src/**/*.ts",
206
+ "messages/**",
207
+ "package.json"
208
+ ],
209
+ "output": [
210
+ "tmp/root"
211
+ ]
212
+ },
213
+ "test:deprecation-policy": {
214
+ "command": "\"./bin/dev\" snapshot:compare",
215
+ "files": [
216
+ "src/**/*.ts"
217
+ ],
218
+ "output": [],
219
+ "dependencies": [
220
+ "compile"
221
+ ]
222
+ },
223
+ "test:json-schema": {
224
+ "command": "\"./bin/dev\" schema:compare",
225
+ "files": [
226
+ "src/**/*.ts",
227
+ "schemas"
228
+ ],
229
+ "output": []
230
+ }
231
+ },
132
232
  "sfdx": {
133
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.2.1.crt",
134
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.2.1.sig"
233
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.2.3.crt",
234
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-apex/2.2.3.sig"
135
235
  }
136
236
  }