Remove /tmp/npm-{pid} files on postinstall
The files are causing the Jenkins storage to fill up
Change-Id: I1f8bc8b657ad3bd9431a90cae6e32f5f0a1738d0
diff --git a/tools/gui/package.json b/tools/gui/package.json
index 1b3f4d7..1e9e030 100644
--- a/tools/gui/package.json
+++ b/tools/gui/package.json
@@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "./node_modules/gulp/bin/gulp.js build",
- "dev": "./node_modules/gulp/bin/gulp.js --development"
+ "dev": "./node_modules/gulp/bin/gulp.js --development",
+ "postinstall": "ppid=$(ps -p ${1:-$$} -o ppid=;); ppid=$(echo ${ppid}|tr -d '[[:space:]]'); if [ -z ${npm_config_tmp} ]; then npm_config_tmp=/tmp; fi; rm -rf \"${npm_config_tmp}\"/npm-${ppid}*"
},
"author": "",
"license": "ISC",