55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"namedInputs": {
|
|
"sources": ["{projectRoot}/src/**/*"]
|
|
},
|
|
"targets": {
|
|
"test": {
|
|
"description": "Tests the TypeScript client library. It is an alias for test-unit.",
|
|
"dependsOn": [
|
|
"test-unit"
|
|
]
|
|
},
|
|
"lint": {
|
|
"description": "Runs all linters",
|
|
"dependsOn": [
|
|
"lint-*"
|
|
]
|
|
},
|
|
"lint-check-eslint": {
|
|
"description": "Checks code formatting with ESLint",
|
|
"dependsOn": ["^generate"],
|
|
"inputs": [
|
|
"default"
|
|
],
|
|
"cache": true
|
|
},
|
|
"lint-check-knip": {
|
|
"description": "Checks for unused dependencies with knip",
|
|
"inputs": [
|
|
"default"
|
|
],
|
|
"cache": true
|
|
},
|
|
"build": {
|
|
"description": "Builds the TypeScript client library",
|
|
"cache": true,
|
|
"inputs": [
|
|
"default",
|
|
"{workspaceRoot}/pnpm-lock.yaml",
|
|
{
|
|
"dependentTasksOutputFiles": "packages/zitadel-proto/cjs/**/*"
|
|
},
|
|
{
|
|
"dependentTasksOutputFiles": "packages/zitadel-proto/es/**/*"
|
|
},
|
|
{
|
|
"dependentTasksOutputFiles": "packages/zitadel-proto/types/**/*"
|
|
}
|
|
],
|
|
"outputs": ["{projectRoot}/dist"],
|
|
"dependsOn": ["^generate"]
|
|
}
|
|
}
|
|
}
|