Skip to content

Commit 077cb9d

Browse files
authored
chore: work towards building in PowerShell (streetsidesoftware#2325)
1 parent fd6bb05 commit 077cb9d

File tree

84 files changed

+140
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+140
-124
lines changed

dictionaries/ada/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"build": "cspell-tools-cli compile --keep-raw-case src/ada.txt --no-compress -o ./dict",
1515
"test": "pnpm run test-dict && pnpm run test-samples",
16-
"test-dict": "head -n 100 src/ada.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=ada stdin",
16+
"test-dict": "shx head -n 100 src/ada.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=ada stdin",
1717
"test-samples": "cspell \"samples/**\"",
1818
"prepublishOnly": "echo pre-publish",
1919
"prepare": "pnpm run build"

dictionaries/al/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli build",
15-
"test": "head -n 1000 \"src/al.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=AL\" stdin",
15+
"test": "shx head -n 1000 \"src/al.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=AL\" stdin",
1616
"prepublishOnly": "echo OK",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/ar/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"./cspell-ext.json": "./cspell-ext.json"
1212
},
1313
"scripts": {
14-
"build": "cat source-files.txt | xargs cross-env NODE_OPTIONS=--max_old_space_size=12288 cspell-tools-cli compile --trie3 -x compound -o . -M ar -m 5 --no-compress && pnpm run gen-checksum",
14+
"build": "shx cat source-files.txt | xargs cross-env NODE_OPTIONS=--max_old_space_size=12288 cspell-tools-cli compile --trie3 -x compound -o . -M ar -m 5 --no-compress && pnpm run gen-checksum",
1515
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1616
"conditional-build": "pnpm run --silent checksum || pnpm run build",
1717
"lint": "pnpm prettier -w \"**/*.{md,json}\"",
18-
"gen-checksum": "cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
18+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
1919
"test-ar": "hunspell-reader words -m 0 -n 1000 \"src/ar.dic\" | cspell -v -c ./cspell-ext.json \"--local=ar\" \"--languageId=*\" stdin",
2020
"test-samples": "cspell -v -c ./cspell-ext.json --local=ar,en \"samples/**\"",
2121
"test": "pnpm run test-ar && pnpm run test-samples",
2222
"sync": "bash ./scripts/sync.sh && pnpm lint",
23-
"prepare": "gzip -f -k *.trie",
23+
"prepare": "cspell-tools-cli gzip *.trie",
2424
"prepublishOnly": "pnpm run conditional-build && pnpm test"
2525
},
2626
"repository": {

dictionaries/aws/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools compile \"aws.txt\" -o .",
15-
"test": "head -n 100 \"aws.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=aws\" stdin",
15+
"test": "shx head -n 100 \"aws.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=aws\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/bash/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli build",
15-
"test": "head -n 100 src/bash-words.txt | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=shellscript\" stdin",
15+
"test": "shx head -n 100 src/bash-words.txt | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=shellscript\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/bg_BG/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": "cspell-tools-cli build && pnpm run zip",
1515
"test": "hunspell-reader words -n 1000 \"src/bg_BG.dic\" | cspell -v -c ./cspell-ext.json \"--local=bg\" \"--languageId=*\" stdin",
1616
"prepare": "pnpm run zip",
17-
"zip": "gzip -f -k dict/*.trie",
17+
"zip": "cspell-tools-cli gzip dict/*.trie",
1818
"prepublishOnly": "echo pre-publish"
1919
},
2020
"repository": {

dictionaries/ca/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"build": "cspell-tools-cli build && pnpm prepare",
1515
"test": "hunspell-reader words -n 1000 \"src/ca.dic\" | cspell -v -c ./cspell-ext.json --local=ca --languageId=* stdin",
16-
"prepare": "gzip -f -k *.trie",
16+
"prepare": "cspell-tools-cli gzip *.trie",
1717
"prepublishOnly": "echo pre-publish"
1818
},
1919
"repository": {

dictionaries/city-names-finland/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools compile \"city-names-finland.txt\" -o .",
15-
"test": "head -n 100 \"city-names-finland.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=* stdin",
15+
"test": "shx head -n 100 \"city-names-finland.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=* stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/clojure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 cspell-tools-cli compile \"src/clojure.txt\" -o .",
15-
"test": "head -n 1000 \"src/clojure.txt\" | cspell -v -c ./cspell-ext.json \"--local=en\" \"--languageId=clojure\" stdin",
15+
"test": "shx head -n 1000 \"src/clojure.txt\" | cspell -v -c ./cspell-ext.json \"--local=en\" \"--languageId=clojure\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/companies/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli compile --no-compress --split \"src/companies.txt\" -o ./dict",
15-
"test": "cat \"src/companies.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=* stdin",
15+
"test": "shx cat \"src/companies.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=* stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/cpp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"scripts": {
1414
"build": "cspell-tools-cli build",
1515
"build-cpp": "cspell-tools compile \"src/cpp.txt\" -o .",
16-
"build-cpp-refined": "cat source-files-cpp-refined.txt | xargs cspell-tools-cli compile --no-split --keep-raw-case --merge cpp-refined -o .",
17-
"test": "head -n 1000 \"src/cpp.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=cpp stdin",
16+
"build-cpp-refined": "shx cat source-files-cpp-refined.txt | xargs cspell-tools-cli compile --no-split --keep-raw-case --merge cpp-refined -o .",
17+
"test": "shx head -n 1000 \"src/cpp.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=cpp stdin",
1818
"prepublishOnly": "echo pre-publish",
1919
"prepare": "pnpm run build"
2020
},

