From 419d197cc35e6a392310a33714a8b90dd6a79d85 Mon Sep 17 00:00:00 2001 From: bourgeoa Date: Thu, 16 Jan 2025 02:00:41 +0100 Subject: [PATCH] bundlesize --- .github/workflows/ci.yml | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 205d1b08..043a7b3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,8 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm run build && bundlesize + - run: npm run build + - run: npm run bundlesize - name: Save build if: matrix.node-version == '18.x' uses: actions/upload-artifact@v4 diff --git a/package.json b/package.json index c91941fe..0ae8d848 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "lint": "eslint 'src/**/*.ts'", "lint-fix": "eslint 'src/**/*.ts' --fix", "test": "npm run lint", - "prepublishOnly": "npm test && npm run build && bundlesize", + "prepublishOnly": "npm test && npm run build && npm run bundlesize", + "bundlesize": "bundlesize", "postpublish": "git push origin main --follow-tags", "startStaticOS": "webpack serve --mode=production --config webpack.config.js --open /browse.html" },