build: add nx configuration in libs/ui/common (#16563)

This commit is contained in:
Addison Beck
2025-09-23 14:19:49 -04:00
committed by GitHub
parent c688eed531
commit 5126e63399
2 changed files with 40 additions and 0 deletions

View File

@@ -12,6 +12,11 @@
"url": "https://github.com/bitwarden/clients"
},
"license": "GPL-3.0",
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:watch": "npm run clean && tsc -watch"
},
"exports": {
".": {
"import": "./src/index.ts"

View File

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