Skip to content

Commit b46d0f5

Browse files
committed
2.5.4
1 parent 7ad1f5c commit b46d0f5

File tree

4 files changed

+52
-48
lines changed

4 files changed

+52
-48
lines changed

build/download-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import loadFile from '../src/helpers/load-data';
88
async function writeFile(filename: string) {
99
const filePath = path.resolve('ext', filename);
1010
const fileData = await loadFile(filename, false);
11-
const fileContent = fileData.replace(/(\s+|^)#.*/g, '').replace(/\s+\n/g, '');
11+
const fileContent = fileData.replace(/(\s+|^)#.*/g, '').replace(/\s+$/g, '');
1212
fs.promises.writeFile(filePath, fileContent)
1313
.then(() => console.log(`Successfully wrote ${filename}.`))
1414
.catch(() => console.log(`Failed to write ${filename}.`))

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.5.4
4+
*2023-01-11*
5+
- Fixed gitattributes wildcards not being applied into subfolders.
6+
37
# 2.5.3
48
*2022-09-03*
59
- Fixed a crash occurring when parsing heuristics for `.txt` files ([#16](https://github.com/Nixinova/LinguistJS/issues/16)).

package-lock.json

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linguist-js",
3-
"version": "2.5.3",
3+
"version": "2.5.4",
44
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
55
"main": "dist/index.js",
66
"bin": {
@@ -12,8 +12,8 @@
1212
},
1313
"scripts": {
1414
"download-files": "npx tsx@2 build/download-files",
15-
"prepare": "npm run download-files && npm test && npm run perf",
16-
"perf": "tsc && node test/perf",
15+
"pre-publish": "npm run download-files && npm test && npm run test:perf",
16+
"test:perf": "tsc && node test/perf",
1717
"test": "tsc && node test/folder && echo --- && node test/unit"
1818
},
1919
"files": [
@@ -40,18 +40,18 @@
4040
"homepage": "https://github.com/Nixinova/Linguist#readme",
4141
"dependencies": {
4242
"binary-extensions": "^2.2.0",
43-
"commander": "^9.4.0",
43+
"commander": "^9.5.0",
4444
"common-path-prefix": "^3.0.0",
4545
"cross-fetch": "^3.1.5",
46-
"ignore": "^5.2.0",
47-
"isbinaryfile": "^4.0.8",
46+
"ignore": "^5.2.4",
47+
"isbinaryfile": "^4.0.8 <5",
4848
"js-yaml": "^4.1.0",
4949
"node-cache": "^5.1.2"
5050
},
5151
"devDependencies": {
5252
"@types/js-yaml": "^4.0.5",
53-
"@types/node": "ts4.8",
54-
"deep-object-diff": "^1.1.7",
55-
"typescript": "~4.8.2"
53+
"@types/node": "ts4.9",
54+
"deep-object-diff": "^1.1.9",
55+
"typescript": "~4.9.4"
5656
}
5757
}

0 commit comments

Comments
 (0)