-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 2.85 KB
/
package.json
File metadata and controls
103 lines (103 loc) · 2.85 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
{
"name": "react-jitter",
"version": "0.6.0",
"description": "A developer tool for debugging React performance issues caused by hook changes and component re-renders.",
"exports": {
".": {
"types": "./index.d.ts"
},
"./runtime": {
"types": "./runtime/dist/index.d.ts",
"import": "./runtime/dist/index.mjs",
"require": "./runtime/dist/index.js"
},
"./plugin-swc": {
"default": "./plugin-swc/swc_plugin_react_jitter.wasm"
}
},
"main": "plugin-swc/swc_plugin_react_jitter.wasm",
"types": "./index.d.ts",
"typesVersions": {
"*": {
"runtime": [
"runtime/dist/index.d.ts"
],
"runtime/*": [
"runtime/dist/*"
]
}
},
"files": [
"index.d.ts",
"plugin-swc/swc_plugin_react_jitter.wasm",
"runtime/dist"
],
"scripts": {
"prepack": "npm run build",
"build": "npm run build:runtime && cd plugin-swc && rustup target add wasm32-wasip1 && cargo build --release --target wasm32-wasip1 && cp ./target/wasm32-wasip1/release/swc_plugin_react_jitter.wasm .",
"build:debug": "npm run build:runtime && cd plugin-swc && rustup target add wasm32-wasip1 && cargo build --target wasm32-wasip1 && cp ./target/wasm32-wasip1/debug/swc_plugin_react_jitter.wasm .",
"build:runtime": "npm run build --prefix runtime",
"test": "npm run build && vitest run --testTimeout=0",
"test:debug": "TEST_DEBUG=true npm run build:debug && vitest run --testTimeout=0",
"cargo:fix": "cd plugin-swc && cargo clippy --fix --all-targets --all-features --allow-dirty -- -D warnings",
"release": "npm run build && changeset publish",
"lint": "biome lint .",
"format": "biome format --write .",
"prepare": "husky"
},
"publishConfig": {
"access": "public"
},
"homepage": "https://github.com/sidx1024/react-jitter",
"repository": {
"type": "git",
"url": "git+https://github.com/sidx1024/react-jitter.git",
"directory": ""
},
"bugs": {
"url": "https://github.com/sidx1024/react-jitter/issues"
},
"author": "sidx1024",
"keywords": [
"react",
"react-hooks",
"performance",
"re-render",
"debug",
"developer-tools",
"swc",
"swc-plugin",
"instrumentation"
],
"license": "MIT",
"workspaces": [
".",
"runtime",
"plugin-swc"
],
"preferUnplugged": true,
"dependencies": {
"@swc/counter": "^0.1.3"
},
"devDependencies": {
"@biomejs/biome": "^2.1.3",
"@changesets/cli": "^2.29.5",
"@swc/core": "^1.15.0",
"@types/node": "^22.13.9",
"husky": "^9.1.7",
"lint-staged": "^16.1.2",
"vitest": "^3.0.7"
},
"lint-staged": {
"ignore": [
"runtime/dist/**/*"
],
"*.{js,jsx,ts,tsx}": [
"biome format --write --no-errors-on-unmatched",
"biome lint --no-errors-on-unmatched"
],
"*.rs": [
"bash -c 'npm run cargo:fix'"
]
}
}