3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-01-04 19:08:58 +00:00

chore: use linefix to ensure platform line endings (#135)

Use linefix so that when developing changes the results of npm run prepare always have unix line endings so git diff commands don't show line ending changes for the ncc generated files.
This commit is contained in:
Steven Hartland 2023-05-11 22:19:46 +01:00 committed by GitHub
parent def0926359
commit 68aeeba167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View file

@ -30,9 +30,10 @@
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",
"linefix": "^0.1.1",
"typescript": "5.0.4"
},
"scripts": {
"prepare": "ncc build --target es2020 -o dist/restore src/restore.ts && ncc build --target es2020 -o dist/save src/save.ts"
"prepare": "ncc build --target es2020 -o dist/restore src/restore.ts && ncc build --target es2020 -o dist/save src/save.ts && linefix dist"
}
}