CSpell fails when drupal-dictionary.txt is missing
Problem/Motivation
Somehow my composer job was installing drupal/core:10.2.0-alpha1 which does not have drupal-dictionary.txt. Presumably the same problem exists for anyone testing against 10.1.x.
This is caused by prepare-cspell.php adding these dictionaries to the cspell json.
Steps to reproduce
Probably can just set _TARGET_CORE to 10.1.
Proposed resolution
Add a file_exists check in prepare-cspell.php
Remaining tasks
User interface changes
API changes
Data model changes
Related issue: Issue #3458238
Edited by drupalbot