Make the editor packages compatible with, and benefit from, the native Go
compiler (TypeScript 7 / tsgo) while keeping the npm publish path on stable tsc.
- Add @typescript/native-preview (pinned 7.0.0-dev.20260624.1). tsgo coexists
with typescript@6, which Next typegen and the IDE plugin still need until the
TS 7.1 programmatic API ships.
- Fix two react-three-fiber JSX augmentations the native checker rejects but
tsc tolerated:
- viewer: map only LineBasicNodeMaterial (the one webgpu node material used as
a JSX tag) instead of the whole three/webgpu namespace (TS2320/TS2590).
- plane-box-select-tool: drop the redundant `IntrinsicElements extends
ThreeElements` block — it duplicated R3F's global augmentation and, by
referencing @react-three/fiber's ThreeElements directly, hit a bun peer-dep
variant-directory duplicate under tsgo (TS2320). r3f.d.ts already covers
those JSX intrinsics. Types-only — no runtime change.
- check-types -> tsgo --noEmit (editor, @repo/ui, editor app, ifc-converter app)
- emit-package dev watch -> tsgo --build --watch
- build/publish stay tsc --build (prepublishOnly + release.yml unchanged;
emitted .d.ts is byte-identical to tsc output)
- bump next 16.2.6 -> 16.2.9
tsc remains the source of truth and fallback. Published artifacts unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "editor",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "dotenv -e ../../.env.local -- next dev --port 3002",
|
|
"build": "dotenv -e ../../.env.local -- next build",
|
|
"start": "next start",
|
|
"lint": "biome lint",
|
|
"check-types": "next typegen && tsgo --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@iconify/react": "^6.0.2",
|
|
"@number-flow/react": "^0.6.0",
|
|
"@pascal-app/core": "*",
|
|
"@pascal-app/editor": "*",
|
|
"@pascal-app/mcp": "*",
|
|
"@pascal-app/nodes": "*",
|
|
"@pascal-app/viewer": "*",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@react-three/drei": "^10.7.7",
|
|
"@react-three/fiber": "^9.5.0",
|
|
"@tailwindcss/postcss": "^4.2.1",
|
|
"clsx": "^2.1.1",
|
|
"geist": "^1.7.0",
|
|
"lucide-react": "^1.7.0",
|
|
"next": "16.2.9",
|
|
"postcss": "^8.5.6",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tailwindcss": "^4.2.1",
|
|
"three": "^0.184.0",
|
|
"zod": "^4.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@pascal/typescript-config": "*",
|
|
"@types/howler": "^2.2.12",
|
|
"@types/node": "^22.19.12",
|
|
"@types/react": "19.2.2",
|
|
"@types/react-dom": "19.2.2",
|
|
"agentation": "^3.0.2",
|
|
"react-grab": "^0.1.29",
|
|
"react-scan": "^0.5.3",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "6.0.3"
|
|
}
|
|
}
|