diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 472b8ec28..5ff230848 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -54,12 +54,14 @@ jobs: repo-token: "${{ secrets.GITHUB_TOKEN }}" pattern: "./packages/db/dist/**/*.{js,mjs}" comment-key: "db-package-size" + build-script: "build:minified" - name: Compressed Size Action - React DB Package uses: preactjs/compressed-size-action@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" pattern: "./packages/react-db/dist/**/*.{js,mjs}" comment-key: "react-db-package-size" + build-script: "build:minified" build-example: name: Build Example Site runs-on: ubuntu-latest diff --git a/package.json b/package.json index be8334fcc..d85d17010 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "type": "module", "scripts": { "build": "pnpm --filter \"./packages/**\" build", + "build:minified": "pnpm --filter \"./packages/**\" build:minified", "changeset": "changeset", "changeset:publish": "changeset publish", "changeset:version": "changeset version && pnpm install --no-frozen-lockfile", diff --git a/packages/db/package.json b/packages/db/package.json index 64e8fdf69..f2e4129e3 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -49,6 +49,7 @@ ], "scripts": { "build": "vite build", + "build:minified": "vite build --minify", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "npx vitest --run" diff --git a/packages/react-db/package.json b/packages/react-db/package.json index ccb0f6dbc..4773c6b33 100644 --- a/packages/react-db/package.json +++ b/packages/react-db/package.json @@ -54,6 +54,7 @@ }, "scripts": { "build": "vite build", + "build:minified": "vite build --minify", "dev": "vite build --watch", "test": "npx vitest --run", "lint": "eslint . --fix"