build: add nx configuration in libs/components (#16545)

This commit is contained in:
Addison Beck 2025-09-23 14:19:10 -04:00 committed by GitHub
parent e1f32bdd4b
commit c688eed531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,41 @@
{
"name": "@bitwarden/components",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/components/src",
"projectType": "library",
"tags": ["scope:components", "type:lib"],
"targets": {
"build": {
"executor": "nx:run-script",
"dependsOn": [],
"options": {
"script": "build"
}
},
"build:watch": {
"executor": "nx:run-script",
"options": {
"script": "watch"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/components/**/*.ts"]
}
},
"test": {
"executor": "nx:run-script",
"options": {
"script": "test"
}
},
"test:watch": {
"executor": "nx:run-script",
"options": {
"script": "test:watch"
}
}
}
}