@garretapp/sdk 0.2.0 → 0.2.1
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 +45 -12
package/package.json
CHANGED
|
@@ -1,29 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@garretapp/sdk",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Build
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Build widget packs for Garret — UI client + React hooks/components and an optional Node host runtime (defineHost).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sudharsan Selvaraj",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/sudharsan-selvaraj/garret.git",
|
|
10
|
+
"directory": "packages/sdk"
|
|
11
|
+
},
|
|
7
12
|
"type": "module",
|
|
8
13
|
"exports": {
|
|
9
14
|
".": {
|
|
10
|
-
"import": {
|
|
11
|
-
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/index.d.cts",
|
|
21
|
+
"default": "./dist/index.cjs"
|
|
22
|
+
}
|
|
12
23
|
},
|
|
13
24
|
"./host": {
|
|
14
|
-
"import": {
|
|
15
|
-
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/host.d.ts",
|
|
27
|
+
"default": "./dist/host.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/host.d.cts",
|
|
31
|
+
"default": "./dist/host.cjs"
|
|
32
|
+
}
|
|
16
33
|
},
|
|
17
34
|
"./ui": {
|
|
18
|
-
"import": {
|
|
19
|
-
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/ui.d.ts",
|
|
37
|
+
"default": "./dist/ui.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/ui.d.cts",
|
|
41
|
+
"default": "./dist/ui.cjs"
|
|
42
|
+
}
|
|
20
43
|
},
|
|
21
44
|
"./react": {
|
|
22
|
-
"import": {
|
|
23
|
-
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/react.d.ts",
|
|
47
|
+
"default": "./dist/react.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/react.d.cts",
|
|
51
|
+
"default": "./dist/react.cjs"
|
|
52
|
+
}
|
|
24
53
|
}
|
|
25
54
|
},
|
|
26
|
-
"files": [
|
|
55
|
+
"files": [
|
|
56
|
+
"dist"
|
|
57
|
+
],
|
|
27
58
|
"scripts": {
|
|
28
59
|
"build": "tsup src/index.ts src/host.ts src/ui.ts src/react.ts --format esm,cjs --dts --clean --treeshake",
|
|
29
60
|
"prepublishOnly": "npm run build"
|
|
@@ -32,6 +63,8 @@
|
|
|
32
63
|
"react": ">=18"
|
|
33
64
|
},
|
|
34
65
|
"peerDependenciesMeta": {
|
|
35
|
-
"react": {
|
|
66
|
+
"react": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
36
69
|
}
|
|
37
70
|
}
|