react-if-then-else-switch
Version:
A React library for declarative conditional rendering using If/Else and Switch/Case components for cleaner JSX.
75 lines (74 loc) • 1.8 kB
JSON
{
"name": "react-if-then-else-switch",
"version": "1.0.4",
"main": "dist/index.js",
"description": "A React library for declarative conditional rendering using If/Else and Switch/Case components for cleaner JSX.",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "jest"
},
"keywords": [
"react",
"conditional-rendering",
"if-else",
"switch-case",
"typescript",
"library"
],
"author": "Lalit",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@babel/preset-env": "^7.27.2",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^4.17.2",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
},
"jest": {
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/jest-setup.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"transform": {
"^.+\\.(ts|tsx)$": "babel-jest"
}
}
}