Skip to content

The open alternative to Salesforce, designed for AI.

2.1 KB
Raw Blame
{
  "name": "twenty-companion",
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "projectType": "application",
  "sourceRoot": "packages/twenty-companion/src",
  "implicitDependencies": ["twenty-ui"],
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "cache": true,
      "dependsOn": ["twenty-ui:build"],
      "options": {
        "cwd": "packages/twenty-companion",
        "command": "yarn build"
      },
      "inputs": ["default", "^default"],
      "outputs": ["{projectRoot}/dist"]
    },
    "typecheck": {
      "executor": "nx:run-commands",
      "cache": true,
      "dependsOn": ["twenty-ui:build"],
      "options": {
        "cwd": "packages/twenty-companion",
        "command": "yarn typecheck"
      },
      "inputs": ["default", "^default"]
    },
    "lint:unlocalized-strings": {
      "executor": "nx:run-commands",
      "cache": true,
      "options": {
        "cwd": "packages/twenty-companion",
        "command": "yarn lint:unlocalized-strings"
      },
      "inputs": [
        "{projectRoot}/src/**/*.{ts,tsx}",
        "{workspaceRoot}/packages/twenty-oxlint-rules/.oxlintrc.i18n.json",
        "{workspaceRoot}/packages/twenty-oxlint-rules/scripts/check-unlocalized-strings.mjs",
        "{workspaceRoot}/packages/twenty-oxlint-rules/scripts/filter-unlocalized-strings.mjs",
        "{projectRoot}/package.json",
        "{workspaceRoot}/yarn.lock"
      ]
    },
    "test": {
      "executor": "nx:run-commands",
      "cache": true,
      "dependsOn": ["twenty-ui:build"],
      "options": {
        "cwd": "packages/twenty-companion",
        "command": "yarn test"
      },
      "inputs": ["default", "^default"]
    },
    "package": {
      "executor": "nx:run-commands",
      "cache": false,
      "dependsOn": ["twenty-ui:build"],
      "options": {
        "cwd": "packages/twenty-companion",
        "command": "yarn package"
      }
    },
    "package:archive": {
      "executor": "nx:run-commands",
      "cache": false,
      "dependsOn": ["twenty-ui:build"],
      "options": {
        "cwd": "packages/twenty-companion",
        "command": "yarn package:archive"
      }
    }
  }
}