Skip to content

Commit ad66d27

Browse files
fix: use npx cspell instead of adding to devDependencies
- Avoids yarn.lock sync issue that causes CI failure - npx downloads cspell on-the-fly without requiring it in package.json - Fixes 'YN0028: The lockfile would have been modified' error
1 parent c53c4d3 commit ad66d27

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,4 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

3232
- name: Run spell check
33-
run: jlpm run spell-check
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: npx [email protected] "**/*.{md,txt,json,js,ts,tsx,jsx,yml,yaml}"

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
"stylelint": "jlpm stylelint:check --fix",
5454
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
5555
"test": "jest --coverage",
56-
"spell-check": "cspell \"**/*.{md,txt,json,js,ts,tsx,jsx,yml,yaml}\"",
57-
"spell-check:fix": "cspell \"**/*.{md,txt,json,js,ts,tsx,jsx,yml,yaml}\" --no-exit-code --show-suggestions",
5856
"watch": "run-p watch:src watch:labextension",
5957
"watch:src": "tsc -w --sourceMap",
6058
"watch:labextension": "jupyter labextension watch ."
@@ -72,7 +70,6 @@
7270
"zod": "^4.1.11"
7371
},
7472
"devDependencies": {
75-
"cspell": "9.2.1",
7673
"@jupyterlab/builder": "^4.0.0",
7774
"@jupyterlab/testutils": "^4.0.0",
7875
"@types/jest": "^29.2.0",

0 commit comments

Comments
 (0)