Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
155 lines (155 loc) · 4.77 KB
/
Copy pathpackage.json
File metadata and controls
155 lines (155 loc) · 4.77 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
{
"name": "react-code-canvas",
"version": "5.1.0",
"packageManager": "bun@1.3.14",
"sideEffects": false,
"description": "A browser-based canvas for rendering React components at runtime",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"./builder": {
"types": "./dist/builder/standalone.d.ts",
"import": "./dist/builder.mjs"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"skills"
],
"scripts": {
"dev": "bun run storybook",
"build": "bun run generate:scopes && rm -rf dist && rollup -c",
"test": "jest",
"test:coverage": "jest --coverage",
"test:manual:transformer": "bun run scripts/manual/test-custom-transformer.js",
"test:manual:analyzer": "bun run scripts/manual/test-analyze-react-code.js",
"test:manual:site": "bun run scripts/manual/test-standalone-site.mjs",
"demo:site": "bun run test:manual:site scripts/manual/fixtures/demo-page.jsx demo-site",
"size": "bun run build && size-limit",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"docs:install": "bun install --cwd doc_site",
"docs:dev": "bun run docs:install && bun --cwd doc_site start",
"docs:build": "bun run docs:install && bun --cwd doc_site build",
"docs:serve": "bun run docs:install && bun --cwd doc_site serve",
"clean": "rm -rf node_modules dist .cache storybook-static coverage bundle-analysis.html doc_site/node_modules doc_site/build doc_site/.docusaurus",
"reinstall": "rm -rf node_modules && bun install",
"prepublishOnly": "bun run test && bun run build",
"generate:scopes": "bun run scripts/generate-scope-maps.mjs"
},
"dependencies": {
"@babel/standalone": "8.0.4",
"@emotion/is-prop-valid": "^1.4.0",
"@emotion/react": "^11.14.0",
"lucide-react": "0.577.0",
"motion": "^12.43.0",
"prism-react-renderer": "^2.4.1",
"react-helmet-async": "3.0.0",
"react-icons": "5.7.0",
"react-simple-code-editor": "^0.14.1",
"recharts": "^3.10.1",
"sucrase": "^3.35.1"
},
"peerDependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0",
"esbuild": ">=0.20",
"tailwindcss": ">=4.0"
},
"peerDependenciesMeta": {
"esbuild": {
"optional": true
},
"tailwindcss": {
"optional": true
}
},
"devDependencies": {
"@babel/preset-env": "^7.29.7",
"@babel/preset-react": "^7.29.7",
"@babel/preset-typescript": "^7.29.7",
"@chromatic-com/storybook": "^5.2.1",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@size-limit/preset-big-lib": "^13.0.2",
"@storybook/addon-docs": "^10.5.5",
"@storybook/addon-links": "^10.5.5",
"@storybook/addon-mcp": "^0.7.0",
"@storybook/addon-onboarding": "^10.5.5",
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
"@storybook/react": "^10.5.5",
"@storybook/react-vite": "^10.5.5",
"@storybook/react-webpack5": "^10.5.5",
"@testing-library/jest-dom": "^7.0.0",
"@testing-library/react": "^16.3.2",
"@types/jest": "^30.0.0",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.4",
"@types/react-helmet": "^6.1.11",
"babel-jest": "^30.4.1",
"esbuild": "^0.28.1",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"package-size": "^2.3.0",
"path": "^0.12.7",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"rollup": "^4.62.3",
"rollup-plugin-import-css": "^4.2.1",
"rollup-plugin-typescript2": "^0.37.0",
"rollup-plugin-visualizer": "^7.0.1",
"size-limit": "^13.0.2",
"storybook": "^10.5.5",
"tailwindcss": "^4.3.3"
},
"overrides": {
"typescript": "^5.8.2"
},
"size-limit": [
{
"name": "ReactCanvas (what a consumer actually loads)",
"path": "dist/index.esm.js",
"import": "{ ReactCanvas }",
"limit": "120 kB"
},
{
"name": "cjs entry",
"path": "dist/index.js",
"limit": "140 kB"
}
],
"keywords": [
"react",
"code-runner",
"live-preview",
"code-editor"
],
"author": "James Titus",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jamestitus299/react-code-canvas.git"
},
"bugs": {
"url": "https://github.com/jamestitus299/react-code-canvas.git/issues"
},
"homepage": "https://github.com/jamestitus299/react-code-canvas.git#readme",
"trustedDependencies": [
"@swc/core",
"ejs",
"esbuild",
"fsevents",
"unrs-resolver"
]
}