From 9aa2e2d99fd5edae74e4e91332206f68a4ddd77f Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Mon, 29 Sep 2025 14:57:29 -0400 Subject: [PATCH] build: add nx configuration in libs/node (#16550) --- libs/node/package.json | 1 + libs/node/project.json | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libs/node/project.json diff --git a/libs/node/package.json b/libs/node/package.json index 823913c997..6a375a2a5a 100644 --- a/libs/node/package.json +++ b/libs/node/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/node/project.json b/libs/node/project.json new file mode 100644 index 0000000000..d7757cda2a --- /dev/null +++ b/libs/node/project.json @@ -0,0 +1,41 @@ +{ + "name": "@bitwarden/node", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/node/src", + "projectType": "library", + "tags": ["scope:node", "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/node/**/*.ts"] + } + }, + "test": { + "executor": "nx:run-script", + "options": { + "script": "test" + } + } + } +}