diff --git a/libs/ui/common/package.json b/libs/ui/common/package.json index 4ea0f8aed7..0cc6d4b153 100644 --- a/libs/ui/common/package.json +++ b/libs/ui/common/package.json @@ -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" diff --git a/libs/ui/common/project.json b/libs/ui/common/project.json new file mode 100644 index 0000000000..36e4b810a0 --- /dev/null +++ b/libs/ui/common/project.json @@ -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"] + } + } + } +}