From a8b3f64640c108ef88104d97753f5c9b0e05f125 Mon Sep 17 00:00:00 2001 From: Kari Lavikka Date: Tue, 23 Nov 2021 15:15:49 +0200 Subject: [PATCH] chore: use lerna's lifecycle scripts to update package-lock.json I hope this works. After lerna has updated versions in `package.json` files, `npm install` should update them in the `package-lock.json`. Source: https://github.com/lerna/lerna/issues/1415#issuecomment-455790478 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ddde2916..d26f0eec 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "start": "npm run dev -w @genome-spy/app", "pretty-quick": "pretty-quick", "prepare": "husky install", - "pre-commit": "lint-staged" + "pre-commit": "lint-staged", + "version": "npm install && git add package-lock.json" }, "workspaces": [ "./packages/*"