TypeScript 7.0 is the native compiler and ships no JavaScript API, which typescript-eslint still needs. Install both, as Microsoft documents it: - "@typescript/native": "npm:typescript@^7.0.2" gives `tsc` = 7.0 - "typescript": "npm:@typescript/typescript6@^6.0.2" gives the 6.0 API that typescript-eslint loads (its peer range stops below 6.1), and `tsc6` CI fails if `tsc` ever resolves to TypeScript 6 (@typescript/old, pulled in by the 6.0 package, ships a `tsc` too). tsconfig.json (src): - target ES2025: the newest year TypeScript 7.0, esbuild and Vite all know - lib ES2022 + DOM: the browser floor (Vite's baseline-widely-available, Chrome 111 / Safari 16.4 / Firefox 114), because nothing polyfills - baseUrl removed (gone in 7.0; paths were already relative), DOM.Iterable dropped (merged into DOM), `types: []` spelled out, erasableSyntaxOnly and verbatimModuleSyntax on (both clean) tsconfig.check.json: lib ES2025 for tests, scripts, worker and build plugins. Platform floor: the Tauri build no longer lowers to es2020; it shares the web build's baseline (the stylesheet already needed Chromium 99+ / Safari 15.4+). macOS minimumSystemVersion is 11.0 (the build is arm64). Also: eslint.config.js uses ESLint's defineConfig (tseslint.config is deprecated); THIRD_PARTY_NOTICES names the real package behind an npm alias, sorted with a shared code-unit comparator (src/utils/sort.ts); Dependabot groups typescript + @typescript/*; a test's typed-array annotation follows TypeScript 7's lib.dom. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
90 lines
3.1 KiB
JSON
90 lines
3.1 KiB
JSON
{
|
|
"name": "yt-desc-gen",
|
|
"version": "1.2.0",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=26"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint": "eslint src/ tests/ scripts/ worker/ build-plugins/",
|
|
"lint:fix": "eslint src/ tests/ scripts/ worker/ build-plugins/ --fix",
|
|
"knip": "knip",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:all": "tsc --noEmit -p tsconfig.check.json",
|
|
"format": "prettier --write \"{src,tests,scripts,worker,build-plugins}/**/*.{ts,tsx,css}\"",
|
|
"format:check": "prettier --check \"{src,tests,scripts,worker,build-plugins}/**/*.{ts,tsx,css}\"",
|
|
"check:version": "tsx scripts/check-version-sync.ts",
|
|
"validate:locales": "tsx scripts/validate-locales.ts",
|
|
"generate:locale": "tsx scripts/generate-locale-template.ts",
|
|
"tauri": "tauri",
|
|
"tauri:dev": "tauri dev",
|
|
"tauri:build": "tauri build",
|
|
"generate:brand": "tsx scripts/generate-brand-assets.ts",
|
|
"cf:dev": "wrangler dev",
|
|
"cf:check": "wrangler deploy --dry-run --outdir .wrangler/dry-run",
|
|
"check:tauri": "tsx scripts/check-tauri-versions.ts",
|
|
"check:bundle": "tsx scripts/check-bundle-size.ts",
|
|
"check:licenses": "tsx scripts/third-party.ts",
|
|
"generate:third-party": "tsx scripts/third-party.ts --write",
|
|
"check:copyright": "tsx scripts/check-copyright.ts",
|
|
"update:copyright": "tsx scripts/check-copyright.ts --write"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/inter": "^5.3.0",
|
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
"@tauri-apps/api": "^2.12.3",
|
|
"@tauri-apps/plugin-opener": "^2.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"i18next": "^26.4.4",
|
|
"i18next-resources-to-backend": "^1.2.3",
|
|
"lucide-react": "^1.55.0",
|
|
"motion": "^13.5.1",
|
|
"radix-ui": "^1.8.0",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"react-i18next": "^17.0.16",
|
|
"react-router-dom": "^7.18.4",
|
|
"simple-icons": "^16.33.0",
|
|
"sonner": "^2.0.8",
|
|
"zustand": "^5.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@resvg/resvg-js": "2.6.2",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@tauri-apps/cli": "2.12.2",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@types/node": "^26.6.3",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"@vitest/coverage-v8": "^4.1.11",
|
|
"autoprefixer": "^10.6.1",
|
|
"eslint": "^10.12.0",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"knip": "^6.41.0",
|
|
"marked": "18.1.1",
|
|
"postcss": "^8.5.29",
|
|
"prettier": "^3.9.10",
|
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
"tailwindcss": "^4.3.3",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
"typescript-eslint": "^8.71.1",
|
|
"vite": "^8.3.4",
|
|
"vitest": "^4.1.11",
|
|
"wrangler": "4.149.0"
|
|
}
|
|
}
|