UNPKG

react-element-to-jsx-string

Version:

Turn a ReactElement into the corresponding JSX string.

95 lines (94 loc) 2.78 kB
{ "name": "react-element-to-jsx-string", "version": "14.3.2", "description": "Turn a ReactElement into the corresponding JSX string.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "browser": "dist/cjs/index.js", "types": "index.d.ts", "scripts": { "build": "rollup -c", "build:flow": "flow-copy-source -v --ignore=*.spec.js src/ dist/cjs", "prebuild": "rm -rf dist/", "postbuild": "npm run build:flow", "prepare": "npm run build", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "flow": "flow", "precommit": "lint-staged", "prepublishOnly": "npm run build", "prettier:fix": "prettier --write \"**/*.{js,json}\"", "test": "jest", "test:watch": "jest --watch", "release": "./release.sh", "smoke": "node tests/smoke/run" }, "lint-staged": { "*.js": [ "prettier --write \"**/*.{js,json}\"", "git add" ] }, "author": { "name": "Algolia, Inc.", "url": "https://github.com/algolia" }, "license": "MIT", "repository": "algolia/react-element-to-jsx-string", "devDependencies": { "@babel/cli": "7.10.4", "@babel/core": "7.10.4", "@babel/preset-env": "7.10.4", "@babel/preset-flow": "7.10.4", "@babel/preset-react": "7.10.4", "@commitlint/cli": "8.3.5", "@commitlint/config-angular": "8.3.4", "babel-eslint": "10.1.0", "babel-jest": "24.9.0", "babel-register": "6.26.0", "conventional-changelog-cli": "2.0.34", "doctoc": "1.4.0", "enzyme": "3.11.0", "enzyme-adapter-react-16": "1.15.2", "eslint": "6.8.0", "eslint-config-algolia": "14.0.1", "eslint-config-prettier": "6.11.0", "eslint-plugin-import": "2.22.0", "eslint-plugin-jest": "22.21.0", "eslint-plugin-prettier": "3.1.4", "eslint-plugin-react": "7.20.3", "esm": "3.2.25", "expect": "24.9.0", "flow-bin": "0.119.1", "flow-copy-source": "2.0.9", "husky": "3.1.0", "jest": "24.9.0", "json": "9.0.6", "lint-staged": "10.2.11", "mversion": "1.13.0", "prettier": "1.19.1", "react": "16.13.1", "react-dom": "16.13.1", "react-test-renderer": "16.13.1", "rollup": "1.32.1", "rollup-plugin-babel": "4.4.0", "rollup-plugin-commonjs": "10.1.0", "rollup-plugin-node-builtins": "2.1.2", "rollup-plugin-node-globals": "1.4.0", "rollup-plugin-node-resolve": "5.2.0", "rollup-plugin-sourcemaps": "0.6.2" }, "peerDependencies": { "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1", "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" }, "dependencies": { "@base2/pretty-print-object": "1.0.0", "is-plain-object": "3.0.1" }, "jest": { "setupFilesAfterEnv": [ "<rootDir>tests/setupTests.js" ] } }