{
  "name": "node",
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "packages/node/src",
  "projectType": "library",
  "tags": ["type:pkg"],
  "targets": {
    "build": {
      "executor": "@nx/js:tsc",
      "outputs": ["{options.outputPath}"],
      "options": {
        "outputPath": "packages/node/dist",
        "main": "packages/node/src/index.js",
        "tsConfig": "packages/node/tsconfig.lib.json",
        "assets": ["packages/node/*.md"]
      },
      "dependsOn": [
        {
          "target": "build",
          "dependencies": true
        }
      ]
    },
    "lint": {
      "executor": "@nx/eslint:lint",
      "outputs": ["{options.outputFile}"],
      "options": {
        "lintFilePatterns": ["packages/node/**/*.js", "packages/node/**/*.ts"]
      }
    },
    "test": {
      "executor": "@nx/jest:jest",
      "outputs": ["{workspaceRoot}/coverage/packages/node"],
      "options": {
        "jestConfig": "packages/node/jest.config.js",
        "passWithNoTests": true
      }
    },
    "pre-release": {
      "executor": "nx:run-commands",
      "options": {
        "parallel": false,
        "commands": [
          {
            "command": "nx run node:test",
            "forwardAllArgs": false
          },
          {
            "command": "nx run node:build",
            "forwardAllArgs": false
          },
          {
            "command": "rm ./packages/node/dist/package.json",
            "forwardAllArgs": false
          }
        ]
      }
    }
  }
}
