UNPKG

react-authorization

Version:
93 lines (92 loc) 2.36 kB
{ "name": "react-authorization", "version": "0.4.2", "description": "React authorization library.", "license": "MIT", "keywords": [ "react", "authorization", "declarative" ], "author": { "name": "Martin Ledvinka", "email": "martin.ledvinka@hotmail.com" }, "repository": { "type": "git", "url": "https://github.com/ledsoft/react-authorization.git" }, "dependencies": { "@babel/runtime": "^7.21.0" }, "peerDependencies": { "react": ">= 16.2.0", "react-dom": ">= 16.2.0" }, "main": "lib/react-authorization.js", "types": "types/react-authorization.d.ts", "devDependencies": { "@babel/cli": "^7.21.0", "@babel/core": "^7.21.4", "@babel/preset-env": "^7.21.4", "@babel/preset-react": "^7.18.6", "@babel/preset-stage-0": "^7.8.3", "@babel/plugin-transform-runtime": "^7.21.4", "@types/react": "^17.0.58", "babel-eslint": "^10.1.0", "babel-jest": "^29.5.0", "babel-loader": "^9.1.2", "enzyme": "^3.11.0", "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0", "jest": "^27.2.0", "prop-types": "^15.8.1", "react": "^17.0.2", "react-dom": "^17.0.2", "webpack": "^5.81.0", "webpack-cli": "^4.10.0", "webpack-node-externals": "^3.0.0" }, "files": [ "lib", "types" ], "scripts": { "test": "jest --env=jsdom", "build": "./node_modules/.bin/webpack --mode production", "lib": "babel ./src -d ./lib", "build-npm-prod": "npm run test && npm run build && npm run lib && npm pack", "prebuild-npm-prod": "npm install" }, "jest": { "setupFiles": [ "<rootDir>/test/config/polyfills.js" ], "setupFilesAfterEnv": [ "<rootDir>/test/config/setupEnzyme.js" ], "testMatch": [ "<rootDir>/test/__tests__/**/?(*.)(spec|test).(j|t)s?(x)" ], "testEnvironment": "jsdom", "testURL": "http://localhost", "transform": { "^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest", "^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/test/config/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$" ], "moduleFileExtensions": [ "web.js", "js", "web.jsx", "jsx", "json", "node", "mjs" ], "reporters": [ "default" ] } }