From 1e5f5959dbb5283e332f17f656e2a1990e4c0827 Mon Sep 17 00:00:00 2001 From: Bart van Andel Date: Sun, 15 Jan 2017 15:21:21 +0100 Subject: [PATCH] Convert line endings of Python files to Unix-style before publishing --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5934cb4..2a40e49 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ }, "scripts": { "clean": "rimraf **/*.pyc", - "prepublish": "npm run clean", + "crlf": "crlf --set=LF **/*.py", + "prepublish": "npm run clean && npm run crlf", "release": "with-package git commit -am pkg.version && with-package git tag pkg.version && git push && npm publish && git push --tags", "release:beta": "npm run release && npm run tag:beta", "tag:beta": "with-package npm dist-tag add pkg.name@pkg.version beta", @@ -53,6 +54,7 @@ }, "homepage": "https://github.com/ejwa/gitinspector#readme", "devDependencies": { + "crlf": "^1.1.0", "rimraf": "^2.5.4", "with-package": "^0.2.0" },