Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/wojtekmaj/react-async-button. A button that handles Promises for your React app.
Something went wrong. Try again.
2.4 kB · 81 lines
JSON
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ "name": "@wojtekmaj/react-async-button", "version": "1.5.1", "description": "A button that handles Promises for your React app.", "type": "module", "sideEffects": false, "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "source": "./src/index.ts", "types": "./dist/cjs/index.d.ts", "exports": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "scripts": { "build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package", "build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext", "build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs", "build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", "clean": "rimraf dist", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "prepack": "yarn clean && yarn build", "prettier": "prettier --check . --cache", "test": "yarn lint && yarn tsc && yarn prettier && yarn unit", "tsc": "tsc --noEmit", "unit": "vitest", "watch": "yarn build-esm --watch & yarn build-cjs --watch & yarn build-cjs-package" }, "keywords": [ "react", "promise", "button" ], "author": { "name": "Wojciech Maj", "email": "kontakt@wojtekmaj.pl" }, "license": "MIT", "dependencies": { "prop-types": "^15.6.0" }, "devDependencies": { "@testing-library/dom": "^9.0.0", "@testing-library/jest-dom": "^5.15.0", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.0", "@types/react": "*", "eslint": "^8.26.0", "eslint-config-wojtekmaj": "^0.9.0", "jsdom": "^21.1.0", "prettier": "^2.7.0", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^3.0.0", "typescript": "^5.0.0", "vitest": "^0.30.1" }, "peerDependencies": { "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true } }, "publishConfig": { "access": "public", "provenance": true }, "files": [ "dist", "src" ], "repository": { "type": "git", "url": "https://github.com/wojtekmaj/react-async-button.git", "directory": "package" }, "funding": "https://github.com/wojtekmaj/react-async-button?sponsor=1"}