From 08db862a2a791a19f11ac6edb475da9cb86b916a Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Fri, 27 Jan 2023 11:10:01 -0800 Subject: [PATCH] fix: try to save version file before install --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 53d773c28d..9468f6f314 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,8 @@ "cov:e2e:full:publish": "codecov --disable=gcov -f ./coverage/e2e/lcov.info -F e2e-full", "cov:e2e:stable:publish": "codecov --disable=gcov -f ./coverage/e2e/lcov.info -F e2e-stable", "cov:unit:publish": "codecov --disable=gcov -f ./coverage/unit/lcov.info -F unit", - "prepare": "npm run build:prod && npx tsc" + "prepare": "npm run build:prod && npx tsc", + "preinstall": "git rev-parse HEAD >> version.info; git rev-parse --abbrev-ref HEAD >> version.info" }, "repository": { "type": "git",