UNPKG

is-class-component

Version:
106 lines (105 loc) 3.83 kB
{ "name": "is-class-component", "version": "1.1.1", "description": "Determine if something is a React class component", "main": "index.js", "module": "es/index.js", "exports": { ".": { "import": "./es/index.js", "require": "./index.js" }, "./es": "./es/index.js" }, "sideEffects": false, "author": { "name": "Overlook Motel" }, "repository": { "type": "git", "url": "https://github.com/overlookmotel/is-class-component.git" }, "bugs": { "url": "https://github.com/overlookmotel/is-class-component/issues" }, "dependencies": { "@babel/runtime": "^7.9.2", "is-it-type": "^3.1.1", "tiny-invariant": "^1.1.0" }, "peerDependencies": { "react": "^16.8.0" }, "devDependencies": { "@babel/core": "^7.9.0", "@babel/plugin-transform-for-of": "^7.9.0", "@babel/plugin-transform-runtime": "^7.9.0", "@babel/preset-env": "^7.9.0", "@babel/preset-react": "^7.9.4", "@overlookmotel/eslint-config": "^6.0.1", "@overlookmotel/eslint-config-jest": "^3.0.1", "@overlookmotel/eslint-config-node": "^1.0.2", "@overlookmotel/eslint-config-react": "^6.0.0", "@rollup/plugin-commonjs": "^11.0.2", "@rollup/plugin-node-resolve": "^7.1.1", "@rollup/plugin-replace": "^2.3.1", "babel-eslint": "^10.1.0", "babel-plugin-dev-expression": "^0.2.2", "coveralls": "^3.0.11", "cross-env": "^7.0.2", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.1.0", "eslint-config-airbnb-base": "^14.1.0", "eslint-plugin-eslint-comments": "^3.1.2", "eslint-plugin-import": "^2.20.2", "eslint-plugin-jest": "^23.8.2", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-node": "^11.1.0", "eslint-plugin-react": "^7.19.0", "eslint-plugin-react-hooks": "^1.7.0", "jest": "^25.2.7", "jest-extended": "^0.11.5", "react": "^16.13.1", "rollup": "^2.3.2", "rollup-plugin-babel": "^4.4.0", "rollup-plugin-copy": "^3.3.0", "rollup-plugin-terser": "^5.3.0" }, "keywords": [ "react", "class", "component", "is" ], "scripts": { "build": "rm -rf ./dist && rollup -c", "prepublishOnly": "npm run build", "test": "npm run lint && npm run test-main", "test-main": "cross-env BABEL_ENV=test jest", "test-prod": "cross-env NODE_ENV=production npm run test-main", "test-all": "npm run test-all-dev && npm run test-all-prod", "test-all-dev": "npm run test-main && npm run test-cjs-dev && npm run test-esm-dev && npm run test-umd-dev", "test-all-prod": "npm run test-prod && npm run test-cjs-prod && npm run test-esm-prod && npm run test-umd-prod", "test-cjs": "npm run test-cjs-dev && npm run test-cjs-prod", "test-cjs-dev": "cross-env TEST_ENV=cjs npm run test-main", "test-cjs-prod": "cross-env TEST_ENV=cjs npm run test-prod", "test-esm": "npm run test-esm-dev && npm run test-esm-prod", "test-esm-dev": "cross-env TEST_ENV=esm npm run test-main", "test-esm-prod": "cross-env TEST_ENV=esm npm run test-prod", "test-umd": "npm run test-umd-dev && npm run test-umd-prod", "test-umd-dev": "cross-env TEST_ENV=umd npm run test-main", "test-umd-prod": "cross-env TEST_ENV=umd npm run test-prod", "lint": "eslint '*.js' '.*.js' '**/*.js' '**/.*.js'", "lint-fix": "eslint '*.js' '.*.js' '**/*.js' '**/.*.js' --fix", "cover": "npm run cover-main && rm -rf coverage", "coveralls": "npm run cover-main && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", "cover-main": "cross-env COVERAGE=true jest --coverage", "ci": "if [ $COVERAGE ]; then npm run coveralls; else npm run ci-main; fi", "ci-main": "npm run lint && npm run build && npm run test-all" }, "engines": { "node": ">=10" }, "readmeFilename": "README.md", "license": "MIT" }