Skip to content

The open alternative to Salesforce, designed for AI.

3.2 KB
Raw Blame
{
  "$schema": "https://unpkg.com/knip@6/schema.json",
  "ignoreWorkspaces": [
    "packages/twenty-docs",
    "packages/twenty-apps/**",
    "packages/twenty-front-component-renderer"
  ],
  "rules": {
    "binaries": "warn",
    "dependencies": "error",
    "devDependencies": "error",
    "duplicates": "warn",
    "enumMembers": "warn",
    "exports": "warn",
    "files": "error",
    "optionalPeerDependencies": "warn",
    "types": "warn",
    "unlisted": "warn",
    "unresolved": "warn"
  },
  "workspaces": {
    "packages/twenty-server": {
      "entry": [
        "src/main.ts",
        "src/command/command.ts",
        "src/queue-worker/queue-worker.ts",
        "src/database/scripts/*.ts",
        "src/database/clickhouse/migrations/run-migrations.ts",
        "src/database/clickhouse/seeds/run-seeds.ts",
        "src/instrument.ts",
        "src/engine/metadata-modules/ai/ai-front-component/utils/execute-front-component-builder-request.util.ts",
        "src/engine/metadata-modules/ai/ai-front-component/front-component-compiler.service.ts",
        "lingui.config.ts",
        "scripts/**/*.ts",
        "**/*.spec.ts",
        "**/*.integration-spec.ts",
        "test/integration/graphql/codegen/index.ts",
        "test/integration/utils/setup-test.ts",
        "test/integration/utils/teardown-test.ts",
        "src/database/typeorm/core/legacy-typeorm-migrations-do-not-add/**/*.ts"
      ],
      "project": ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.ts"],
      "jest": [
        "jest.config.mjs",
        "jest-integration.config.ts",
        "jest-integration-secure.config.ts"
      ],
      "ignore": [
        "src/**/constants/seed-project/**",
        "src/database/typeorm/core/migrations/**",
        "**/*.workspace-entity.ts",
        "src/engine/core-modules/logic-function/logic-function-resource/constants/**",
        "src/database/commands/upgrade-version-command/**",
        "src/engine/metadata-modules/*/constants/standard-*-names.ts",
        "src/engine/metadata-modules/*/constants/standard-*-titles.ts"
      ],
      "ignoreDependencies": ["@types/psl", "twenty-ui"]
    },
    "packages/twenty-front": {
      "entry": [
        "src/index.tsx",
        "src/**/graphql/**/*.{ts,tsx}",
        "src/modules/geo-map/graphql-query/*.{ts,tsx}",
        "vitest.config.ts",
        "lingui.config.ts",
        "nyc.config.cjs",
        "jest-failures-only-reporter.cjs"
      ],
      "graphql-codegen": [
        "codegen.cjs",
        "codegen-admin.cjs",
        "codegen-metadata.cjs"
      ],
      "ignore": ["src/locales/generated/**", ".eloqnt/config.ts"],
      "ignoreDependencies": [
        "@babel/preset-typescript",
        "@storybook/addon-coverage",
        "buffer",
        "emojibase-data",
        "esbuild",
        "playwright",
        "rollup-plugin-node-polyfills"
      ]
    },
    "packages/twenty-oxlint-rules": {
      "entry": ["scripts/**/*.mjs"],
      "ignoreDependencies": ["eslint", "eslint-plugin-lingui", "oxlint"]
    },
    "packages/twenty-ui": {
      "entry": ["scripts/**/*.ts", "docs/**/*.ts"],
      "ignore": ["src/styles/abstracts/**"],
      "ignoreDependencies": ["@storybook/addon-coverage", "@swc/core"]
    }
  }
}