From e1f32bdd4b94bf12cc6fa226ed53b8ecaacd81f1 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Tue, 23 Sep 2025 13:13:52 -0400 Subject: [PATCH] build: add nx configuration in libs/dirt/card (#16562) --- libs/dirt/card/package.json | 3 ++- libs/dirt/card/project.json | 41 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 libs/dirt/card/project.json diff --git a/libs/dirt/card/package.json b/libs/dirt/card/package.json index cf613ead7af..d6fc1841888 100644 --- a/libs/dirt/card/package.json +++ b/libs/dirt/card/package.json @@ -15,6 +15,7 @@ "scripts": { "clean": "rimraf dist", "build": "npm run clean && tsc", - "build:watch": "npm run clean && tsc -watch" + "build:watch": "npm run clean && tsc -watch", + "test": "jest --passWithNoTests" } } diff --git a/libs/dirt/card/project.json b/libs/dirt/card/project.json new file mode 100644 index 00000000000..1f7712eb3c7 --- /dev/null +++ b/libs/dirt/card/project.json @@ -0,0 +1,41 @@ +{ + "name": "@bitwarden/dirt-card", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/dirt/card/src", + "projectType": "library", + "tags": ["scope:dirt-card", "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/dirt/card/**/*.ts"] + } + }, + "test": { + "executor": "nx:run-script", + "options": { + "script": "test" + } + } + } +}