From 24c314a59bae5d083b90b3eb95c53d8806335bee Mon Sep 17 00:00:00 2001 From: Andrey Medvedev Date: Wed, 30 Aug 2023 18:06:45 +0300 Subject: [PATCH] Add size:ci command to package.json of monorepo To support migration to yarn v3 without fake yarn.lock file in packages/vkui We are going to drop `direction: ` option of `andresz1/size-limit-action` because it's not going to allow us use this action without failure if we remove fake yarn.lock file from packages/vkui We have to remove fake yarn.lock file as yarn v3 doesn't install dependencies properly with this fake file. In the future PR we are going to use this new script in size-limit action. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f73d59280b..bc49b17b46 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,8 @@ "playwright:install": "playwright install --with-deps", "playwright:cmd:merge-reports": "playwright merge-reports", "codesandbox:install": "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn install", - "deduplicate": "yarn-deduplicate --list && yarn-deduplicate --fail" + "deduplicate": "yarn-deduplicate --list && yarn-deduplicate --fail", + "size:ci": "yarn workspace @vkontakte/vkui run size:ci" }, "lint-staged": { "*.{ts,tsx,js,jsx}": [