UNPKG

react-magnetic-di

Version:
90 lines (89 loc) 2.89 kB
{ "name": "react-magnetic-di", "version": "2.2.3", "description": "Context driven dependency injection", "keywords": [ "React", "Dependency injection" ], "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", "url": "git+https://albertogasparin@github.com/albertogasparin/react-magnetic-di.git" }, "author": "Alberto Gasparin", "license": "MIT", "bugs": { "url": "https://github.com/albertogasparin/react-magnetic-di/issues" }, "homepage": "https://github.com/albertogasparin/react-magnetic-di#readme", "scripts": { "clean:build": "rm -rf ./lib && rm -rf ./babel", "build:cjs": "babel src/ -d lib/cjs --ignore **/__tests__ --presets @babel/env", "build:esm": "babel src/ -d lib/esm --ignore **/__tests__", "build:flow": "echo lib/cjs lib/esm | xargs -n 1 cp src/index.js.flow", "build": "npm run clean:build -s && npm run build:cjs -s && npm run build:esm -s && npm run build:flow -s", "test": "jest", "types": "dtslint --expectOnly --localTs node_modules/typescript/lib ./types && tsc && flow --max-warnings=0", "lint": "eslint ./src", "preversion": "npm run lint -s && npm run types -s && npm run test -s", "prepack": "npm run preversion -s && npm run build -s", "start": "webpack-dev-server" }, "dependencies": {}, "peerDependencies": { "prop-types": "^15.0.0", "react": "^16.9.0" }, "peerDependenciesMeta": { "babel-plugin-macros": { "optional": true }, "eslint": { "optional": true } }, "devDependencies": { "@babel/cli": "^7.10.1", "@babel/core": "^7.10.2", "@babel/plugin-proposal-class-properties": "^7.10.1", "@babel/plugin-transform-runtime": "^7.10.1", "@babel/preset-env": "^7.10.2", "@babel/preset-flow": "^7.10.1", "@babel/preset-react": "^7.10.1", "@babel/runtime": "^7.10.2", "@testing-library/react": "^10.2.1", "@types/react": "^16.9.35", "@types/react-dom": "^16.9.8", "babel-eslint": "^10.1.0", "babel-jest": "^26.0.1", "babel-loader": "^8.1.0", "babel-plugin-macros": "^2.8.0", "babel-plugin-module-resolver": "^4.0.0", "dtslint": "^3.6.10", "enzyme": "~3.11.0", "enzyme-adapter-react-16": "^1.15.0", "eslint": "^7.2.0", "eslint-plugin-flowtype": "^5.1.3", "eslint-plugin-import": "^2.20.2", "eslint-plugin-local": "^1.0.0", "eslint-plugin-react": "^7.20.0", "eslint-plugin-react-hooks": "^4.0.4", "flow-bin": "^0.125.1", "flow-copy-source": "^2.0.9", "jest": "^26.0.1", "prettier": "^2.0.5", "prop-types": "^15.7.2", "react": "^16.13.1", "react-dom": "^16.13.1", "typescript": "^3.9.5", "webpack": "^4.43.0", "webpack-cli": "^3.3.11", "webpack-dev-server": "^3.11.0" }, "engines": { "node": ">=10.16.0" } }