Skip to content

Commit f5d71ac

Browse files
authored
fix: Prep zig for publishing (#4948)
1 parent 41a602f commit f5d71ac

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

dictionaries/zig/cspell-ext.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"name": "zig",
1010
"path": "./dict/zig.txt",
11-
"description": "Zig dictionary for cspell."
11+
"description": "Zig dictionary"
1212
}
1313
],
1414
"dictionaries": [],
@@ -25,7 +25,13 @@
2525
{
2626
"languageId": "zon",
2727
"locale": "*",
28-
"ignoreRegExpList": ["/\\.hash =.*/g"],
28+
"patterns": [
29+
{
30+
"name": "zig-hash",
31+
"pattern": "/\\.hash\\s=.*/g"
32+
}
33+
],
34+
"ignoreRegExpList": ["zig-hash"],
2935
"dictionaries": ["zig"]
3036
}
3137
],

dictionaries/zig/cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": "0.2",
33
"files": [
4-
"**/*.{md,txt}"
4+
"**/*.{md,txt,zig}"
55
],
66
"dictionaries": [
77
"zig"

dictionaries/zig/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "@cspell/dict-zig",
33
"version": "1.0.0",
4-
"description": "Zig dictionary for cspell. -- Private until verified",
5-
"private": true,
4+
"description": "Zig dictionary for cspell.",
65
"publishConfig": {
76
"access": "public",
87
"provenance": true
@@ -14,7 +13,7 @@
1413
},
1514
"scripts": {
1615
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 cspell-tools-cli build",
17-
"test": "head -n 1000 \"src/zig.txt\" | cspell -c ./cspell-ext.json \"--locale=*\" \"--languageId=zig\" stdin",
16+
"test": "cspell samples",
1817
"prepublishOnly": "echo OK",
1918
"prepare:dictionary": "pnpm run build"
2019
},
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import:
2+
- ../cspell-ext.json

0 commit comments

Comments
 (0)