dictionaries/cryptocurrencies/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools compile \"cryptocurrencies.txt\" -o .",
15-
"test": "head -n 100 \"cryptocurrencies.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=*\" stdin",
15+
"test": "shx head -n 100 \"cryptocurrencies.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=*\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/cs_CZ/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"build": "cspell-tools-cli build && pnpm prepare",
1515
"test": "hunspell-reader words -n 1000 src/Czech.dic | cspell -v -c ./cspell-ext.json --local=cs --languageId=* stdin",
16-
"prepare": "gzip -f -k *.trie",
16+
"prepare": "cspell-tools-cli gzip *.trie",
1717
"prepublishOnly": "echo pre-publish"
1818
},
1919
"repository": {

dictionaries/csharp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli compile --split \"csharp.txt\" -o .",
15-
"test": "head -n 100 \"csharp.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=csharp\" stdin",
15+
"test": "shx head -n 100 \"csharp.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=csharp\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli compile --keep-raw-case src/css.txt --no-compress -o ./dict",
15-
"test": "head -n 100 src/css.txt | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=css\" stdin",
15+
"test": "shx head -n 100 src/css.txt | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=css\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/da_DK/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"sync": "pnpm cpy \"node_modules/dictionary-da/**\" src/hunspell",
1616
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1717
"conditional-build": "pnpm run --silent checksum || pnpm run build",
18-
"gen-checksum": "cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
18+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
1919
"test-de": "hunspell-reader words -n 1000 \"src/hunspell/index.dic\" | cspell -v -c ./cspell-ext.json --local=da-DK --languageId=* stdin",
2020
"test-samples": "cspell -c ./cspell-ext.json --local=da-dk,en \"samples/**\"",
2121
"test": "pnpm run test-de && pnpm run test-samples",

dictionaries/dart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 cspell-tools-cli compile \"src/dart.txt\" -o .",
1515
"test": "npm run test-dict && npm run test-samples",
1616
"test-samples": "cspell \"samples/**/*.dart\"",
17-
"test-dict": "head -n 1000 \"src/dart.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=dart\" stdin",
17+
"test-dict": "shx head -n 1000 \"src/dart.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=dart\" stdin",
1818
"prepublishOnly": "echo pre-publish",
1919
"prepare": "pnpm run build"
2020
},

