mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* feat(studio): add a light @hyperframes/studio/keys subpath for key parsing and defaults parseCombo, matchCombo and DEFAULT_STUDIO_KEYS, with their types, from an entry that imports nothing else, so a host can read Studio's keys without loading the editor. The defaults move to a module of their own, which studioShortcuts re-exports as before. * fix(studio): declare the keys subpath in package-subpaths.json and regenerate the manifest * test(studio): read the keys import graph with platform paths so it passes on Windows
39 lines
882 B
TypeScript
39 lines
882 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
tsconfig: "tsconfig.lib.json",
|
|
entry: {
|
|
index: "src/index.ts",
|
|
ui: "src/ui.ts",
|
|
player: "src/playerEntry.ts",
|
|
keys: "src/keys.ts",
|
|
"styles/tailwind-preset": "src/styles/tailwind-preset.ts",
|
|
},
|
|
format: ["esm"],
|
|
dts: true,
|
|
clean: false,
|
|
splitting: true,
|
|
external: [
|
|
"@codemirror/autocomplete",
|
|
"@codemirror/commands",
|
|
"@codemirror/lang-css",
|
|
"@codemirror/lang-html",
|
|
"@codemirror/lang-javascript",
|
|
"@codemirror/lang-markdown",
|
|
"@codemirror/language",
|
|
"@codemirror/search",
|
|
"@codemirror/state",
|
|
"@codemirror/view",
|
|
"@hyperframes/core",
|
|
"@hyperframes/player",
|
|
"@hyperframes/sdk",
|
|
"@lezer/highlight",
|
|
"@phosphor-icons/react",
|
|
"mediabunny",
|
|
"react",
|
|
"react-dom",
|
|
"react/jsx-runtime",
|
|
"zustand",
|
|
],
|
|
});
|