diff --git a/.gitignore b/.gitignore
index e2ccc538c0..949e21b82b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,5 @@
 /lib
 
 # version file and tarball created by 'npm pack'
-/version.txt
+/git-revision.txt
 /matrix-react-sdk-*.tgz
diff --git a/package.json b/package.json
index ae8d9b5727..17282dd545 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
     "build": "babel src -d lib --source-maps",
     "start": "babel src -w -d lib --source-maps",
     "clean": "rimraf lib",
-    "prepublish": "npm run build; git rev-parse HEAD > version.txt"
+    "prepublish": "npm run build; git rev-parse HEAD > git-revision.txt"
   },
   "dependencies": {
     "classnames": "^2.1.2",