File size: 2,196 Bytes
98fbc6d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
  "name": "@trek/shared",
  "version": "3.1.0",
  "private": true,
  "description": "Shared API contracts (Zod schemas) — single source of truth for TREK server and client.",
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.cts",
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.mts",
        "default": "./dist/index.mjs"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./i18n": {
      "import": {
        "types": "./dist/i18n/index.d.mts",
        "default": "./dist/i18n/index.mjs"
      },
      "require": {
        "types": "./dist/i18n/index.d.cts",
        "default": "./dist/i18n/index.cjs"
      }
    },
    "./i18n/*": {
      "import": {
        "types": "./dist/i18n/*/index.d.mts",
        "default": "./dist/i18n/*/index.mjs"
      },
      "require": {
        "types": "./dist/i18n/*/index.d.cts",
        "default": "./dist/i18n/*/index.cjs"
      }
    }
  },
  "typesVersions": {
    "*": {
      "i18n": [
        "./dist/i18n/index.d.cts"
      ],
      "i18n/*": [
        "./dist/i18n/*/index.d.cts"
      ]
    }
  },
  "scripts": {
    "build": "tsdown",
    "build:watch": "tsdown --watch --no-clean",
    "test": "vitest run",
    "test:watch": "vitest",
    "typecheck": "tsc --noEmit",
    "format": "prettier --write \"src/**/*.ts\"",
    "format:check": "prettier --check \"src/**/*.ts\"",
    "lint": "eslint --fix \"src/**/*.ts\"",
    "i18n:parity": "node scripts/i18n-parity.mjs",
    "i18n:parity:strict": "node scripts/i18n-parity.mjs --strict"
  },
  "dependencies": {
    "isomorphic-dompurify": "^3.15.0",
    "zod": "^4.3.6"
  },
  "devDependencies": {
    "@eslint/js": "^10.0.1",
    "@trivago/prettier-plugin-sort-imports": "^6.0.2",
    "eslint": "^10.3.0",
    "eslint-config-flat-gitignore": "^2.3.0",
    "eslint-config-prettier": "^10.1.8",
    "eslint-plugin-prettier": "^5.5.5",
    "prettier": "3.8.3",
    "prettier-plugin-organize-imports": "^4.3.0",
    "tsdown": "^0.22.2",
    "typescript": "^6.0.2",
    "typescript-eslint": "^8.58.2",
    "vitest": "^4.1.9"
  }
}