@opentui/solid 0.1.90 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.1.90",
7
+ "version": "0.1.91",
8
8
  "description": "SolidJS renderer for OpenTUI",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@babel/core": "7.28.0",
37
37
  "@babel/preset-typescript": "7.27.1",
38
- "@opentui/core": "0.1.90",
38
+ "@opentui/core": "0.1.91",
39
39
  "babel-plugin-module-resolver": "5.0.2",
40
40
  "babel-preset-solid": "1.9.10",
41
41
  "entities": "7.0.1",
@@ -8,8 +8,8 @@ import {
8
8
  } from "@opentui/core/runtime-plugin"
9
9
  import * as solidJsRuntime from "solid-js"
10
10
  import * as solidJsStoreRuntime from "solid-js/store"
11
- import * as solidRuntime from "../index"
12
- import { ensureSolidTransformPlugin } from "./solid-plugin"
11
+ import * as solidRuntime from "../index.js"
12
+ import { ensureSolidTransformPlugin } from "./solid-plugin.js"
13
13
 
14
14
  const runtimePluginSupportInstalledKey = Symbol.for("opentui.solid.runtime-plugin-support")
15
15
 
@@ -80,18 +80,15 @@ export function createSolidTransformPlugin(input: CreateSolidTransformPluginOpti
80
80
  return {
81
81
  name: "bun-plugin-solid",
82
82
  setup: (build) => {
83
- build.onLoad(
84
- { filter: /[\/\\]node_modules[\/\\]solid-js[\/\\]dist[\/\\]server\.js(?:[?#].*)?$/ },
85
- async (args) => {
86
- const path = sourcePath(args.path).replace("server.js", "solid.js")
87
- const file = Bun.file(path)
88
- const code = await file.text()
89
- return { contents: code, loader: "js" }
90
- },
91
- )
83
+ build.onLoad({ filter: /[/\\]node_modules[/\\]solid-js[/\\]dist[/\\]server\.js(?:[?#].*)?$/ }, async (args) => {
84
+ const path = sourcePath(args.path).replace("server.js", "solid.js")
85
+ const file = Bun.file(path)
86
+ const code = await file.text()
87
+ return { contents: code, loader: "js" }
88
+ })
92
89
 
93
90
  build.onLoad(
94
- { filter: /[\/\\]node_modules[\/\\]solid-js[\/\\]store[\/\\]dist[\/\\]server\.js(?:[?#].*)?$/ },
91
+ { filter: /[/\\]node_modules[/\\]solid-js[/\\]store[/\\]dist[/\\]server\.js(?:[?#].*)?$/ },
95
92
  async (args) => {
96
93
  const path = sourcePath(args.path).replace("server.js", "store.js")
97
94
  const file = Bun.file(path)
@@ -1,5 +1,5 @@
1
1
  import { TimeToFirstDrawRenderable } from "@opentui/core";
2
- import type { ExtendedComponentProps } from "./types/elements";
2
+ import type { ExtendedComponentProps } from "./types/elements.js";
3
3
  declare module "@opentui/solid" {
4
4
  interface OpenTUIComponents {
5
5
  time_to_first_draw: typeof TimeToFirstDrawRenderable;