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>
88 lines
2.2 KiB
JSON
88 lines
2.2 KiB
JSON
{
|
|
"name": "@pascal-app/mcp",
|
|
"version": "0.3.1",
|
|
"description": "Model Context Protocol server for Pascal 3D editor",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./server": {
|
|
"types": "./dist/server.d.ts",
|
|
"import": "./dist/server.js",
|
|
"default": "./dist/server.js"
|
|
},
|
|
"./storage": {
|
|
"types": "./dist/storage/index.d.ts",
|
|
"import": "./dist/storage/index.js",
|
|
"default": "./dist/storage/index.js"
|
|
},
|
|
"./storage/types": {
|
|
"types": "./dist/storage/types.d.ts",
|
|
"import": "./dist/storage/types.js",
|
|
"default": "./dist/storage/types.js"
|
|
},
|
|
"./operations": {
|
|
"types": "./dist/operations/index.d.ts",
|
|
"import": "./dist/operations/index.js",
|
|
"default": "./dist/operations/index.js"
|
|
},
|
|
"./bridge": {
|
|
"types": "./dist/bridge/index.d.ts",
|
|
"import": "./dist/bridge/index.js",
|
|
"default": "./dist/bridge/index.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"pascal-mcp": "./dist/bin/pascal-mcp.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"examples",
|
|
"README.md",
|
|
"CHANGELOG.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --build",
|
|
"dev": "tsgo --build --watch",
|
|
"start": "bun dist/bin/pascal-mcp.js",
|
|
"test": "bun test",
|
|
"smoke": "bun run scripts/smoke.ts",
|
|
"prepublishOnly": "bun run build && bun test"
|
|
},
|
|
"peerDependencies": {
|
|
"@pascal-app/core": "^0.9.1"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"zod": "^4.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@pascal-app/core": "^0.9.1",
|
|
"@pascal/typescript-config": "*",
|
|
"@types/node": "^22.19.20",
|
|
"typescript": "6.0.3"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"model-context-protocol",
|
|
"pascal",
|
|
"3d",
|
|
"building",
|
|
"editor",
|
|
"ai"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/pascalorg/editor.git",
|
|
"directory": "packages/mcp"
|
|
},
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/pascalorg/editor/tree/main/packages/mcp#readme",
|
|
"bugs": "https://github.com/pascalorg/editor/issues"
|
|
}
|