|
15 | 15 | "devDependencies": { |
16 | 16 | "@oclif/plugin-command-snapshot": "^5.0.2", |
17 | 17 | "@salesforce/cli-plugins-testkit": "^5.1.0", |
18 | | - "@salesforce/dev-scripts": "^8.0.0", |
| 18 | + "@salesforce/dev-scripts": "^8.1.0", |
19 | 19 | "@salesforce/plugin-command-reference": "^3.0.49", |
20 | 20 | "@salesforce/ts-sinon": "1.4.19", |
21 | 21 | "@types/shelljs": "^0.8.14", |
|
101 | 101 | "compile": "wireit", |
102 | 102 | "docs": "sf-docs", |
103 | 103 | "format": "wireit", |
| 104 | + "link-check": "wireit", |
104 | 105 | "lint": "wireit", |
105 | 106 | "postpack": "shx rm -f oclif.manifest.json oclif.lock", |
106 | 107 | "prepack": "sf-prepack", |
|
165 | 166 | "test:command-reference", |
166 | 167 | "test:deprecation-policy", |
167 | 168 | "lint", |
168 | | - "test:json-schema" |
| 169 | + "test:json-schema", |
| 170 | + "link-check" |
169 | 171 | ] |
170 | 172 | }, |
171 | 173 | "test:command-reference": { |
172 | | - "command": "ts-node \"./bin/dev.js\" commandreference:generate --erroronwarnings", |
| 174 | + "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings", |
173 | 175 | "files": [ |
174 | 176 | "src/**/*.ts", |
175 | 177 | "messages/**", |
|
180 | 182 | ] |
181 | 183 | }, |
182 | 184 | "test:deprecation-policy": { |
183 | | - "command": "ts-node \"./bin/dev.js\" snapshot:compare", |
| 185 | + "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:compare", |
184 | 186 | "files": [ |
185 | 187 | "src/**/*.ts" |
186 | 188 | ], |
|
190 | 192 | ] |
191 | 193 | }, |
192 | 194 | "test:json-schema": { |
193 | | - "command": "ts-node \"./bin/dev.js\" schema:compare", |
| 195 | + "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare", |
194 | 196 | "files": [ |
195 | 197 | "src/**/*.ts", |
196 | 198 | "schemas" |
|
219 | 221 | ".nycrc" |
220 | 222 | ], |
221 | 223 | "output": [] |
| 224 | + }, |
| 225 | + "link-check": { |
| 226 | + "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error", |
| 227 | + "files": [ |
| 228 | + "./*.md", |
| 229 | + "./!(CHANGELOG).md", |
| 230 | + "messages/**/*.md" |
| 231 | + ], |
| 232 | + "output": [] |
222 | 233 | } |
223 | 234 | }, |
224 | 235 | "exports": "./lib/index.js", |
|
0 commit comments