dictionaries/de_AT/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"sync": "pnpm cpy \"node_modules/dictionary-de-at/**\" src/hunspell",
1616
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1717
"conditional-build": "pnpm run --silent checksum || pnpm run build",
18-
"gen-checksum": "cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
18+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
1919
"test-de": "hunspell-reader words -n 1000 \"src/hunspell/index.dic\" | cspell -v -c ./cspell-ext.json --local=de-AT --languageId=* stdin",
2020
"test-samples": "cspell -v -c ./cspell-ext.json --local=de-at,en \"samples/**\"",
2121
"test": "pnpm run test-de && pnpm run test-samples",
22-
"prepare": "gzip -f -k *.trie",
22+
"prepare": "cspell-tools-cli gzip *.trie",
2323
"prepublishOnly": "pnpm run conditional-build && pnpm test"
2424
},
2525
"repository": {

dictionaries/de_CH/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"sync": "pnpm cpy \"node_modules/dictionary-de-ch/**\" src/hunspell",
1616
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1717
"conditional-build": "pnpm run --silent checksum || pnpm run build",
18-
"gen-checksum": "cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
18+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
1919
"test-de": "hunspell-reader words -n 1000 \"src/hunspell/index.dic\" | cspell -v -c ./cspell-ext.json --local=de --languageId=* stdin",
2020
"test-samples": "cspell -v -c ./cspell-ext.json --local=de,en \"samples/**\"",
2121
"test": "pnpm run test-de && pnpm run test-samples",
22-
"prepare": "gzip -f -k *.trie",
22+
"prepare": "cspell-tools-cli gzip *.trie",
2323
"prepublishOnly": "pnpm run conditional-build && pnpm test"
2424
},
2525
"repository": {

dictionaries/de_DE/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"sync": "pnpm cpy \"node_modules/dictionary-de/**\" src/hunspell",
1616
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1717
"conditional-build": "pnpm run --silent checksum || pnpm run build",
18-
"gen-checksum": "cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
18+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | xargs cspell-tools-cli shasum > checksum.txt",
1919
"test-de": "hunspell-reader words -n 1000 \"src/hunspell/index.dic\" | cspell -v -c ./cspell-ext.json --local=de --languageId=* stdin",
2020
"test-de-old": "hunspell-reader words -n 1000 \"src/German_de_DE.dic\" | cspell -v -c ./cspell-ext.json --local=de --languageId=* stdin",
2121
"test-samples": "cspell -v -c ./cspell-ext.json --local=de,en \"samples/**\"",
2222
"test": "pnpm run test-de && pnpm run test-samples && pnpm run test-de-old",
23-
"prepare": "gzip -f -k *.trie",
23+
"prepare": "cspell-tools-cli gzip *.trie",
2424
"prepublishOnly": "pnpm run conditional-build && pnpm test"
2525
},
2626
"scriptsX": {

dictionaries/django/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli compile --keep-raw-case \"src/*.txt\" -M django --no-compress -o ./dict",
15-
"test": "head -n 100 src/django.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=python stdin",
15+
"test": "shx head -n 100 src/django.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=python stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/docker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 cspell-tools-cli compile \"src/docker-words.txt\" -o .",
15-
"test": "head -n 1000 \"src/docker-words.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=dockerfile\" stdin",
15+
"test": "shx head -n 1000 \"src/docker-words.txt\" | cspell -v -c ./cspell-ext.json \"--local=*\" \"--languageId=dockerfile\" stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/dotnet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli build",
15-
"test": "head -n 100 src/dotnet.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=cs stdin",
15+
"test": "shx head -n 100 src/dotnet.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=cs stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/el/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build-dictionary": "cross-env NODE_OPTIONS=--max_old_space_size=4096 cspell-tools compile-trie --merge el_GR src/hunspell/el-GR.dic src/Greek.txt src/Greek.ALLCAPS.txt -o .",
1616
"build": "pnpm run compile-all-caps && pnpm run build-dictionary",
1717
"prepublishOnly": "echo pre-publish",
18-
"test": "head -n 1000 ./src/Greek.txt | cspell -v -c cspell-ext.json --local=el stdin"
18+
"test": "shx head -n 1000 ./src/Greek.txt | cspell -v -c cspell-ext.json --local=el stdin"
1919
},
2020
"repository": {
2121
"type": "git",

dictionaries/elixir/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"scripts": {
1414
"build": "cspell-tools-cli compile --keep-raw-case src/elixir.txt --no-compress -o ./dict",
15-
"test": "head -n 100 src/elixir.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=elixir stdin",
15+
"test": "shx head -n 100 src/elixir.txt | cspell -v -c ./cspell-ext.json --local=* --languageId=elixir stdin",
1616
"prepublishOnly": "echo pre-publish",
1717
"prepare": "pnpm run build"
1818
},

dictionaries/en_AU/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1818
"compile": "cspell-tools-cli build && pnpm run gen-checksum",
1919
"conditional-build": "pnpm run sync && pnpm run --silent checksum || pnpm run build",
20-
"gen-checksum": "cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21-
"prepare": "gzip -f -k *.trie",
20+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21+
"prepare": "cspell-tools-cli gzip *.trie",
2222
"prepublishOnly": "echo pre-publish",
2323
"test-text": "cspell -v -c ./cspell-ext.json --local=en-au --languageId=* \"tests/*.txt\"",
2424
"test": "pnpm run test-text"

dictionaries/en_CA/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"checksum": "cspell-tools-cli shasum -c checksum.txt",
1818
"compile": "cspell-tools-cli build && pnpm run gen-checksum",
1919
"conditional-build": "pnpm run sync && pnpm run --silent checksum || pnpm run build",
20-
"gen-checksum": "cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21-
"prepare": "gzip -f -k *.trie",
20+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21+
"prepare": "cspell-tools-cli gzip *.trie",
2222
"prepublishOnly": "echo pre-publish",
2323
"test-text": "cspell -v -c ./cspell-ext.json --local=en-ca --languageId=* \"tests/*.txt\"",
2424
"test": "pnpm run test-text"

dictionaries/en_GB-MIT/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"scripts": {
1414
"build": "pnpm run compile",
1515
"checksum": "cspell-tools-cli shasum -c checksum.txt",
16-
"compile": "cat source-files.txt | xargs cspell-tools-cli compile --trie3 -x compound --merge en_GB -o . --no-compress && pnpm run gen-checksum",
16+
"compile": "shx cat source-files.txt | xargs cspell-tools-cli compile --trie3 -x compound --merge en_GB -o . --no-compress && pnpm run gen-checksum",
1717
"conditional-build": "pnpm run --silent checksum || pnpm run build",
18-
"gen-checksum": "cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
19-
"prepare": "gzip -f -k *.trie",
18+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
19+
"prepare": "cspell-tools-cli gzip *.trie",
2020
"prepublishOnly": "echo pre-publish",
21-
"test-dict": "head -n 1000 \"./src/wordsEnGb.txt\" | cspell -v -c ./cspell-ext.json --local=en_gb --languageId=* stdin",
21+
"test-dict": "shx head -n 1000 \"./src/wordsEnGb.txt\" | cspell -v -c ./cspell-ext.json --local=en_gb --languageId=* stdin",
2222
"test-text": "cspell -v -c ./cspell-ext.json --local=en_gb --languageId=* \"tests/*.txt\"",
2323
"test": "pnpm run test-dict && pnpm run test-text"
2424
},

dictionaries/en_GB/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"sync": "pnpm cpy \"node_modules/aoo-mozilla-en-dict/en_GB*/**\" \"src/aoo-mozilla-en-dict\" --flat && pnpm sync-clean",
1616
"sync-clean": "shx rm -rf \"src/*/wordlist*.txt\" \"src/*/*speller*.txt\"",
1717
"checksum": "cspell-tools-cli shasum -c checksum.txt",
18-
"compile": "cat source-files.txt | xargs cspell-tools-cli compile --trie3 -x compound --merge en_GB -o . --no-compress && pnpm run gen-checksum",
18+
"compile": "shx cat source-files.txt | xargs cspell-tools-cli compile --trie3 -x compound --merge en_GB -o . --no-compress && pnpm run gen-checksum",
1919
"conditional-build": "pnpm run sync && pnpm run --silent checksum || pnpm run build",
20-
"gen-checksum": "cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21-
"prepare": "gzip -f -k *.trie",
20+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21+
"prepare": "cspell-tools-cli gzip *.trie",
2222
"prepublishOnly": "echo pre-publish",
23-
"test-dict": "head -n 1000 \"./src/wordsEnGb.txt\" | cspell -v -c ./cspell-ext.json --local=en_gb --languageId=* stdin",
23+
"test-dict": "shx head -n 1000 \"./src/wordsEnGb.txt\" | cspell -v -c ./cspell-ext.json --local=en_gb --languageId=* stdin",
2424
"test-text": "cspell -v -c ./cspell-ext.json --local=en_gb --languageId=* \"tests/*.txt\"",
2525
"test": "pnpm run test-dict && pnpm run test-text"
2626
},

