mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Partial redo of #34710. The changes there tried to use `z.function(args, return)` to be compatible across Zod v3 and v4, but Zod 4's function API has completely changed. Instead, I've updated to just use `z.any()` where we expect a function, and manually validate that it's a function before we call the value. We already have validation of the return type (also using Zod). Co-authored-by: kolvian <eliot@pontarelli.com>
34 lines
893 B
JSON
34 lines
893 B
JSON
{
|
|
"name": "react-compiler-healthcheck",
|
|
"version": "0.0.0-experimental-ab3118d-20240725",
|
|
"description": "Health check script to test violations of the rules of react.",
|
|
"bin": {
|
|
"react-compiler-healthcheck": "dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"build": "rimraf dist && tsup",
|
|
"test": "echo 'no tests'",
|
|
"watch": "yarn build --watch"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.24.4",
|
|
"@babel/parser": "^7.24.4",
|
|
"chalk": "4",
|
|
"fast-glob": "^3.3.2",
|
|
"ora": "5.4.1",
|
|
"yargs": "^17.7.2",
|
|
"zod": "^3.22.4 || ^4.0.0",
|
|
"zod-validation-error": "^3.0.3 || ^4.0.0"
|
|
},
|
|
"devDependencies": {},
|
|
"engines": {
|
|
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/facebook/react.git",
|
|
"directory": "compiler/packages/react-compiler-healthcheck"
|
|
}
|
|
}
|