cspell-glob 10.3.4 → 10.3.6
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/index.js +6 -1
- package/package.json +22 -22
package/dist/index.js
CHANGED
|
@@ -537,7 +537,12 @@ function buildMatcherFn(_id, patterns, options) {
|
|
|
537
537
|
if (!isRelativeValueNested(relPathToFile)) continue;
|
|
538
538
|
fname = relPathToFile;
|
|
539
539
|
}
|
|
540
|
-
|
|
540
|
+
let isMatch = rule.fn(fname);
|
|
541
|
+
if (!isMatch && !isRelPat && !dot) {
|
|
542
|
+
const relPathToFile = relativeToRoot(rootURL);
|
|
543
|
+
isMatch = isRelativeValueNested(relPathToFile) && rule.fn(relPathToFile);
|
|
544
|
+
}
|
|
545
|
+
if (isMatch) return {
|
|
541
546
|
matched,
|
|
542
547
|
glob: pattern.glob,
|
|
543
548
|
root,
|
package/package.json
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-glob",
|
|
3
|
+
"version": "10.3.6",
|
|
4
|
+
"description": "Glob matcher for cspell",
|
|
3
5
|
"publishConfig": {
|
|
4
6
|
"access": "public",
|
|
5
7
|
"provenance": true
|
|
6
8
|
},
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
+
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-glob#readme",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/streetsidesoftware/cspell.git",
|
|
13
|
+
"directory": "packages/cspell-glob"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/streetsidesoftware/cspell/issues?q=is%3Aissue%20state%3Aopen%20label%3Acspell-glob"
|
|
17
|
+
},
|
|
9
18
|
"keywords": [
|
|
10
19
|
"cspell",
|
|
11
20
|
"glob"
|
|
12
21
|
],
|
|
13
|
-
"author": "Jason Dent <jason@streetsidesoftware.nl>",
|
|
14
|
-
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-glob#readme",
|
|
15
22
|
"license": "MIT",
|
|
16
|
-
"
|
|
23
|
+
"author": "Jason Dent <jason@streetsidesoftware.nl>",
|
|
17
24
|
"sideEffects": false,
|
|
18
|
-
"
|
|
19
|
-
"module": "dist/index.js",
|
|
25
|
+
"type": "module",
|
|
20
26
|
"exports": {
|
|
21
27
|
".": {
|
|
22
28
|
"import": "./dist/index.js"
|
|
23
29
|
}
|
|
24
30
|
},
|
|
31
|
+
"module": "dist/index.js",
|
|
32
|
+
"types": "dist/index.d.ts",
|
|
25
33
|
"files": [
|
|
26
34
|
"bin.mjs",
|
|
27
35
|
"dist",
|
|
@@ -35,30 +43,19 @@
|
|
|
35
43
|
"!**/*.map"
|
|
36
44
|
],
|
|
37
45
|
"scripts": {
|
|
38
|
-
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
39
46
|
"build": "tsdown",
|
|
40
47
|
"build:check": "tsc -p .",
|
|
48
|
+
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
41
49
|
"clean-build": "pnpm run clean && pnpm run build",
|
|
42
50
|
"coverage": "vitest run --coverage",
|
|
51
|
+
"test": "pnpm build:check && vitest run",
|
|
43
52
|
"test:perf": "insight --file \"src/perf/**/*.perf.{mts,ts}\" -t 1000",
|
|
44
53
|
"test:perf:prof": "NODE_ENV=production node --cpu-prof ../../node_modules/perf-insight/bin.mjs --file \"dist/perf/**/*.perf.{mjs,js}\" -t 1000",
|
|
45
54
|
"test:watch": "vitest",
|
|
46
|
-
"test": "pnpm build:check && vitest run",
|
|
47
55
|
"watch": "tsdown -w"
|
|
48
56
|
},
|
|
49
|
-
"repository": {
|
|
50
|
-
"type": "git",
|
|
51
|
-
"url": "https://github.com/streetsidesoftware/cspell.git",
|
|
52
|
-
"directory": "packages/cspell-glob"
|
|
53
|
-
},
|
|
54
|
-
"bugs": {
|
|
55
|
-
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-glob"
|
|
56
|
-
},
|
|
57
|
-
"engines": {
|
|
58
|
-
"node": ">=22.18.0"
|
|
59
|
-
},
|
|
60
57
|
"dependencies": {
|
|
61
|
-
"@cspell/url": "10.3.
|
|
58
|
+
"@cspell/url": "10.3.6",
|
|
62
59
|
"picomatch": "^4.0.7"
|
|
63
60
|
},
|
|
64
61
|
"devDependencies": {
|
|
@@ -66,5 +63,8 @@
|
|
|
66
63
|
"@types/picomatch": "^4.0.3",
|
|
67
64
|
"micromatch": "^4.0.8"
|
|
68
65
|
},
|
|
69
|
-
"
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=22.18.0"
|
|
68
|
+
},
|
|
69
|
+
"gitHead": "8559198ccfcac2f745911db1ffe2ee62c17cba49"
|
|
70
70
|
}
|