mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-04 03:59:41 +08:00
* chore(types): typecheck the HTTP wrapper and editor server files server.ts, editor-server.ts and browser.ts were in no TypeScript project: studio/tsconfig.json covers studio/src only, and scripts/check.ts removes types without checking them. The wrapper is the file that decides whether a request is local, same-origin and project-scoped, and the editor server owns the static allowlist, so a type error there would only surface at runtime. Adding the three files to the existing typecheck:backend script is enough - the script already runs in CI's checks lane - and tsc reports no errors on the current tree, so this is a coverage change, not a fixup. Everything the files import is already in the same module graph. Verified: pm run typecheck:backend exits 0, pm run check still passes. * chore: check erasable syntax in backend entry points --------- Co-authored-by: lefarcen <935902669@qq.com>
101 lines
4.6 KiB
JSON
101 lines
4.6 KiB
JSON
{
|
|
"name": "openmotion",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22.18.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "npm run build:studio && node --env-file=.env.development --experimental-strip-types server.ts",
|
|
"mcp": "node --experimental-strip-types mcp.ts",
|
|
"start": "node --experimental-strip-types preview.ts",
|
|
"test": "node --experimental-strip-types --test tests/*.test.ts",
|
|
"check": "node --experimental-strip-types scripts/check.ts",
|
|
"package:plugin": "node --experimental-strip-types scripts/package.ts",
|
|
"package:phase1": "npm run build:studio && node --experimental-strip-types scripts/package.ts --mcp-profile=phase1",
|
|
"package:test": "node scripts/test-package.mjs",
|
|
"package:npm": "npm run build:studio && node scripts/package-npm.mjs",
|
|
"build:studio": "npm run build:inline && npm run build:template-cards && vite build --config studio/vite.config.ts",
|
|
"build:tracking": "tsc -p tracking/tsconfig.json",
|
|
"typecheck:studio": "tsc -p studio/tsconfig.json",
|
|
"design:tokens": "node --experimental-strip-types scripts/design-tokens.ts",
|
|
"design:check": "node --experimental-strip-types scripts/design-check.ts",
|
|
"pretest": "npm run build:studio",
|
|
"prepackage:plugin": "npm run build:studio",
|
|
"test:studio": "vitest run --config studio/vitest.config.ts",
|
|
"verify:export": "node --experimental-strip-types scripts/verify-export.ts",
|
|
"catalog:import": "node --experimental-strip-types scripts/import-hyperframes.ts",
|
|
"catalog:covers": "node --experimental-strip-types scripts/cache-template-covers.ts",
|
|
"catalog:metadata": "node --experimental-strip-types scripts/sync-template-metadata.ts",
|
|
"export:adapters": "node --experimental-strip-types scripts/export-adapters.ts",
|
|
"storage:check": "node --experimental-strip-types scripts/check-repository-storage.ts",
|
|
"templates:check": "node --experimental-strip-types scripts/check-template-library.ts",
|
|
"templates:export": "node --experimental-strip-types scripts/template-library.ts export",
|
|
"templates:manifest": "node --experimental-strip-types scripts/template-library.ts manifest",
|
|
"media:prepare": "node --experimental-strip-types scripts/prepare-pr-media.ts",
|
|
"media:pull": "node --experimental-strip-types scripts/repository-media.ts",
|
|
"design:dev": "node packages/design-system/workbench/server.js",
|
|
"design:test": "node --test packages/design-system/workbench/*.test.js",
|
|
"build:inline": "node scripts/build-inline-ui.mjs",
|
|
"typecheck:backend": "tsc --noEmit --erasableSyntaxOnly --target es2024 --module nodenext --moduleResolution nodenext --allowImportingTsExtensions --skipLibCheck --esModuleInterop mcp.ts phase1.ts inline-video.ts shared/phase1-tools.ts server.ts editor-server.ts browser.ts",
|
|
"typecheck:template-cards": "tsc -p mcp-ui/tsconfig.json",
|
|
"build:template-cards": "npm run typecheck:template-cards && node --experimental-strip-types scripts/build-template-cards.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@hyperframes/core": "0.9.7",
|
|
"@hyperframes/parsers": "0.9.7",
|
|
"@hyperframes/player": "0.9.7",
|
|
"@hyperframes/sdk": "0.9.7",
|
|
"@hyperframes/shader-transitions": "0.9.7",
|
|
"@hyperframes/studio-server": "0.9.7",
|
|
"acorn": "8.19.0",
|
|
"fontkit": "2.0.4",
|
|
"gsap": "3.15.0",
|
|
"hyperframes": "0.9.7",
|
|
"puppeteer-core": "25.16.0"
|
|
},
|
|
"overrides": {
|
|
"undici": "7.30.1",
|
|
"@modelcontextprotocol/server": "2.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@base-ui/react": "1.7.0",
|
|
"@codemirror/autocomplete": "6.20.4",
|
|
"@codemirror/commands": "6.11.1",
|
|
"@codemirror/lang-css": "6.3.1",
|
|
"@codemirror/lang-html": "6.4.12",
|
|
"@codemirror/lang-javascript": "6.2.5",
|
|
"@codemirror/lang-markdown": "6.5.2",
|
|
"@codemirror/language": "6.13.1",
|
|
"@codemirror/search": "6.7.2",
|
|
"@codemirror/state": "6.7.6",
|
|
"@codemirror/view": "6.40.0",
|
|
"@lezer/highlight": "1.2.5",
|
|
"@mcp-b/global": "5.0.1",
|
|
"@modelcontextprotocol/ext-apps": "2.0.4",
|
|
"@phosphor-icons/react": "2.1.10",
|
|
"@powerformer/vela-cli": "0.1.10",
|
|
"@tailwindcss/vite": "4.3.3",
|
|
"@tanstack/react-virtual": "3.14.25",
|
|
"@types/node": "22.19.1",
|
|
"@types/react": "19.2.7",
|
|
"@types/react-dom": "19.2.3",
|
|
"@vitejs/plugin-react": "4.7.0",
|
|
"cn": "0.2.4",
|
|
"dockview-react": "8.3.1",
|
|
"esbuild": "0.28.2",
|
|
"fake-indexeddb": "6.2.5",
|
|
"happy-dom": "21.0.4",
|
|
"jsdom": "30.1.3",
|
|
"mediabunny": "1.45.3",
|
|
"react": "19.2.9",
|
|
"react-dom": "19.2.9",
|
|
"tailwindcss": "4.3.3",
|
|
"typescript": "5.9.3",
|
|
"vite": "6.4.5",
|
|
"vitest": "4.1.12",
|
|
"zustand": "5.0.11"
|
|
}
|
|
}
|