fix(react): correct runtime-plugin-support import path for published package (#962)

## Summary
- Fixed `runtime-plugin-support.ts` importing from `../src/index.js`
which doesn't exist in the published `dist/` (only `dist/index.js` does)
- Changed to `../index.js` to match the pattern `@opentui/solid` already
uses
- Added root `index.ts` barrel so the import resolves at dev time and
tsc can generate declarations

Fixes #960
This commit is contained in:
Matt Simpson
2026-04-22 05:22:15 +01:00
committed by GitHub
parent 248c51839c
commit 4fc3fd3bf7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
export * from "./src/index.js"
@@ -4,7 +4,7 @@ import { createRuntimePlugin, type RuntimeModuleEntry } from "@opentui/core/runt
import * as reactRuntime from "react"
import * as reactJsxRuntime from "react/jsx-runtime"
import * as reactJsxDevRuntime from "react/jsx-dev-runtime"
import * as opentuiReactRuntime from "../src/index.js"
import * as opentuiReactRuntime from "../index.js"
const runtimePluginSupportInstalledKey = "__opentuiReactRuntimePluginSupportInstalled__"