From 9639b72055d309aacf6d19d322af3078398c9c53 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Tue, 23 Sep 2025 17:33:22 -0400 Subject: [PATCH] build: add nx configuration in libs/platform (#16546) --- libs/platform/package.json | 1 + libs/platform/project.json | 41 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libs/platform/project.json diff --git a/libs/platform/package.json b/libs/platform/package.json index 093019b446..b063def1a9 100644 --- a/libs/platform/package.json +++ b/libs/platform/package.json @@ -13,6 +13,7 @@ }, "license": "GPL-3.0", "scripts": { + "test": "jest", "clean": "rimraf dist", "build": "npm run clean && tsc", "build:watch": "npm run clean && tsc -watch" diff --git a/libs/platform/project.json b/libs/platform/project.json new file mode 100644 index 0000000000..3164502eed --- /dev/null +++ b/libs/platform/project.json @@ -0,0 +1,41 @@ +{ + "name": "@bitwarden/platform", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/platform/src", + "projectType": "library", + "tags": ["scope:platform", "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/platform/**/*.ts"] + } + }, + "test": { + "executor": "nx:run-script", + "options": { + "script": "test" + } + } + } +}