From 2e7b42ebc64702be1d1ff0d9fe5541eb3b8d2db7 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Tue, 25 Feb 2020 13:51:25 +0700 Subject: [PATCH] Auto-purge node cache --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 49afc8d..e1e6a53 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,10 @@ "lint:js": "eslint ./src --config .eslintrc", "lint:sass": "sass-lint ./src --config .sasslintrc -v -q", "prebuild": "yarn lint:fix && rimraf dist", - "prepare": "yarn lint:fix && yarn build" + "prepare": "yarn lint:fix && yarn build", + "prunecaches": "rimraf ./node_modules/.cache/", + "postinstall": "npm run prunecaches", + "postuninstall": "npm run prunecaches" }, "dependencies": { "@a2nt/meta-lightbox": "^1.2.2",