dictionaries/en_US/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"build": "pnpm run compile",
1515
"sync": "pnpm cpy \"node_modules/aoo-mozilla-en-dict/en_US*/**\" \"src/aoo-mozilla-en-dict\" --flat",
1616
"checksum": "cspell-tools-cli shasum -c checksum.txt",
17-
"compile": "cat source-files.txt | xargs cspell-tools-cli compile --trie3 -x compound --merge en_US -o . --no-compress && pnpm run gen-checksum",
17+
"compile": "shx cat source-files.txt | xargs cspell-tools-cli compile --trie3 -x compound --merge en_US -o . --no-compress && pnpm run gen-checksum",
1818
"conditional-build": "pnpm run sync && pnpm run --silent checksum || pnpm run build",
1919
"test-dict": "hunspell-reader words -n 10000 \"src/hunspell/en_US.dic\" | cspell -v -c ./cspell-ext.json --local=en --languageId=* stdin",
2020
"test-text": "cspell -v -c ./cspell-ext.json --local=en --languageId=* \"tests/*.txt\"",
21-
"gen-checksum": "cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
21+
"gen-checksum": "shx cat source-files.txt source-dependencies.txt | sort -u | xargs cspell-tools-cli shasum > checksum.txt",
2222
"test": "pnpm run test-dict && pnpm run test-text",
23-
"prepare": "gzip -f -k *.trie",
23+
"prepare": "cspell-tools-cli gzip *.trie",
2424
"prepublishOnly": "echo pre-publish"
2525
},
2626
"repository": {

dictionaries/en_shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"scripts": {
1515
"build": "cspell-tools-cli build",
16-
"test": "head -n 1000 \"src/shared-additional-words.txt\" | cspell -v -c ./cspell-ext.json \"--local=en\" \"--languageId=*\" stdin",
16+
"test": "shx head -n 1000 \"src/shared-additional-words.txt\" | cspell -v -c ./cspell-ext.json \"--local=en\" \"--languageId=*\" stdin",
1717
"prepublishOnly": "echo OK",
1818
"prepare": "pnpm run build"
1919
},

0 commit comments

Comments
 (0)