@cspell/cspell-tools 6.6.1-alpha.2 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.d.ts
CHANGED
package/dist/app.js
CHANGED
|
@@ -64,7 +64,8 @@ function addCompileOptions(compileCommand) {
|
|
|
64
64
|
.option('--use-legacy-splitter', 'Do not use legacy line splitter logic.')
|
|
65
65
|
.option('--keep-raw-case', 'Do not normalize words before adding them to dictionary.')
|
|
66
66
|
.option('-x, --experimental <flag>', 'Experimental flags, used for testing new concepts. Flags: compound', collect, [])
|
|
67
|
-
.option('--trie3', '
|
|
67
|
+
.option('--trie3', 'Use file format trie3', false)
|
|
68
|
+
.option('--trie4', 'Use file format trie4', false)
|
|
68
69
|
.option('--trie-base <number>', 'Advanced: Set the trie base number. A value between 10 and 36');
|
|
69
70
|
}
|
|
70
71
|
function run(program, argv) {
|
|
@@ -102,7 +103,7 @@ function parseNumber(s) {
|
|
|
102
103
|
return isNaN(n) ? undefined : n;
|
|
103
104
|
}
|
|
104
105
|
async function processAction(src, options) {
|
|
105
|
-
const useTrie = options.trie || options.trie3;
|
|
106
|
+
const useTrie = options.trie || options.trie3 || options.trie4 || false;
|
|
106
107
|
const fileExt = useTrie ? '.trie' : '.txt';
|
|
107
108
|
console.log('Compile:\n output: %s\n compress: %s\n files:\n %s \n\n', options.output || 'default', options.compress ? 'true' : 'false', src.join('\n '));
|
|
108
109
|
const experimental = new Set(options.experimental);
|
|
@@ -181,7 +181,7 @@ function createTrieTarget(destFilename, options) {
|
|
|
181
181
|
return async (words) => {
|
|
182
182
|
log('Reading Words into Trie');
|
|
183
183
|
const base = options.base ?? 32;
|
|
184
|
-
const version = options.trie3 ? 3 : 1;
|
|
184
|
+
const version = options.trie4 ? 4 : options.trie3 ? 3 : 1;
|
|
185
185
|
const root = Trie.buildTrie(words).root;
|
|
186
186
|
log('Reduce duplicate word endings');
|
|
187
187
|
const trie = (0, exports.consolidate)(root);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cspell/cspell-tools",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Tools to assist with the development of cSpell",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"commander": "^9.4.0",
|
|
49
|
-
"cspell-io": "^6.
|
|
50
|
-
"cspell-trie-lib": "^6.
|
|
49
|
+
"cspell-io": "^6.7.0",
|
|
50
|
+
"cspell-trie-lib": "^6.7.0",
|
|
51
51
|
"fs-extra": "^10.1.0",
|
|
52
52
|
"gensequence": "^3.1.1",
|
|
53
53
|
"glob": "^8.0.3",
|
|
54
|
-
"hunspell-reader": "^6.
|
|
54
|
+
"hunspell-reader": "^6.7.0"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=14"
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/fs-extra": "^9.0.13",
|
|
61
61
|
"@types/glob": "^7.2.0",
|
|
62
|
-
"@types/jest": "^28.1.
|
|
63
|
-
"@types/node": "^18.6
|
|
62
|
+
"@types/jest": "^28.1.7",
|
|
63
|
+
"@types/node": "^18.7.6",
|
|
64
64
|
"@types/rimraf": "^3.0.2",
|
|
65
65
|
"@types/shelljs": "^0.8.11",
|
|
66
66
|
"jest": "^28.1.3",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"shelljs": "^0.8.5"
|
|
70
70
|
},
|
|
71
71
|
"main": "bin.js",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "3a7312a15d2df1507d9e01863ec5842f5a99e0cc"
|
|
73
73
|
}
|