|
205 | 205 | cd "$TOP_LEVEL/core"
|
206 | 206 |
|
207 | 207 | # Ensure JavaScript development dependencies are installed.
|
208 |
| -yarn check -s 2>/dev/null |
209 |
| -if [ "$?" -ne "0" ]; then |
210 |
| - printf "Drupal's JavaScript development dependencies are not installed or cannot be resolved. Run 'yarn install' inside the core directory, or 'yarn check -s' to list other errors.\n" |
211 |
| - DEPENDENCIES_NEED_INSTALLING=1; |
212 |
| -fi |
213 |
| - |
214 |
| -if [ $DEPENDENCIES_NEED_INSTALLING -ne 0 ]; then |
215 |
| - exit 1; |
216 |
| -fi |
| 208 | +yarn --version |
| 209 | +yarn >/dev/null |
217 | 210 |
|
218 | 211 | # Check all files for spelling in one go for better performance.
|
219 | 212 | if [[ $CSPELL_DICTIONARY_FILE_CHANGED == "1" ]] ; then
|
220 | 213 | printf "\nRunning spellcheck on *all* files.\n"
|
221 |
| - yarn run -s spellcheck:core --no-must-find-files --no-progress |
| 214 | + yarn run spellcheck:core --no-must-find-files --no-progress |
222 | 215 | else
|
223 | 216 | # Check all files for spelling in one go for better performance. We pipe the
|
224 | 217 | # list files in so we obey the globs set on the spellcheck:core command in
|
225 | 218 | # core/package.json.
|
226 |
| - echo "${ABS_FILES}" | tr ' ' '\n' | yarn run -s spellcheck:core --no-must-find-files --file-list stdin |
| 219 | + echo "${ABS_FILES}" | tr ' ' '\n' | yarn run spellcheck:core --no-must-find-files --root --file-list $TOP_LEVEL $ABS_FILES >/dev/null stdin |
227 | 220 | fi
|
228 | 221 |
|
229 | 222 | if [ "$?" -ne "0" ]; then
|
|
285 | 278 | # When the eslint config has been changed, then eslint must check all files.
|
286 | 279 | if [[ $ESLINT_CONFIG_PASSING_FILE_CHANGED == "1" ]]; then
|
287 | 280 | cd "$TOP_LEVEL/core"
|
288 |
| - yarn run -s lint:core-js-passing "$TOP_LEVEL/core" |
| 281 | + yarn run lint:core-js-passing "$TOP_LEVEL/core" |
289 | 282 | CORRECTJS=$?
|
290 | 283 | if [ "$CORRECTJS" -ne "0" ]; then
|
291 | 284 | # If there are failures set the status to a number other than 0.
|
|
304 | 297 | # When the stylelint config has been changed, then stylelint must check all files.
|
305 | 298 | if [[ $STYLELINT_CONFIG_FILE_CHANGED == "1" ]]; then
|
306 | 299 | cd "$TOP_LEVEL/core"
|
307 |
| - yarn run -s lint:css |
| 300 | + yarn run lint:css |
308 | 301 | if [ "$?" -ne "0" ]; then
|
309 | 302 | # If there are failures set the status to a number other than 0.
|
310 | 303 | FINAL_STATUS=1
|
|
325 | 318 | # is in sync and conform to expectations.
|
326 | 319 | if [[ "$DRUPALCI" == "1" ]] && [[ $CKEDITOR5_PLUGINS_CHANGED == "1" ]]; then
|
327 | 320 | cd "$TOP_LEVEL/core"
|
328 |
| - yarn run -s check:ckeditor5 |
| 321 | + yarn run check:ckeditor5 |
329 | 322 | if [ "$?" -ne "0" ]; then
|
330 | 323 | # If there are failures set the status to a number other than 0.
|
331 | 324 | FINAL_STATUS=1
|
|
0 commit comments