UNPKG

react-stateful-switch

Version:
85 lines (84 loc) 2.16 kB
{ "name": "react-stateful-switch", "version": "0.2.1", "description": "A react stateful switch component", "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "build": "rm -rf lib && tsc", "test": "jest", "test:watch": "jest --watch", "prepublish": "npm run test && npm run build", "prepublishOnly": "npm test", "postversion": "git push && git push --tags", "publish:patch": "npm version patch && npm publish", "publish:minor": "npm version minor && npm publish", "publish:major": "npm version major && npm publish" }, "repository": { "type": "git", "url": "git+https://github.com/biels/react-stateful-switch.git" }, "keywords": [ "react", "stateful", "view", "component" ], "author": "biels", "license": "ISC", "bugs": { "url": "https://github.com/biels/react-stateful-switch/issues" }, "homepage": "https://github.com/biels/react-stateful-switch#readme", "devDependencies": { "@types/enzyme": "^3.1.13", "@types/enzyme-adapter-react-16": "^1.0.3", "@types/jest": "^23.3.1", "@types/lodash": "^4.14.116", "@types/react": "^16.4.9", "@types/react-dom": "^16.0.7", "enzyme": "^3.4.1", "enzyme-adapter-react-16": "^1.2.0", "enzyme-to-json": "^3.3.4", "jest": "^23.5.0", "raf": "^3.4.0", "react-test-renderer": "^16.4.2", "ts-jest": "^23.1.3", "typescript": "^3.0.1", "lodash": "^4.17.10", "react": "^16.4.2", "react-dom": "^16.4.2" }, "dependencies": {}, "peerDependencies": { "lodash": "^4.17.10", "react": "^16.4.2", "react-dom": "^16.4.2" }, "jest": { "transform": { "^.+\\.(t|j)sx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ], "rootDir": "src", "snapshotSerializers": [ "enzyme-to-json" ], "setupTestFrameworkScriptFile": "<rootDir>setupTests.ts", "globals": { "ts-jest": { "skipBabel": true, "enableTsDiagnostics": false } } } }