From dceb4a92978ee61f56276e9f167b9cd8d227600d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 25 Feb 2016 15:24:10 +0000 Subject: [PATCH] Add a 'version.txt' file to the tarball This will enable the vector build to know what it got --- .gitignore | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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",