UNPKG

use-transition-state

Version:
97 lines (96 loc) 3.32 kB
{ "name": "use-transition-state", "version": "0.0.3", "description": "useTransition + useState = useTransitionState", "license": "MIT", "homepage": "https://github.com/wellyshen/use-transition-state#readme", "repository": "https://github.com/wellyshen/use-transition-state", "bugs": "https://github.com/wellyshen/use-transition-state/issues", "keywords": [ "react", "hook", "start-transition", "react-start-transition", "use-state", "react-use-state", "dx", "typescript" ], "author": "Welly Shen <hivoid19@gmail.com> (https://github.com/wellyshen)", "main": "dist/index.js", "module": "dist/index.esm.js", "umd:main": "dist/index.umd.production.min.js", "unpkg": "dist/index.umd.production.min.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "link-pkg": "npm link app/node_modules/react && yarn link", "start": "yarn clean:build && yarn copy:type && rollup -c scripts/rollup/config.js -w", "build": "yarn clean:build && yarn clean:size && yarn copy && rollup -c scripts/rollup/config.js --environment BUILD:production", "lint": "run-s lint:*", "lint:code": "eslint --fix . --ext .js,.ts,.tsx", "lint:type": "tsc", "lint:format": "prettier -w . -u --loglevel silent", "test": "jest --config scripts/jest/config.js", "test:watch": "yarn test --watch", "test:cov": "yarn clean:cov && yarn test --coverage", "size": "yarn build && bundlesize", "clean": "run-p clean:*", "clean:build": "rimraf dist", "clean:size": "rimraf .size-snapshot.json", "clean:cov": "rimraf coverage", "copy": "run-p copy:*", "copy:cjs": "cpy scripts/rollup/cjsEntryFile.js dist --rename=index.js", "copy:type": "cpy src/use-transition-state.d.ts dist --rename=index.d.ts", "release": "yarn build && changeset publish", "prepare": "husky install" }, "lint-staged": { "*.{js,ts,tsx}": "eslint --fix", "**/*": "prettier -w -u" }, "dependencies": { "@babel/runtime": "^7.14.6" }, "devDependencies": { "@ampproject/rollup-plugin-closure-compiler": "^0.26.0", "@babel/core": "^7.14.6", "@babel/plugin-transform-runtime": "^7.14.5", "@babel/preset-env": "^7.14.5", "@babel/preset-react": "^7.14.5", "@babel/preset-typescript": "^7.14.5", "@changesets/changelog-github": "^0.4.0", "@changesets/cli": "^2.16.0", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-commonjs": "^19.0.0", "@rollup/plugin-node-resolve": "^13.0.0", "@rollup/plugin-replace": "^2.4.2", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react-hooks": "^7.0.0", "@types/jest": "^26.0.23", "@types/react": "^17.0.11", "bundlesize2": "^0.0.27", "cpy-cli": "^3.1.1", "eslint": "^7.2.0", "eslint-config-welly": "^1.11.1", "husky": "^6.0.0", "jest": "^27.0.4", "lint-staged": "^11.0.0", "npm-run-all": "^4.1.5", "prettier": "^2.3.1", "react": "^18.0.0-alpha", "react-dom": "^18.0.0-alpha", "react-test-renderer": "^18.0.0-alpha", "rimraf": "^3.0.2", "rollup": "^2.52.1", "rollup-plugin-size-snapshot": "^0.12.0", "rollup-plugin-terser": "^7.0.2", "ts-jest": "^27.0.3", "typescript": "^4.3.4" }, "peerDependencies": { "react": ">= 18" } }