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 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",