UNPKG

use-luminance

Version:

A React hook for using luminance,support React18

74 lines (73 loc) 2.14 kB
{ "name": "use-luminance", "version": "0.1.3", "peerDependencies": { "react": "^18.0.0", "react-dom": "^18.0.0" }, "devDependencies": { "typescript": "^4.6.3", "react-scripts": "5.0.0", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^12.0.0", "@testing-library/user-event": "^13.2.1", "@types/jest": "^27.0.1", "@types/node": "^16.7.13", "@types/react": "^17.0.20", "@types/react-dom": "^17.0.9", "web-vitals": "^2.1.0" }, "scripts": { "start": "export PUBLIC_URL=http://localhost:3000/ && react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "build:commonjs": "babel src/hooks --out-dir lib/commonjs --extensions '.ts,.tsx' --source-maps", "build:module": "tsc src/hooks/*.tsx --module es2022 --target es5 --jsx 'react' --sourceMap --skipLibCheck --allowSyntheticDefaultImports --outDir lib/module --moduleResolution node", "build:typescript": "tsc src/hooks/*.tsx --declaration --emitDeclarationOnly --jsx 'react' --skipLibCheck --allowSyntheticDefaultImports --outDir lib/typescript" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "main": "lib/commonjs/index.js", "types": "lib/typescript/index.d.ts", "module": "lib/module/index.js", "source": "src/hooks/index.ts", "files": [ "src/hooks", "lib" ], "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "description": "A React hook for using luminance,support React18", "repository": { "type": "git", "url": "git+https://github.com/tohsaka888/use-luminance.git" }, "keywords": [ "react18", "hook", "react", "luminance", "theme" ], "author": "tohsaka888", "license": "MIT", "bugs": { "url": "https://github.com/tohsaka888/use-luminance/issues" }, "homepage": "https://github.com/tohsaka888/use-luminance#readme" }