From fee46d38e08679d716988958f51897205b11676a Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sat, 24 May 2025 23:40:48 +0200 Subject: [PATCH] ci/js: check size of dependencies https://stackoverflow.com/questions/40642008/how-do-i-view-the-size-of-npm-packages --- .github/workflows/js.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 3807282..c47ec72 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -13,6 +13,14 @@ jobs: - name: npm install run: npm install + # check size of dependencies + - name: dep-size howfat + run: npx --yes howfat -d --reporter table --sort size- + - name: dep-size qnm + run: npx --yes qnm doctor + - name: dep-size cost-of-modules + run: npx --yes npx cost-of-modules --include-dev --no-install + # https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#example-workflow-that-runs-the-eslint-analysis-tool - name: eslint (sarif output) # eslint exits 1 if it finds anything to report