Swiggy / react-context-decorator

⚛️ A react utility function to decorate a component with context, similar to how react-redux works
https://codesandbox.io/s/m7oy367ky
MIT License
3 stars 1 forks source link

Add build script, prepush hook, peerDependencies #1

Open bogas04 opened 5 years ago

bogas04 commented 5 years ago
iamchiranjeebpanda01 commented 1 year ago

Modified "package.json" for the given issue: { "name": "@swiggy/react-context-decorator", "version": "1.0.0", "description": "A react utility function to decorate a component with context, similar to how react-redux works", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "babel index.js -o dist/index.js", "prepush": "npm run build" }, "husky": { "hooks": { "pre-push": "npm run prepush" } }, "author": "@swiggy", "license": "MIT", "dependencies": { "peer": "^1.0.0", "react": "^16.3.0" }, "devDependencies": { "@babel/core": "^7.22.5", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/preset-env": "^7.22.5", "@babel/preset-react": "^7.22.5", "husky": "^8.0.3" }, "babel": { "presets": ["@babel/preset-env", "@babel/preset-react"], "plugins": ["@babel/plugin-transform-class-properties"] } }