mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 12:54:29 +00:00
* refactor: extract @hyperframes/studio-server package from core Moves all studio-api routes, helpers, and Hono server wiring from packages/core/src/studio-api/ into a new standalone packages/studio-server package (@hyperframes/studio-server). Core keeps thin re-export stubs at @hyperframes/core/studio-api and the subpath helpers (screenshot-clip, draft-markers, etc.) for backward compatibility. Consumer imports (cli studioServer, vite adapter/config, producer htmlCompiler, studio manualEditsTypes) are updated to import from @hyperframes/studio-server directly. Also exports rewriteInlineStyleAssetUrls from @hyperframes/core root (was in compiler/rewriteSubCompPaths.ts but not re-exported), required by @hyperframes/studio-server/helpers/subComposition. Removes postcss-selector-parser from @hyperframes/core dependencies (moved to @hyperframes/studio-server which owns the routes that used it). Depends on @hyperframes/parsers (PR #1755). * fix(ci): add parsers+studio-server to Dockerfile and build before preview tests * fix(ci): build @hyperframes/studio-server before Test and studio load smoke Studio's vite.config.ts imports @hyperframes/studio-server, which resolves via its "node" export condition to built dist. The Test and studio-load-smoke jobs only built parsers + core, so esbuild's config load failed to resolve the package entry. Build studio-server too. * fix(studio): repoint sdkCutoverParity test import to studio-server sourceMutation moved from core's studio-api to @hyperframes/studio-server; the test still imported the deleted core path. This was masked while studio's vite.config failed to load (couldn't resolve studio-server); now that the config loads, the test runs and the stale import surfaced.
110 lines
3.3 KiB
JSON
110 lines
3.3 KiB
JSON
{
|
|
"name": "@hyperframes/studio-server",
|
|
"version": "0.7.11",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/studio-server"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"node": "./dist/index.js",
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./screenshot-clip": {
|
|
"bun": "./src/helpers/screenshotClip.ts",
|
|
"node": "./dist/helpers/screenshotClip.js",
|
|
"import": "./src/helpers/screenshotClip.ts",
|
|
"types": "./src/helpers/screenshotClip.ts"
|
|
},
|
|
"./manual-edits-render-script": {
|
|
"bun": "./src/helpers/manualEditsRenderScript.ts",
|
|
"node": "./dist/helpers/manualEditsRenderScript.js",
|
|
"import": "./src/helpers/manualEditsRenderScript.ts",
|
|
"types": "./src/helpers/manualEditsRenderScript.ts"
|
|
},
|
|
"./studio-motion-render-script": {
|
|
"bun": "./src/helpers/studioMotionRenderScript.ts",
|
|
"node": "./dist/helpers/studioMotionRenderScript.js",
|
|
"import": "./src/helpers/studioMotionRenderScript.ts",
|
|
"types": "./src/helpers/studioMotionRenderScript.ts"
|
|
},
|
|
"./draft-markers": {
|
|
"bun": "./src/helpers/draftMarkers.ts",
|
|
"node": "./dist/helpers/draftMarkers.js",
|
|
"import": "./src/helpers/draftMarkers.ts",
|
|
"types": "./src/helpers/draftMarkers.ts"
|
|
},
|
|
"./finite-mutation": {
|
|
"bun": "./src/helpers/finiteMutation.ts",
|
|
"node": "./dist/helpers/finiteMutation.js",
|
|
"import": "./src/helpers/finiteMutation.ts",
|
|
"types": "./src/helpers/finiteMutation.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./package.json": "./package.json",
|
|
"./screenshot-clip": {
|
|
"import": "./dist/helpers/screenshotClip.js",
|
|
"types": "./dist/helpers/screenshotClip.d.ts"
|
|
},
|
|
"./manual-edits-render-script": {
|
|
"import": "./dist/helpers/manualEditsRenderScript.js",
|
|
"types": "./dist/helpers/manualEditsRenderScript.d.ts"
|
|
},
|
|
"./studio-motion-render-script": {
|
|
"import": "./dist/helpers/studioMotionRenderScript.js",
|
|
"types": "./dist/helpers/studioMotionRenderScript.d.ts"
|
|
},
|
|
"./draft-markers": {
|
|
"import": "./dist/helpers/draftMarkers.js",
|
|
"types": "./dist/helpers/draftMarkers.d.ts"
|
|
},
|
|
"./finite-mutation": {
|
|
"import": "./dist/helpers/finiteMutation.js",
|
|
"types": "./dist/helpers/finiteMutation.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit",
|
|
"prepublishOnly": "echo skip"
|
|
},
|
|
"dependencies": {
|
|
"@hyperframes/core": "workspace:*",
|
|
"@hyperframes/parsers": "workspace:*",
|
|
"hono": "^4.0.0",
|
|
"linkedom": "^0.18.12",
|
|
"postcss": "^8.5.8",
|
|
"postcss-selector-parser": "^7.1.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.10",
|
|
"tsup": "^8.0.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
}
|