diff --git a/.gitignore b/.gitignore index 57144f8e25..e2ccc538c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /node_modules /lib -# tarball created by 'npm pack' +# version file and tarball created by 'npm pack' +/version.txt /matrix-react-sdk-*.tgz diff --git a/package.json b/package.json index 4453e7f65c..ae8d9b5727 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" + "prepublish": "npm run build; git rev-parse HEAD > version.txt" }, "dependencies": { "classnames": "^2.1.2",