Files
ruff/playground/knot/package.json
Micha Reiser 43ca85a351 [red-knot] Add run panel (#17002)
## Summary

This PR adds a new secondary panel to the red knot playground that
allows running the python code (current file) with
[pyodide](https://pyodide.org/en/stable/index.html) (currently Python
3.12 only).



## Test Plan


https://github.com/user-attachments/assets/7bda8ef7-19fb-4c2f-8e62-8e49a1416be1
2025-03-26 21:32:07 +00:00

40 lines
1.1 KiB
JSON

{
"name": "knot-playground",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"prebuild": "npm run build:wasm",
"build": "vite build",
"build:wasm": "wasm-pack build ../../crates/red_knot_wasm --target web --out-dir ../../playground/knot/red_knot_wasm",
"dev:wasm": "wasm-pack build ../../crates/red_knot_wasm --dev --target web --out-dir ../../playground/knot/red_knot_wasm",
"predev:build": "npm run dev:wasm",
"dev:build": "vite build",
"prestart": "npm run dev:wasm",
"start": "vite",
"preview": "vite preview"
},
"dependencies": {
"@monaco-editor/react": "^4.7.0",
"classnames": "^2.5.1",
"lz-string": "^1.5.0",
"monaco-editor": "^0.52.2",
"pyodide": "^0.27.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-resizable-panels": "^2.1.7",
"red_knot_wasm": "file:red_knot_wasm",
"shared": "0.0.0",
"smol-toml": "^1.3.1"
},
"overrides": {
"@monaco-editor/react": {
"react": "$react",
"react-dom": "$react-dom"
}
},
"devDependencies": {
"vite-plugin-static-copy": "^2.3.0"
}
}