95 lines
2.7 KiB
JSON
95 lines
2.7 KiB
JSON
{
|
|
"name": "react-element-to-jsx-string",
|
|
"version": "14.3.4",
|
|
"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.15.7",
|
|
"@babel/core": "7.15.8",
|
|
"@babel/preset-env": "7.15.8",
|
|
"@babel/preset-flow": "7.14.5",
|
|
"@babel/preset-react": "7.14.5",
|
|
"@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.1.1",
|
|
"doctoc": "1.4.0",
|
|
"enzyme": "3.11.0",
|
|
"enzyme-adapter-react-16": "1.15.6",
|
|
"eslint": "6.8.0",
|
|
"eslint-config-algolia": "14.0.1",
|
|
"eslint-config-prettier": "6.15.0",
|
|
"eslint-plugin-import": "2.25.2",
|
|
"eslint-plugin-jest": "22.21.0",
|
|
"eslint-plugin-prettier": "3.4.1",
|
|
"eslint-plugin-react": "7.26.1",
|
|
"esm": "3.2.25",
|
|
"expect": "27.2.5",
|
|
"flow-bin": "0.119.1",
|
|
"flow-copy-source": "2.0.9",
|
|
"husky": "3.1.0",
|
|
"jest": "27.2.5",
|
|
"json": "10.0.0",
|
|
"lint-staged": "10.5.4",
|
|
"mversion": "2.0.1",
|
|
"prettier": "1.19.1",
|
|
"react": "16.14.0",
|
|
"react-dom": "16.14.0",
|
|
"react-test-renderer": "16.14.0",
|
|
"rollup": "2.58.0",
|
|
"rollup-plugin-babel": "4.4.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.3"
|
|
},
|
|
"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.1",
|
|
"is-plain-object": "5.0.0",
|
|
"react-is": "17.0.2"
|
|
},
|
|
"jest": {
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>tests/setupTests.js"
|
|
]
|
|
}
|
|
}
|