UNPKG

react-smart-conditional

Version:

Manage conditional rendering in react js and it's frameworks like a pro

97 lines 2.77 kB
{ "name": "react-smart-conditional", "description": "Manage conditional rendering in react js and it's frameworks like a pro", "version": "1.0.4", "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.module.js", "esmodule": "dist/index.mjs", "umd:main": "dist/index.umd.js", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "module": "./dist/index.module.js", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./package.json": "./package.json" }, "sideEffects": false, "files": [ "dist" ], "keywords": [ "react", "conditional", "render", "conditional-render", "react-conditional-render" ], "author": "Wilson Adenuga <oluwatunmiseadenuga@gmail.com>", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/oluwatunmiisheii/react-smart-conditional.git" }, "homepage": "https://github.com/oluwatunmiisheii/react-smart-conditional#readme", "bugs": { "url": "https://github.com/oluwatunmiisheii/react-smart-conditional/issues" }, "devDependencies": { "@commitlint/cli": "^19.4.1", "@commitlint/config-conventional": "^19.4.1", "@commitlint/types": "^19.0.3", "@size-limit/preset-small-lib": "^11.1.4", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.5.0", "@testing-library/react": "^16.0.1", "@types/jest": "^29.5.12", "@types/react": "^18.3.5", "eslint": "^9.10.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react": "^7.35.2", "husky": "^9.1.5", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "lint-staged": "^15.2.8", "microbundle": "^0.15.1", "prettier": "^3.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", "size-limit": "^11.1.4", "ts-jest": "^29.2.5", "typescript": "^5.5.4", "typescript-eslint": "^8.4.0" }, "peerDependencies": { "react": "^17.0.0 || ^18.0.0 || ^19.0.0" }, "size-limit": [ { "path": "dist/index.js", "limit": "1 KB" }, { "path": "dist/index.module.js", "limit": "1 KB" }, { "path": "dist/index.umd.js", "limit": "1 KB" }, { "path": "dist/index.mjs", "limit": "1 KB" } ], "scripts": { "lint": "eslint '**/*.{js,ts,tsx}' --ignore-pattern 'dist/'", "lint:fix": "pnpm lint --fix", "prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"", "build-only": "rm -rf ./dist/*; microbundle build --entry src/index.ts --name react-smart-conditional --tsconfig tsconfig.json", "build": "pnpm run build-only && size-limit", "test": "jest" } }