Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

5.5 KB
Raw Blame
{
  "name": "open-knowledge",
  "license": "GPL-3.0-or-later",
  "private": true,
  "type": "module",
  "packageManager": "[email protected]",
  "engines": {
    "node": ">=24.2.0"
  },
  "devEngines": {
    "runtime": {
      "name": "node",
      "version": "24.21.0",
      "onFail": "download"
    }
  },
  "scripts": {
    "postinstall": "node scripts/create-turbo-cache-key.mjs && node packages/app/scripts/compile-i18n-catalogs.ts --best-effort",
    "knip": "turbo run build --filter=@inkeep/open-knowledge-server --filter=@inkeep/open-knowledge-core --output-logs=errors-only && node packages/app/scripts/compile-i18n-catalogs.ts && knip",
    "notices": "node scripts/generate-third-party-notices.mjs",
    "schema:dump": "node --import tsx packages/core/scripts/dump-schema.ts",
    "build": "turbo run build",
    "build:desktop": "turbo run build:desktop",
    "build:desktop:dir": "turbo run build:desktop:dir",
    "check:desktop": "turbo run lint typecheck test --filter=@inkeep/open-knowledge-desktop && pnpm run test:uncached",
    "check:fast": "pnpm run typecheck",
    "check:doc-links": "pnpm --dir docs run validate-link",
    "check:server-test-inputs": "node scripts/check-server-test-inputs.mjs",
    "check:drift": "pnpm run check:drift:guards && vitest run --config vitest.scripts.config.ts",
    "check:drift:guards": "bash scripts/check-husky-prepare-guard.sh && bash scripts/check-knip-clean.sh && bash scripts/check-notices-clean.sh && bash scripts/check-schema-snapshot-clean.sh && bash scripts/check-i18n-drift.sh && node scripts/check-i18n-compiled-catalogs-untracked.mjs && node scripts/check-i18n-new-string-translations.mjs && node scripts/check-i18n-picker-completeness.mjs && bash scripts/check-no-major-changeset.sh && node scripts/check-override-floors.mjs && node scripts/check-typescript-resolution.mjs",
    "typecheck": "turbo run typecheck",
    "test": "turbo run test test:uncached",
    "test:uncached": "vitest run --config vitest.uncached.config.ts",
    "known-reds": "node scripts/known-reds.mjs",
    "test:vitest-selftest": "vitest run",
    "smoke:share-v2": "node --import tsx --conditions=development packages/server/share-v2-smoke.ts",
    "lint": "pnpm run lint:biome && pnpm run lint:oxlint",
    "lint:biome": "biome check packages docs *.json *.jsonc *.ts --error-on-warnings",
    "lint:oxlint": "oxlint --max-warnings 0 .",
    "format": "pnpm run lint:biome --write --unsafe",
    "check": "pnpm run lint && pnpm exec turbo run build typecheck test test:uncached",
    "check:full:parallel": "pnpm run check:drift:guards && pnpm run check:server-test-inputs && pnpm run lint && pnpm run check:doc-links && vitest run --config vitest.scripts.config.ts && turbo run build typecheck check:dts test test:uncached test:dom test:integration:shard1 test:integration:shard2 test:integration:shard3 test:integration:shard4 test:integration:shard5 test:integration:shard6 test:integration:shard7 test:integration:shard8 test:integration:shard9 test:integration:shard10 test:integration:shard11 test:integration:shard12 test:conversion test:perf:regression:unit test:health:unit test:health test:e2e test:perf test:a11y --concurrency=100% --output-logs=errors-only",
    "tier1": "pnpm run check",
    "tier2": "pnpm run tier1 && turbo run test:perf:regression:unit test:health:unit test:health test:e2e",
    "tier3": "STRESS_FIDELITY=1 pnpm run tier2",
    "measure:fuzz": "cd packages/app && pnpm run measure:fuzz",
    "measure:stress": "cd packages/app && pnpm run measure:stress",
    "measure:sweep": "cd packages/app && pnpm run measure:sweep",
    "measure:generated-index-sweep": "pnpm --dir packages/server run measure:generated-index-sweep",
    "measure:observer-a-drain": "pnpm --dir packages/server run measure:observer-a-drain",

    "prepare": "bash scripts/husky-prepare.sh",
    "changeset": "changeset",
    "version": "changeset version",
    "release": "changeset publish",
    "typecheck:lint-plugins": "tsrs --noEmit -p lint-plugins/ok-rules/tsconfig.json",
    "typecheck:no-net-connect": "tsrs --noEmit -p test-support/tsconfig.no-net-connect.json"
  },
  "lint-staged": {
    "packages/**/*.{ts,tsx,js,jsx,json,md}": [
      "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --error-on-warnings",
      "oxlint --max-warnings 0 --no-error-on-unmatched-pattern"
    ],
    "docs/**/*.{ts,tsx,js,jsx,json,md}": [
      "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --error-on-warnings",
      "oxlint --max-warnings 0 --no-error-on-unmatched-pattern"
    ],
    "{package.json,turbo.json,tsconfig.json,biome.jsonc}": [
      "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --error-on-warnings"
    ],
    "{scripts,.github/scripts}/**/*.mjs": [
      "oxlint --max-warnings 0 --no-error-on-unmatched-pattern"
    ],
    "./*.ts": [
      "oxlint --max-warnings 0 --no-error-on-unmatched-pattern"
    ]
  },
  "devDependencies": {
    "@biomejs/biome": "2.5.11",
    "@changesets/cli": "^2.29.7",
    "@types/node": "^24.7.0",
    "@typescript/native": "npm:typescript@~7.0.2",
    "eslint-plugin-unicorn": "^79.0.0",
    "husky": "^9.1.7",
    "knip": "^6.26.0",
    "lint-staged": "^16.4.0",
    "oxlint": "1.80.0",
    "oxlint-plugin-eslint": "^1.80.0",
    "oxlint-tsgolint": "^7.0.2001",
    "smol-toml": "^1.6.1",
    "ts-morph": "^28.0.0",
    "tsrs": "0.18.0-ts7.1.0-dev.20260929",
    "tsx": "^4.20.0",
    "turbo": "^2.11.5",
    "typescript": "~6.0.3",
    "undici": "~7.29.0",
    "vitest": "^5.0.3",
    "yaml": "^2.8.3"
  },
  "puppeteer": {
    "skipDownload": true
  }
}