-
Notifications
You must be signed in to change notification settings - Fork 356
Expand file tree
/
Copy pathpackage.json
More file actions
145 lines (145 loc) · 4.4 KB
/
Copy pathpackage.json
File metadata and controls
145 lines (145 loc) · 4.4 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "satori",
"version": "0.0.0-development.2",
"description": "Enlightened library to convert HTML and CSS to SVG.",
"module": "./dist/index.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"wasm": [
"./dist/index.d.ts"
]
}
},
"type": "module",
"license": "MPL-2.0",
"files": [
"dist/**",
"yoga.wasm"
],
"imports": {
"#satori/jsx/jsx-runtime": "./src/jsx/jsx-runtime.ts",
"#satori/jsx/jsx-dev-runtime": "./src/jsx/jsx-runtime.ts"
},
"exports": {
"./package.json": "./package.json",
"./yoga.wasm": "./yoga.wasm",
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./standalone": {
"import": {
"types": "./dist/standalone.d.ts",
"default": "./dist/standalone.js"
},
"require": {
"types": "./dist/standalone.d.cts",
"default": "./dist/standalone.cjs"
}
},
"./jsx": {
"types": "./dist/jsx/index.d.ts",
"import": "./dist/jsx/index.js",
"require": "./dist/jsx/index.cjs"
},
"./jsx/jsx-runtime": {
"types": "./dist/jsx/jsx-runtime.d.ts",
"import": "./dist/jsx/jsx-runtime.js",
"require": "./dist/jsx/jsx-runtime.cjs"
},
"./jsx/jsx-dev-runtime": {
"types": "./dist/jsx/jsx-runtime.d.ts",
"import": "./dist/jsx/jsx-runtime.js",
"require": "./dist/jsx/jsx-runtime.cjs"
}
},
"scripts": {
"prepare": "husky install",
"dev": "pnpm run dev:default",
"dev:default": "NODE_ENV=development tsup src/index.ts --watch --ignore-watch playground",
"dev:playground": "turbo dev --filter=satori-playground...",
"build": "pnpm run build:default && pnpm run build:standalone && pnpm run test:browser-build",
"build:default": "NODE_ENV=production tsup",
"build:standalone": "NODE_ENV=production SATORI_STANDALONE=1 tsup",
"test": "NODE_ENV=test vitest run",
"test:browser-build": "node test/browser-build.mjs",
"test:ui": "NODE_ENV=test vitest --ui --coverage.enabled",
"test-type": "tsc -p tsconfig.json --noEmit && tsc -p playground/tsconfig.json --noEmit",
"dev:test": "NODE_ENV=test vitest --update",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --quiet --cache",
"lint:fix": "pnpm lint --fix",
"prettier-check": "prettier --check .",
"prettier-fix": "prettier --write --list-different . --cache",
"ci-check": "concurrently \"pnpm prettier-check\" \"pnpm test-type\" \"pnpm lint\"",
"benchmark": "node --experimental-strip-types test/benchmark/index.ts"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --cache",
"prettier --write --cache"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/vercel/satori.git"
},
"keywords": [
"HTML",
"JSX",
"SVG",
"converter",
"renderer"
],
"author": "Shu Ding <g@shud.in>",
"bugs": {
"url": "https://github.com/vercel/satori/issues"
},
"homepage": "https://github.com/vercel/satori#readme",
"devDependencies": {
"@resvg/resvg-js": "^2.1.0",
"@types/node": "^16",
"@types/react": "^17.0.38",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"@vitest/coverage-v8": "^0.32.0",
"@vitest/ui": "^0.32.0",
"concurrently": "^7.3.0",
"esbuild-plugin-replace": "^1.2.0",
"eslint": "^8.25.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "8.0.3",
"jest-image-snapshot": "^6.1.0",
"lint-staged": "13.1.0",
"mitata": "^1.0.34",
"prettier": "^2.7.1",
"react": "^17.0.2",
"sharp": "^0.34.3",
"tsup": "^7.1.0",
"turbo": "^2.9.14",
"twrnc": "^3.4.0",
"typescript": "^5",
"vitest": "^0.32.0"
},
"dependencies": {
"@shuding/opentype.js": "1.4.0-beta.0",
"fflate": "0.7.3",
"css-background-parser": "^0.1.0",
"css-box-shadow": "1.0.0-3",
"css-gradient-parser": "^0.0.17",
"css-to-react-native": "^3.0.0",
"emoji-regex-xs": "^2.0.1",
"escape-html": "^1.0.3",
"harfbuzzjs": "0.10.0",
"linebreak": "^1.1.0",
"parse-css-color": "^0.2.1",
"postcss-value-parser": "^4.2.0",
"yoga-layout": "^3.2.1"
},
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
"engines": {
"node": ">=16"
}
}