From 9fc2378a2457e894d1df78955e855dde932aee1d Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Mon, 21 Aug 2023 13:02:48 +0200 Subject: [PATCH] chore: Improve package update --- action/package.json | 3 +++ package.json | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/action/package.json b/action/package.json index a99957715..767c08d02 100644 --- a/action/package.json +++ b/action/package.json @@ -8,6 +8,9 @@ "**" ] }, + "scripts": { + "update-packages": "yarn upgrade && npx package-json-dependency-updater -u && yarn" + }, "dependencies": { "@cspell/cspell-bundled-dicts": "^7.0.0" } diff --git a/package.json b/package.json index e4bb358f5..4cdab2cc9 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "smoke-test": "env-cmd -f ./fixtures/pull_request.json node ./action/lib/main_root.js", "test": "yarn workspace action-src test", "coverage": "yarn workspace action-src coverage", - "update-packages": "yarn upgrade && npx package-json-dependency-updater -u && yarn" + "update-packages": "yarn update:action && yarn update:root", + "update:action": "yarn workspace action update-packages", + "update:root": "yarn upgrade && npx package-json-dependency-updater -u && yarn" }, "workspaces": { "packages": [