@enum-plus/plugin-react
Version:
A plugin for enum-plus that provides React components and hooks for enum handling
85 lines (84 loc) • 2.29 kB
JSON
{
"name": "@enum-plus/plugin-react",
"version": "1.0.0",
"description": "A plugin for enum-plus that provides React components and hooks for enum handling",
"keywords": [
"enum",
"enumeration",
"enum-plus",
"plugin",
"typescript",
"react",
"localization",
"globalization",
"internationalization",
"front-end",
"node.js",
"ssr"
],
"homepage": "https://github.com/shijistar/enum-plus",
"bugs": {
"url": "https://github.com/shijistar/enum-plus/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shijistar/enum-plus.git"
},
"license": "MIT",
"author": "李凤宝(Leo) <shijistar@gmail.com>",
"sideEffects": false,
"main": "lib/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"files": [
"lib",
"es",
"es-legacy",
"LICENSE",
"CHANGELOG.md",
"README.md",
"README.zh-CN.md"
],
"scripts": {
"build": "run-p build:es build:es-legacy build:lib",
"build:es": "father build",
"build:es-legacy": "cross-env LEGACY=1 father build",
"build:lib": "run-s ts2lib task:copy-lib",
"prepublishOnly": "npm run build && npm run test",
"task:copy-lib": "tsx ../../scripts/copy-lib.ts",
"test": "jest",
"test-legacy": "jest -c jest-legacy.config.js",
"test:browser": "npm run test:browser:bundle && playwright test",
"test:browser:bundle": "node scripts/browser-test-bundle.js",
"test:browser:debug": "npm run test:browser:bundle && playwright test --debug",
"test:browser:ui": "npm run test:browser:bundle && playwright test --ui",
"ts2lib": "tsc -p tsconfig.lib.json"
},
"devDependencies": {
"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.13",
"jest-environment-jsdom": "^30.1.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-i18next": "^15.7.3",
"react-is": "^18.3.1"
},
"peerDependencies": {
"enum-plus": "^3.0.0",
"i18next": ">=8.4.0",
"react": ">=16.8.0",
"react-i18next": ">=10.0.0"
},
"peerDependenciesMeta": {
"i18next": {
"optional": true
},
"react-i18next": {
"optional": true
}
},
"packageManager": "npm@10.9.2",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}