Skip to content

Commit

Permalink
2.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Jan 11, 2023
1 parent 7ad1f5c commit b46d0f5
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 48 deletions.
2 changes: 1 addition & 1 deletion build/download-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import loadFile from '../src/helpers/load-data';
async function writeFile(filename: string) {
const filePath = path.resolve('ext', filename);
const fileData = await loadFile(filename, false);
const fileContent = fileData.replace(/(\s+|^)#.*/g, '').replace(/\s+\n/g, '');
const fileContent = fileData.replace(/(\s+|^)#.*/g, '').replace(/\s+$/g, '');
fs.promises.writeFile(filePath, fileContent)
.then(() => console.log(`Successfully wrote ${filename}.`))
.catch(() => console.log(`Failed to write ${filename}.`))
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.5.4
*2023-01-11*
- Fixed gitattributes wildcards not being applied into subfolders.

# 2.5.3
*2022-09-03*
- Fixed a crash occurring when parsing heuristics for `.txt` files ([#16](https://github.com/Nixinova/LinguistJS/issues/16)).
Expand Down
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linguist-js",
"version": "2.5.3",
"version": "2.5.4",
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
"main": "dist/index.js",
"bin": {
Expand All @@ -12,8 +12,8 @@
},
"scripts": {
"download-files": "npx tsx@2 build/download-files",
"prepare": "npm run download-files && npm test && npm run perf",
"perf": "tsc && node test/perf",
"pre-publish": "npm run download-files && npm test && npm run test:perf",
"test:perf": "tsc && node test/perf",
"test": "tsc && node test/folder && echo --- && node test/unit"
},
"files": [
Expand All @@ -40,18 +40,18 @@
"homepage": "https://github.com/Nixinova/Linguist#readme",
"dependencies": {
"binary-extensions": "^2.2.0",
"commander": "^9.4.0",
"commander": "^9.5.0",
"common-path-prefix": "^3.0.0",
"cross-fetch": "^3.1.5",
"ignore": "^5.2.0",
"isbinaryfile": "^4.0.8",
"ignore": "^5.2.4",
"isbinaryfile": "^4.0.8 <5",
"js-yaml": "^4.1.0",
"node-cache": "^5.1.2"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"@types/node": "ts4.8",
"deep-object-diff": "^1.1.7",
"typescript": "~4.8.2"
"@types/node": "ts4.9",
"deep-object-diff": "^1.1.9",
"typescript": "~4.9.4"
}
}

0 comments on commit b46d0f5

Please sign in to comment.