| 1 | { |
| 2 | "name": "snap", |
| 3 | "version": "0.0.1", |
| 4 | "public": false, |
| 5 | "description": "Snapshot testing CLI tool", |
| 6 | "main": "dist/main.js", |
| 7 | "license": "MIT", |
| 8 | "files": [ |
| 9 | "src" |
| 10 | ], |
| 11 | "scripts": { |
| 12 | "postinstall": "./scripts/link-react-compiler-runtime.sh && perl -p -i -e 's/react\\.element/react.transitional.element/' ../../node_modules/fbt/lib/FbtReactUtil.js && perl -p -i -e 's/didWarnAboutUsingAct = false;/didWarnAboutUsingAct = true;/' ../../node_modules/react-dom/cjs/react-dom-test-utils.development.js", |
| 13 | "build": "rimraf dist && concurrently -n snap,runtime \"tsc --build\" \"yarn --silent workspace react-compiler-runtime build\"", |
| 14 | "snap": "node dist/main.js", |
| 15 | "test": "echo 'no tests'", |
| 16 | "prettier": "prettier --write 'src/**/*.ts'" |
| 17 | }, |
| 18 | "repository": { |
| 19 | "type": "git", |
| 20 | "url": "git+https://github.com/react/react.git", |
| 21 | "directory": "compiler/packages/snap" |
| 22 | }, |
| 23 | "dependencies": { |
| 24 | "@babel/code-frame": "^7.22.5", |
| 25 | "@babel/generator": "^7.19.1", |
| 26 | "@babel/plugin-syntax-jsx": "^7.18.6", |
| 27 | "@babel/preset-flow": "^7.7.4", |
| 28 | "@babel/preset-typescript": "^7.26.0", |
| 29 | "@parcel/watcher": "^2.1.0", |
| 30 | "@testing-library/react": "^13.4.0", |
| 31 | "babel-plugin-idx": "^3.0.3", |
| 32 | "babel-plugin-syntax-hermes-parser": "^0.25.1", |
| 33 | "chalk": "4", |
| 34 | "fbt": "^1.0.2", |
| 35 | "glob": "^10.3.10", |
| 36 | "hermes-parser": "^0.32.0", |
| 37 | "jsdom": "^22.1.0", |
| 38 | "react": "0.0.0-experimental-4beb1fd8-20241118", |
| 39 | "react-dom": "0.0.0-experimental-4beb1fd8-20241118", |
| 40 | "readline": "^1.3.0", |
| 41 | "yargs": "^17.7.1", |
| 42 | "zod": "^3.25.0 || ^4.0.0", |
| 43 | "zod-validation-error": "^3.5.0 || ^4.0.0" |
| 44 | }, |
| 45 | "devDependencies": { |
| 46 | "@babel/core": "^7.19.1", |
| 47 | "@babel/parser": "^7.20.15", |
| 48 | "@babel/plugin-transform-modules-commonjs": "^7.18.6", |
| 49 | "@babel/preset-react": "^7.18.6", |
| 50 | "@babel/traverse": "^7.19.1", |
| 51 | "@types/babel__code-frame": "^7.0.6", |
| 52 | "@types/fbt": "^1.0.4", |
| 53 | "@types/glob": "^8.1.0", |
| 54 | "@types/node": "^18.7.18", |
| 55 | "@typescript-eslint/eslint-plugin": "^7.4.0", |
| 56 | "@typescript-eslint/parser": "^7.4.0", |
| 57 | "object-assign": "^4.1.1" |
| 58 | }, |
| 59 | "resolutions": { |
| 60 | "./**/@babel/parser": "7.7.4", |
| 61 | "./**/@babel/types": "7.7.4", |
| 62 | "@babel/generator": "7.2.0", |
| 63 | "@babel/preset-flow": "7.22.5" |
| 64 | } |
| 65 | } |