Files
ruff/playground/package.json
Micha Reiser 90a8d92b2f [refactor] Convert playground to an NPM workspace (#16806)
## Summary

This is prep-work for the Red Knot playground. We'll have two
playgrounds, one for Red Knot and Ruff.
I want to share some components between the two, a "shared" NPM package
in a local workspace is a great fit for that.
I also want to share the dev dependencies and dev scripts. Again, NPM
workspaces are great for that.

This PR also sets up a CI workflow for the playground to prevent
surprises during the release.

## Test Plan

CI, local `npm install`, `npm start`, ...

I verified that the new CI step fails if there's a typescript or
formatting error.

* [Deployment test
run](https://github.com/astral-sh/ruff/actions/runs/13904914480/job/38905524353)
2025-03-17 17:56:45 +01:00

38 lines
930 B
JSON

{
"name": "playground",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"check": "npm run lint && npm run tsc",
"fmt": "prettier --cache -w .",
"fmt:check": "prettier --cache --check .",
"lint": "eslint --cache --ext .ts,.tsx ruff/src",
"tsc": "tsc"
},
"workspaces": [
"ruff"
],
"prettier": {
"trailingComma": "all"
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@tailwindcss/postcss": "^4.0.9",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react-swc": "^3.0.0",
"eslint": "^9.0.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^5.2.0",
"postcss": "^8.4.20",
"prettier": "^3.0.0",
"tailwindcss": "^4.0.9",
"typescript": "^5.1.6",
"typescript-eslint": "^8.25.0",
"vite": "^6.0.0",
"wasm-pack": "^0.13.1"
}
}