cSpell:
cat package.json | jq -r '.devDependencies, .dependencies | keys_unsorted | map(gsub("@"; "")) | map(split("/")) | flatten | unique[]' > ./.vscode/packages.txt
{
"cSpell.customDictionaries": {
"project-words": {
"name": "packages",
"description": "Words used by packages in this project",
"path": "${workspaceRoot}/.vscode/packages.txt",
"addWords": true
},
"custom": true
}
}