linguist-js 2.5.4 → 2.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linguist-js",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "node": ">=12"
12
12
  },
13
13
  "scripts": {
14
- "download-files": "npx tsx@2 build/download-files",
14
+ "download-files": "npx tsx@3 build/download-files",
15
15
  "pre-publish": "npm run download-files && npm test && npm run test:perf",
16
16
  "test:perf": "tsc && node test/perf",
17
17
  "test": "tsc && node test/folder && echo --- && node test/unit"
@@ -40,9 +40,9 @@
40
40
  "homepage": "https://github.com/Nixinova/Linguist#readme",
41
41
  "dependencies": {
42
42
  "binary-extensions": "^2.2.0",
43
- "commander": "^9.5.0",
43
+ "commander": "^9.5.0 <10",
44
44
  "common-path-prefix": "^3.0.0",
45
- "cross-fetch": "^3.1.5",
45
+ "cross-fetch": "^3.1.6",
46
46
  "ignore": "^5.2.4",
47
47
  "isbinaryfile": "^4.0.8 <5",
48
48
  "js-yaml": "^4.1.0",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/js-yaml": "^4.0.5",
53
- "@types/node": "ts4.9",
53
+ "@types/node": "ts5.1",
54
54
  "deep-object-diff": "^1.1.9",
55
- "typescript": "~4.9.4"
55
+ "typescript": "~5.1.3"
56
56
  }
57
57
  }
package/readme.md CHANGED
@@ -145,8 +145,9 @@ linguist --help
145
145
  Analyse the language of all files found in a folder.
146
146
  - `<folders...>`:
147
147
  The folders to analyse (defaults to `./`).
148
- - `--ignoredFiles <paths...>`:
149
- A list of space-delimited file path globs to ignore.
148
+ - `--ignoredFiles <glob1> [[--ignoredFiles] <glob2> ...]`:
149
+ A list of file path globs to ignore.
150
+ When specifying more than one glob, this option can either be called with multiple values given (e.g., `--ignoredFiles *.txt *.json`) or be called multiple times (e.g., `--ignoredFiles *.txt --ignoredFiles *.json`). Both ways are equivalent.
150
151
  - `--ignoredLanguages`:
151
152
  A list of languages to ignore.
152
153
  - `--categories <categories...>`: