@typecms/sdk 0.1.0

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 ADDED
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "@typecms/sdk",
3
+ "version": "0.1.0",
4
+ "description": "Type CMS SDK - Typed client for the Content API",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "main": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
16
+ "./types": {
17
+ "types": "./dist/types/index.d.ts",
18
+ "import": "./dist/types/index.js"
19
+ },
20
+ "./preview": {
21
+ "types": "./dist/preview/index.d.ts",
22
+ "import": "./dist/preview/index.js"
23
+ },
24
+ "./preview/vue": {
25
+ "types": "./dist/preview/vue.d.ts",
26
+ "import": "./dist/preview/vue.js"
27
+ },
28
+ "./preview/svelte": {
29
+ "types": "./dist/preview/svelte.d.ts",
30
+ "import": "./dist/preview/svelte.js"
31
+ },
32
+ "./preview/dom": {
33
+ "types": "./dist/preview/dom.d.ts",
34
+ "import": "./dist/preview/dom.js"
35
+ },
36
+ "./preview/next": {
37
+ "types": "./dist/preview/next.d.ts",
38
+ "import": "./dist/preview/next.js"
39
+ },
40
+ "./flags": {
41
+ "types": "./dist/flags/index.d.ts",
42
+ "import": "./dist/flags/index.js"
43
+ }
44
+ },
45
+ "files": [
46
+ "dist"
47
+ ],
48
+ "peerDependencies": {
49
+ "react": "^18.0.0 || ^19.0.0",
50
+ "vue": "^3.3.0",
51
+ "svelte": "^4.0.0 || ^5.0.0",
52
+ "@growthbook/growthbook": "^1.0.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "react": {
56
+ "optional": true
57
+ },
58
+ "vue": {
59
+ "optional": true
60
+ },
61
+ "svelte": {
62
+ "optional": true
63
+ },
64
+ "@growthbook/growthbook": {
65
+ "optional": true
66
+ }
67
+ },
68
+ "dependencies": {
69
+ "@types/react": "^18"
70
+ },
71
+ "devDependencies": {
72
+ "@types/node": "^20",
73
+ "react": "^18.0.0",
74
+ "tsup": "^8.0.0",
75
+ "typescript": "^5",
76
+ "vitest": "^4.0.16",
77
+ "vue": "^3.5.0",
78
+ "svelte": "^5.0.0",
79
+ "@growthbook/growthbook": "^1.6.0"
80
+ },
81
+ "scripts": {
82
+ "build": "tsup",
83
+ "dev": "tsup --watch",
84
+ "test": "vitest run",
85
+ "test:watch": "vitest",
86
+ "test:coverage": "vitest run --coverage",
87
+ "type-check": "tsc --noEmit",
88
+ "clean": "rm -rf dist node_modules .turbo coverage"
89
+ }
90
+ }