diff --git a/libs/billing/package.json b/libs/billing/package.json index 8858cfaa26..3afd267cc2 100644 --- a/libs/billing/package.json +++ b/libs/billing/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/billing/project.json b/libs/billing/project.json new file mode 100644 index 0000000000..829f65a9eb --- /dev/null +++ b/libs/billing/project.json @@ -0,0 +1,41 @@ +{ + "name": "@bitwarden/billing", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/billing/src", + "projectType": "library", + "tags": ["scope:billing", "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/billing/**/*.ts"] + } + }, + "test": { + "executor": "nx:run-script", + "options": { + "script": "test" + } + } + } +}