-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
74 lines (74 loc) · 2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "ssr-only-secrets",
"version": "0.1.3",
"description": "This package provides a way to pass secrets from Server Components into the SSR-run of Client Components, without them being accessible in the browser.",
"type": "module",
"main": "dist/types.cjs",
"exports": {
".": {
"require": {
"types": "./dist/types.d.cts",
"react-server": "./dist/rsc.cjs",
"node": "./dist/ssr.cjs",
"default": "./dist/browser.cjs"
},
"import": {
"types": "./dist/types.d.ts",
"react-server": "./dist/rsc.js",
"node": "./dist/ssr.js",
"default": "./dist/browser.js"
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/phryneas/ssr-only-secrets.git"
},
"author": "Lenz Weber-Tronic",
"license": "MIT",
"dependencies": {
"optimism": "^0.17.5"
},
"devDependencies": {
"@microsoft/api-documenter": "^7.23.16",
"@microsoft/api-extractor": "^7.39.1",
"@tsconfig/recommended": "^1.0.3",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"publint": "^0.2.7",
"rimraf": "^5.0.5",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"react": "^18 || ^19"
},
"scripts": {
"build": "yarn build:build && yarn publint && yarn build:docs && yarn build:readme",
"build:build": "tsup",
"build:docs": "rimraf temp; tsc; api-extractor run; api-documenter markdown --input-folder temp --output-folder docs",
"build:readme": "sed -n -e 's@(./@(https://github.com/phryneas/ssr-only-secrets/blob/main/docs/@' -e 's/^#\\(#.*\\) package/\\1/' -e '/^#/,$p' docs/ssr-only-secrets.md > README.md",
"prepare": "yarn build"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"tsup": {
"entry": [
"src/types.ts",
"src/rsc.ts",
"src/ssr.ts",
"src/browser.ts"
],
"splitting": false,
"sourcemap": true,
"clean": true,
"dts": true,
"format": [
"cjs",
"esm"
]
}
}