@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 +3 -3
- package/src-ts/index.ts +2 -0
- package/src-ts/utilities/npm.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corelauncher/rod",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
27
|
-
"module": "
|
|
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
package/src-ts/utilities/npm.ts
CHANGED
|
@@ -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
|
+
}
|