@corelauncher/rod 1.0.1 → 1.0.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corelauncher/rod",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Webview for bun based on tauri's tao and wry.",
5
5
  "keywords": [
6
6
  "corelauncher",
@@ -23,8 +23,8 @@
23
23
  "/target/release/rod.dll"
24
24
  ],
25
25
  "type": "module",
26
- "main": "/src-ts/index.ts",
27
- "module": "/src-ts/index.ts",
26
+ "main": "./src-ts/index.ts",
27
+ "module": "./src-ts/index.ts",
28
28
  "scripts": {
29
29
  "postinstall": "husky",
30
30
  "prepack": "cargo build --release",
package/src-ts/index.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  import Rod from "./classes/rod";
2
2
  export default Rod;
3
+ export { Rod };
4
+ export * from "./types";
@@ -1,7 +1,7 @@
1
- import { existsSync } from "node:fs";
2
- import { join } from "node:path";
3
-
4
- export function isPackaged() {
5
- const modules = join(import.meta.dir, "..", "..", "node_modules");
6
- return !existsSync(modules);
7
- }
1
+ import { existsSync } from "node:fs";
2
+ import { join } from "node:path";
3
+
4
+ export function isPackaged() {
5
+ const modules = join(import.meta.dir, "..", "..", "node_modules");
6
+ return !existsSync(modules);
7
+ }