UNPKG

react-magnetic-di

Version:
91 lines (90 loc) 3 kB
{ "name": "react-magnetic-di", "version": "3.2.4", "description": "Context driven dependency injection", "keywords": [ "React", "Dependency injection", "Dependency replacement" ], "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "types": "./types/index.d.ts", "sideEffects": false, "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": "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" }, "peerDependencies": { "prop-types": "^15.0.0", "react": "^16.9.0 || ^17.0.0 || ^18.0.0" }, "peerDependenciesMeta": { "eslint": { "optional": true } }, "devDependencies": { "@babel/cli": "^7.27.2", "@babel/core": "^7.27.3", "@babel/eslint-parser": "^7.27.1", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-decorators": "^7.27.1", "@babel/plugin-transform-modules-commonjs": "^7.27.1", "@babel/plugin-transform-runtime": "^7.27.3", "@babel/preset-env": "^7.27.2", "@babel/preset-flow": "^7.27.1", "@babel/preset-react": "^7.27.1", "@babel/preset-typescript": "^7.27.1", "@babel/runtime": "^7.27.3", "@testing-library/react": "^16.3.0", "@types/jest": "^29.5.14", "@types/react": "^18.2.42", "@types/react-dom": "^18.2.17", "babel-jest": "^29.7.0", "babel-loader": "^10.0.0", "babel-plugin-module-resolver": "^5.0.2", "babel-plugin-react-compiler": "1.0.0", "eslint": "^8.55.0", "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.31.0", "eslint-plugin-local": "^1.0.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^4.6.0", "flow-bin": "^0.169.0", "flow-copy-source": "^2.0.9", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "prettier": "^3.5.3", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "typescript": "^5.8.3", "webpack": "^5.99.9", "webpack-cli": "^6.0.1", "webpack-dev-server": "^5.2.1" }, "engines": { "node": ">=10.16.0" } }