@opentui/core-darwin-arm64 0.2.6 → 0.2.7

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.
@@ -1,3 +1,3 @@
1
1
  const module = await import("./libopentui.dylib", { with: { type: "file" } })
2
- const path = module.default
3
- export default path;
2
+
3
+ export default module.default
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const path: string
2
+ export default path
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { fileURLToPath } from "node:url"
2
+
3
+ export default fileURLToPath(new URL("./libopentui.dylib", import.meta.url))
package/libopentui.dylib CHANGED
Binary file
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "@opentui/core-darwin-arm64",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Prebuilt darwin-arm64 binaries for @opentui/core",
5
- "main": "index.ts",
6
- "types": "index.ts",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "module": "index.js",
8
+ "types": "index.d.ts",
7
9
  "license": "MIT",
8
10
  "repository": {
9
11
  "type": "git",
@@ -14,6 +16,13 @@
14
16
  "prebuild",
15
17
  "prebuilt"
16
18
  ],
19
+ "exports": {
20
+ ".": {
21
+ "bun": "./index.bun.js",
22
+ "import": "./index.js",
23
+ "types": "./index.d.ts"
24
+ }
25
+ },
17
26
  "os": [
18
27
  "darwin"
19
28
  ],