-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
245 lines (245 loc) · 7.42 KB
/
package.json
File metadata and controls
245 lines (245 loc) · 7.42 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"name": "@knighted/jsx",
"version": "1.13.1",
"description": "Runtime JSX tagged template that renders DOM or React trees anywhere with or without a build step.",
"keywords": [
"jsx runtime",
"tagged template",
"no-build jsx",
"dom rendering",
"react rendering",
"ssr",
"rspack loader",
"webpack loader",
"wasm parser",
"typescript plugin"
],
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"jsx": "./dist/cli/init.js"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./jsx-runtime": {
"types": "./dist/jsx-runtime.d.ts",
"import": "./dist/jsx-runtime.js",
"default": "./dist/jsx-runtime.js"
},
"./jsx-dev-runtime": {
"types": "./dist/jsx-runtime.d.ts",
"import": "./dist/jsx-runtime.js",
"default": "./dist/jsx-runtime.js"
},
"./debug": {
"types": "./dist/index.d.ts",
"import": "./dist/debug/index.js",
"default": "./dist/debug/index.js"
},
"./debug-tools": {
"types": "./dist/debug/diagnostics.d.ts",
"import": "./dist/debug/diagnostics.js",
"default": "./dist/debug/diagnostics.js"
},
"./lite": {
"types": "./dist/index.d.ts",
"import": "./dist/lite/index.js",
"default": "./dist/lite/index.js"
},
"./lite/debug": {
"types": "./dist/index.d.ts",
"import": "./dist/lite/debug/index.js",
"default": "./dist/lite/debug/index.js"
},
"./lite/debug-tools": {
"types": "./dist/debug/diagnostics.d.ts",
"import": "./dist/lite/debug/diagnostics.js",
"default": "./dist/lite/debug/diagnostics.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.js",
"default": "./dist/react/index.js"
},
"./react/lite": {
"types": "./dist/react/index.d.ts",
"import": "./dist/lite/react/index.js",
"default": "./dist/lite/react/index.js"
},
"./node": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/index.js",
"default": "./dist/node/index.js"
},
"./node/debug": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/debug/index.js",
"default": "./dist/node/debug/index.js"
},
"./node/lite": {
"types": "./dist/node/index.d.ts",
"import": "./dist/lite/node/index.js",
"default": "./dist/lite/node/index.js"
},
"./node/lite/debug": {
"types": "./dist/node/index.d.ts",
"import": "./dist/lite/node/debug/index.js",
"default": "./dist/lite/node/debug/index.js"
},
"./node/react": {
"types": "./dist/node/react/index.d.ts",
"import": "./dist/node/react/index.js",
"default": "./dist/node/react/index.js"
},
"./node/react/lite": {
"types": "./dist/node/react/index.d.ts",
"import": "./dist/lite/node/react/index.js",
"default": "./dist/lite/node/react/index.js"
},
"./transpile": {
"types": "./dist/transpile.d.ts",
"import": "./dist/transpile.js",
"default": "./dist/transpile.js"
},
"./transform": {
"types": "./dist/transform.d.ts",
"import": "./dist/transform.js",
"default": "./dist/transform.js"
},
"./loader": {
"import": "./dist/loader/jsx.js",
"default": "./dist/loader/jsx.js"
},
"./package.json": "./package.json"
},
"engines": {
"node": ">=22.21.1"
},
"engineStrict": true,
"scripts": {
"build": "duel --mode globals && npm run build:lite && npm run build:cli",
"prepare": "husky",
"precheck-types": "npm run build",
"check-types": "npm run check-types:lib && npm run check-types:demo && npm run check-types:test",
"check-types:lib": "tsc --noEmit --project tsconfig.json",
"check-types:demo": "tsc --noEmit --project examples/browser/tsconfig.json",
"check-types:test": "tsc --noEmit --project tsconfig.vitest.json",
"clean:deps": "rimraf node_modules",
"clean:dist": "rimraf dist",
"clean": "npm run clean:dist && npm run clean:deps",
"lint": "eslint src test",
"pretest": "npm run build",
"cycles": "oxlint --import-plugin --tsconfig tsconfig.json -A all -D import/no-cycle src test",
"prettier": "prettier -w .",
"prettier:check": "prettier --check .",
"test": "cross-env KNIGHTED_JSX_CLI_TEST=1 vitest run --coverage",
"test:watch": "cross-env KNIGHTED_JSX_CLI_TEST=1 vitest",
"test:e2e": "npm run build && npm run setup:wasm && npm run build:fixture && playwright test",
"build:fixture": "node scripts/build-rspack-fixture.mjs",
"demo:e2e-fixture": "npm run build && npx serve . -l tcp://127.0.0.1:4173",
"demo:node-ssr": "node test/fixtures/node-ssr/render.mjs",
"dev": "vite dev --config vite.config.ts",
"build:demo": "vite build --config vite.config.ts",
"preview": "vite preview --config vite.config.ts",
"build:lite": "tsup --config tsup.config.ts",
"build:cli": "tsup --config tsup.cli.config.ts",
"setup:wasm": "node scripts/setup-wasm.mjs",
"sizecheck": "node scripts/sizecheck.mjs",
"prepack": "npm run build"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@knighted/duel": "^4.0.2",
"@oxc-project/types": "^0.116.0",
"@playwright/test": "^1.58.2",
"@rspack/core": "^1.0.5",
"@types/jsdom": "^27.0.0",
"@types/node": "^22.10.1",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitest/coverage-v8": "^4.0.18",
"@vitest/eslint-plugin": "^1.6.9",
"cross-env": "^10.1.0",
"eslint": "^10.0.3",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-playwright": "^2.9.0",
"eslint-plugin-unicorn": "^63.0.0",
"husky": "^9.1.7",
"jsdom": "^27.2.0",
"lint-staged": "^16.2.7",
"lit": "^3.2.1",
"next": "^16.1.7",
"oxlint": "^1.51.0",
"prettier": "^3.7.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^6.1.2",
"serve": "^14.2.6",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"vite": "^7.2.4",
"vitest": "^4.0.14"
},
"dependencies": {
"@napi-rs/wasm-runtime": "^1.1.1",
"magic-string": "^0.30.21",
"oxc-parser": "^0.116.0",
"oxc-transform": "^0.116.0",
"property-information": "^7.1.0",
"tar": "^7.5.11"
},
"peerDependencies": {
"@types/react": ">=18",
"jsdom": "*",
"linkedom": "*",
"react": ">=18"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"react": {
"optional": true
},
"jsdom": {
"optional": true
},
"linkedom": {
"optional": true
}
},
"optionalDependencies": {
"@oxc-parser/binding-darwin-arm64": "^0.116.0",
"@oxc-parser/binding-linux-x64-gnu": "^0.116.0",
"@oxc-parser/binding-wasm32-wasi": "^0.116.0"
},
"files": [
"dist"
],
"author": "KCM <knightedcodemonkey@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/knightedcodemonkey/jsx.git"
},
"bugs": {
"url": "https://github.com/knightedcodemonkey/jsx/issues"
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 90,
"semi": false,
"singleQuote": true
},
"lint-staged": {
"src/**/*.{ts,tsx,js,jsx}": "npm run cycles",
"*.{js,jsx,ts,tsx,mjs,cjs,cts,mts}": "eslint --max-warnings=0",
"*.{js,jsx,ts,tsx,mjs,cjs,cts,mts,json,md,css,scss,html}": "prettier --check"
}
}