Skip to content

Commit 3998b1f

Browse files
authored
Merge pull request #886 from salesforcecli/devScripts2023-12-08
refactor: devScripts update
2 parents 6b066ab + 37f7b6f commit 3998b1f

File tree

2 files changed

+158
-40
lines changed

2 files changed

+158
-40
lines changed

package.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"devDependencies": {
1616
"@oclif/plugin-command-snapshot": "^5.0.2",
1717
"@salesforce/cli-plugins-testkit": "^5.1.0",
18-
"@salesforce/dev-scripts": "^8.0.0",
18+
"@salesforce/dev-scripts": "^8.1.0",
1919
"@salesforce/plugin-command-reference": "^3.0.49",
2020
"@salesforce/ts-sinon": "1.4.19",
2121
"@types/shelljs": "^0.8.14",
@@ -101,6 +101,7 @@
101101
"compile": "wireit",
102102
"docs": "sf-docs",
103103
"format": "wireit",
104+
"link-check": "wireit",
104105
"lint": "wireit",
105106
"postpack": "shx rm -f oclif.manifest.json oclif.lock",
106107
"prepack": "sf-prepack",
@@ -165,11 +166,12 @@
165166
"test:command-reference",
166167
"test:deprecation-policy",
167168
"lint",
168-
"test:json-schema"
169+
"test:json-schema",
170+
"link-check"
169171
]
170172
},
171173
"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",
173175
"files": [
174176
"src/**/*.ts",
175177
"messages/**",
@@ -180,7 +182,7 @@
180182
]
181183
},
182184
"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",
184186
"files": [
185187
"src/**/*.ts"
186188
],
@@ -190,7 +192,7 @@
190192
]
191193
},
192194
"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",
194196
"files": [
195197
"src/**/*.ts",
196198
"schemas"
@@ -219,6 +221,15 @@
219221
".nycrc"
220222
],
221223
"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": []
222233
}
223234
},
224235
"exports": "./lib/index.js",

0 commit comments

Comments
 (0)