UNPKG

@splitsoftware/splitio-react

Version:

A React library to easily integrate and use Split JS SDK

112 lines (111 loc) 3.45 kB
{ "name": "@splitsoftware/splitio-react", "version": "2.6.2", "description": "A React library to easily integrate and use Split JS SDK", "main": "cjs/index.js", "module": "esm/index.js", "types": "types/index.d.ts", "files": [ "README.md", "CONTRIBUTORS-GUIDE.md", "MIGRATION-GUIDE.md", "LICENSE", "CHANGES.txt", "src", "cjs", "esm", "types" ], "sideEffects": false, "scripts": { "build:cjs": "rimraf cjs/* types/* && tsc -m commonjs --outDir cjs -d true --declarationDir types", "build:esm": "rimraf esm/* && tsc", "build:umd": "rimraf umd/* && webpack --config webpack.dev.js --env branch=$BUILD_BRANCH && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH", "build": "npm run build:cjs && npm run build:esm && npm run build:umd", "postbuild": "replace 'REACT_SDK_VERSION_NUMBER' $npm_package_version ./cjs/constants.js ./esm/constants.js ./umd -r", "check": "npm run check:lint && npm run check:types", "check:lint": "eslint 'src/**/*.ts*'", "check:types": "tsc --noEmit", "test": "jest src --silent", "test:watch": "npm test -- --watch", "test:coverage": "jest src --silent --coverage", "test:debug": "node --inspect node_modules/.bin/jest --runInBand", "all": "npm run check && npm run build && npm run test", "publish:rc": "npm publish --tag rc", "publish:stable": "npm publish", "prepublishOnly": "npm run check && npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/splitio/react-client.git" }, "keywords": [ "splitio", "react", "sdk" ], "author": "Split Software", "contributors": [ { "name": "Emiliano Sanchez", "email": "emiliano.sanchez@split.io", "url": "https://github.com/EmilianoSanchez" }, { "name": "Nico Zelaya", "email": "nicolas.zelaya@split.io", "url": "https://github.com/NicoZelaya" } ], "license": "Apache-2.0", "bugs": { "url": "https://github.com/splitio/react-client/issues" }, "homepage": "https://github.com/splitio/react-client#readme", "dependencies": { "@splitsoftware/splitio": "11.11.2", "memoize-one": "^5.1.1", "shallowequal": "^1.1.0", "tslib": "^2.3.1" }, "devDependencies": { "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^16.3.0", "@types/events": "^3.0.0", "@types/jest": "^27.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "@types/react-test-renderer": "^19.0.0", "@types/shallowequal": "^1.1.1", "@typescript-eslint/eslint-plugin": "^6.6.0", "@typescript-eslint/parser": "^6.6.0", "eslint": "^8.48.0", "eslint-plugin-compat": "^4.2.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-tsdoc": "^0.3.0", "husky": "^3.1.0", "jest": "^27.2.3", "react": "^19.0.0", "react-dom": "^19.0.0", "react-test-renderer": "^19.0.0", "replace": "^1.2.1", "rimraf": "^3.0.0", "ts-jest": "^27.0.5", "ts-loader": "^6.2.1", "typescript": "4.5.5", "webpack": "^5.53.0", "webpack-cli": "^4.8.0", "webpack-merge": "^5.8.0" }, "peerDependencies": { "react": ">=16.8.0" }, "husky": { "hooks": { "pre-commit": "npm run check && npm run build", "pre-push": "npm test && npm run build" } } }