diff --git a/nx.json b/nx.json index 2cd94cadc7..1b1d0bf666 100644 --- a/nx.json +++ b/nx.json @@ -120,14 +120,7 @@ } }, "lint": { - "dependsOn": [ - "build-native", - "^build-native", - "@nx/nx-source:lint-pnpm-lock" - ] - }, - "lint-pnpm-lock": { - "cache": true + "dependsOn": ["build-native", "^build-native"] }, "e2e": { "cache": true, diff --git a/project.json b/project.json index 417546756f..0dfd6b7046 100644 --- a/project.json +++ b/project.json @@ -73,6 +73,15 @@ "{workspaceRoot}/docs/external-generated", "{workspaceRoot}/docs/generated" ] + }, + "lint": { + "dependsOn": ["@nx/nx-source:lint-pnpm-lock"], + "cache": true, + "inputs": ["{projectRoot}/pnpm-lock.yaml"] + }, + "lint-pnpm-lock": { + "cache": true, + "inputs": ["{projectRoot}/pnpm-lock.yaml"] } } }