mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
2c5beee849
jsdom 31 failed 56 client test files: it simplifies calc() and reads an unset border as none in computed styles, and its File no longer carries what the upload tests hand it. It moves back to 29 with isomorphic-dompurify 3, which needs it; the lockfile is resolved from the one before the bump, so both sit at the root as they did. jsdom stays a root devDependency, so npm keeps the copy vitest resolves at the root. knip 6.45 reports tsconfig-paths, which test.yml loads from the server, as unlisted rather than unresolved; it is the server's dependency. The removed RTL text plugin took one swallowed catch with it, so that ESLint count is lowered to what the tree holds.
122 lines
3.4 KiB
JSON
122 lines
3.4 KiB
JSON
{
|
|
"name": "@trek/shared",
|
|
"version": "5.1.4",
|
|
"engines": {
|
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.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"
|
|
}
|
|
},
|
|
"./roadtrip": {
|
|
"import": {
|
|
"types": "./dist/roadtrip/planning.d.mts",
|
|
"default": "./dist/roadtrip/planning.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/roadtrip/planning.d.cts",
|
|
"default": "./dist/roadtrip/planning.cjs"
|
|
}
|
|
},
|
|
"./stickers": {
|
|
"import": {
|
|
"types": "./dist/book/stickers/index.d.mts",
|
|
"default": "./dist/book/stickers/index.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/book/stickers/index.d.cts",
|
|
"default": "./dist/book/stickers/index.cjs"
|
|
}
|
|
},
|
|
"./sanitize": {
|
|
"import": {
|
|
"types": "./dist/sanitize/sanitize.d.mts",
|
|
"default": "./dist/sanitize/sanitize.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/sanitize/sanitize.d.cts",
|
|
"default": "./dist/sanitize/sanitize.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",
|
|
"test:coverage": "vitest run --coverage",
|
|
"typecheck": "tsc --noEmit",
|
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
"lint": "eslint \"src/**/*.ts\"",
|
|
"lint:fix": "eslint --fix \"src/**/*.ts\"",
|
|
"lint:format": "node scripts/format-lint.mjs",
|
|
"i18n:parity": "node scripts/i18n-parity.mjs",
|
|
"i18n:parity:strict": "node scripts/i18n-parity.mjs --strict",
|
|
"contracts:open": "node scripts/open-request-schemas.mjs",
|
|
"i18n:untranslated": "node scripts/i18n-untranslated.mjs",
|
|
"i18n:untranslated:update": "node scripts/i18n-untranslated.mjs --update"
|
|
},
|
|
"dependencies": {
|
|
"isomorphic-dompurify": "^3.23.0",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
"@vitest/coverage-v8": "^4.1.11",
|
|
"eslint": "^10.11.0",
|
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"prettier": "3.10.1",
|
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
"tsdown": "^0.23.7",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.72.1",
|
|
"vitest": "^4.1.11"
|
|
}
|
|
}
|