From 0243b4d266cadf05b5017f2bb4afb15df7899cf4 Mon Sep 17 00:00:00 2001 From: iddahadev Date: Thu, 27 Nov 2025 12:12:50 +0100 Subject: [PATCH 1/2] chore(scripts): reorganize build commands for clarity - Rename 'build:all' to 'build:workspaces' for better naming - Create separate 'build:front' for frontend build (esbuild) - Update main 'build' to run both build:front and build:workspaces --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e0213d9a..b13b0877 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,9 @@ "lint:css": "stylelint \"**/*.css\"", "lint-fix": "npm run lint -- --fix", "prepublishOnly": "rimraf ./dist && npm run build && pkg-ok", - "build": "node ./esbuild.config.js", - "build:all": "npm run build --ws --if-present", + "build": "npm run build:front && npm run build:workspaces", + "build:front": "node ./esbuild.config.js", + "build:workspaces": "npm run build --ws --if-present", "test": "npm run test:cli && npm run lint && npm run lint:css", "test:cli": "glob -c \"node --no-warnings --test-concurrency 1 --test\" \"test/**/*.test.js\"", "test:all": "npm run test --ws --if-present", From 2c14e58207c3493b37f9fd31c541851cc6bde5a8 Mon Sep 17 00:00:00 2001 From: iddahadev Date: Thu, 27 Nov 2025 15:47:18 +0100 Subject: [PATCH 2/2] chore(workflows): update build command to use build:workspaces --- .github/workflows/cache.yml | 2 +- .github/workflows/server.yml | 2 +- .github/workflows/size-satisfies.yml | 2 +- .github/workflows/vis-network.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 42edf0f3..9dd002c0 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -34,6 +34,6 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts - name: Build - run: npm run build:all + run: npm run build:workspaces - name: Run tests run: npm run test -w workspaces/cache diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 46e472f9..efb56018 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -34,6 +34,6 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts - name: Build - run: npm run build:all + run: npm run build:workspaces - name: Run tests run: npm run test -w workspaces/server diff --git a/.github/workflows/size-satisfies.yml b/.github/workflows/size-satisfies.yml index 61c113b8..b82c4804 100644 --- a/.github/workflows/size-satisfies.yml +++ b/.github/workflows/size-satisfies.yml @@ -34,6 +34,6 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts - name: Build - run: npm run build:all + run: npm run build:workspaces - name: Run tests run: npm run test diff --git a/.github/workflows/vis-network.yml b/.github/workflows/vis-network.yml index b49455e3..57029201 100644 --- a/.github/workflows/vis-network.yml +++ b/.github/workflows/vis-network.yml @@ -34,6 +34,6 @@ jobs: - name: Install dependencies run: npm install --ignore-scripts - name: Build - run: npm run build:all + run: npm run build:workspaces - name: Run tests run: npm run test