Skip to content

The open alternative to Salesforce, designed for AI.

Build dependencies before running Knip (#27312)

Raphaël Bosi0ae82ea5708e
diff --git a/.github/workflows/ci-knip.yaml b/.github/workflows/ci-knip.yaml
index 3d8f20a3c1e..408b60c3e83 100644
--- a/.github/workflows/ci-knip.yaml
+++ b/.github/workflows/ci-knip.yaml
@@ -22,10 +22,13 @@ jobs:
with:
files: |
knip.json
+ nx.json
package.json
yarn.lock
packages/twenty-front/**
+ packages/twenty-front-component-renderer/**
packages/twenty-server/**
+ packages/twenty-shared/**
packages/twenty-ui/**
knip:
needs: changed-files-check
diff --git a/nx.json b/nx.json
index cf42dd35045..42cb70b91a3 100644
--- a/nx.json
+++ b/nx.json
@@ -102,6 +102,7 @@
"knip": {
"executor": "nx:run-commands",
"cache": true,
+ "dependsOn": ["^build", "twenty-shared:build"],
"inputs": ["default", "{workspaceRoot}/knip.json"],
"options": {
"command": "knip --workspace {projectRoot}"