Skip to content

Commit 6d4e1df

Browse files
committed
chore: bump deps, wireit
1 parent f471479 commit 6d4e1df

3 files changed

Lines changed: 412 additions & 354 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ docs
3131
package.json.bak.
3232

3333
# -- CLEAN ALL
34+
*.tsbuildinfo
35+
.eslintcache
36+
.wireit
3437
node_modules
3538

3639
# --

package.json

Lines changed: 107 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "lib/index.js",
77
"bugs": "https://github.com/forcedotcom/cli/issues",
88
"dependencies": {
9-
"@oclif/core": "^2.0.7",
9+
"@oclif/core": "^2.1.1",
1010
"@salesforce/core": "^3.33.1",
1111
"@salesforce/sf-plugins-core": "^2.0.1",
1212
"tslib": "^2"
@@ -16,7 +16,7 @@
1616
"@oclif/plugin-help": "^5.1.22",
1717
"@salesforce/cli-plugins-testkit": "^3.2.18",
1818
"@salesforce/dev-config": "^3.0.1",
19-
"@salesforce/dev-scripts": "^3.1.0",
19+
"@salesforce/dev-scripts": "^4.0.0-beta.9",
2020
"@salesforce/plugin-command-reference": "^2.2.9",
2121
"@salesforce/prettier-config": "^0.0.2",
2222
"@salesforce/ts-sinon": "1.4.4",
@@ -32,7 +32,7 @@
3232
"eslint-plugin-header": "^3.0.0",
3333
"eslint-plugin-import": "2.26.0",
3434
"eslint-plugin-jsdoc": "^39.8.0",
35-
"eslint-plugin-sf-plugin": "^1.5.1",
35+
"eslint-plugin-sf-plugin": "^1.8.1",
3636
"husky": "^7.0.4",
3737
"mocha": "^9.1.3",
3838
"nyc": "^15.1.0",
@@ -42,7 +42,8 @@
4242
"shx": "0.3.4",
4343
"sinon": "10.0.0",
4444
"ts-node": "^10.0.0",
45-
"typescript": "^4.9.5"
45+
"typescript": "^4.9.5",
46+
"wireit": "^0.9.3"
4647
},
4748
"config": {},
4849
"engines": {
@@ -87,27 +88,119 @@
8788
},
8889
"repository": "salesforcecli/plugin-schema",
8990
"scripts": {
90-
"build": "sf-build",
91+
"build": "wireit",
9192
"clean": "sf-clean",
9293
"clean-all": "sf-clean all",
9394
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
94-
"compile": "sf-compile",
95+
"compile": "wireit",
9596
"docs": "sf-docs",
96-
"format": "sf-format",
97-
"lint": "sf-lint",
97+
"format": "wireit",
98+
"lint": "wireit",
9899
"postpack": "shx rm -f oclif.manifest.json",
99-
"posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference",
100100
"prepack": "sf-prepack",
101101
"prepare": "sf-install",
102-
"pretest": "sf-compile-test",
103-
"test": "sf-test",
104-
"test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
105-
"test:deprecation-policy": "./bin/dev snapshot:compare",
106-
"test:json-schema": "./bin/dev schema:compare",
102+
"test": "wireit",
103+
"test:command-reference": "wireit",
104+
"test:compile": "wireit",
105+
"test:deprecation-policy": "wireit",
106+
"test:json-schema": "wireit",
107107
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
108+
"test:only": "wireit",
108109
"version": "oclif readme"
109110
},
110111
"publishConfig": {
111112
"access": "public"
113+
},
114+
"wireit": {
115+
"build": {
116+
"dependencies": [
117+
"compile",
118+
"lint"
119+
]
120+
},
121+
"compile": {
122+
"command": "tsc -p . --pretty --incremental",
123+
"files": [
124+
"src/**/*.ts",
125+
"tsconfig.json",
126+
"messages/**"
127+
],
128+
"output": [
129+
"lib/**",
130+
"*.tsbuildinfo"
131+
],
132+
"clean": "if-file-deleted"
133+
},
134+
"format": {
135+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\""
136+
},
137+
"lint": {
138+
"command": "eslint src test --color --cache --cache-location .eslintcache",
139+
"files": [
140+
"src/**/*.ts",
141+
"test/**/*.ts",
142+
"messages/**",
143+
".eslintignore",
144+
".eslintrc.js"
145+
],
146+
"output": []
147+
},
148+
"test:compile": {
149+
"command": "tsc -p \"./test\" --pretty",
150+
"files": [
151+
"test/**/*.ts",
152+
"tsconfig.json",
153+
"test/tsconfig.json"
154+
],
155+
"output": []
156+
},
157+
"test": {
158+
"dependencies": [
159+
"test:compile",
160+
"test:only",
161+
"test:command-reference",
162+
"test:deprecation-policy",
163+
"lint",
164+
"test:json-schema"
165+
]
166+
},
167+
"test:only": {
168+
"command": "nyc mocha \"test/**/*.test.ts\"",
169+
"files": [
170+
"test/**/*.ts",
171+
"src/**/*.ts",
172+
"tsconfig.json",
173+
"test/tsconfig.json"
174+
],
175+
"output": []
176+
},
177+
"test:command-reference": {
178+
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
179+
"files": [
180+
"src/**/*.ts",
181+
"messages/**"
182+
],
183+
"output": [
184+
"tmp/root"
185+
]
186+
},
187+
"test:deprecation-policy": {
188+
"command": "\"./bin/dev\" snapshot:compare",
189+
"files": [
190+
"src/**/*.ts"
191+
],
192+
"output": [],
193+
"dependencies": [
194+
"compile"
195+
]
196+
},
197+
"test:json-schema": {
198+
"command": "\"./bin/dev\" schema:compare",
199+
"files": [
200+
"src/**/*.ts",
201+
"schemas"
202+
],
203+
"output": []
204+
}
112205
}
113206
}

0 commit comments

Comments
 (0)