@sirhall/use-latest-callback
Version:
React hook which returns the latest callback without changing the reference
92 lines • 2.21 kB
JSON
{
"name": "@sirhall/use-latest-callback",
"version": "0.1.11",
"description": "React hook which returns the latest callback without changing the reference",
"repository": "https://github.com/satya164/use-latest-callback",
"author": "Satyajit Sahoo <satyajit.happy@gmail.com>",
"license": "MIT",
"keywords": [
"react",
"use-event",
"use-callback"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"type": "module",
"source": "./src/index.ts",
"main": "./lib/cjs/src/index.js",
"module": "./lib/esm/src/index.js",
"types": "./lib/types/src/index.d.ts",
"exports": {
".": {
"types": "./lib/types/src/index.d.ts",
"import": "./lib/esm/src/index.js",
"require": "./lib/cjs/src/index.js"
}
},
"files": [
"src",
"lib"
],
"scripts": {
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"typecheck": "tsc --noEmit",
"prebuild": "del lib",
"build:cjs": "tsc --project tsconfig.json",
"build:esm": "tsc --project tsconfig.esm.json",
"build": "yarn build:cjs && yarn build:esm",
"prepare": "yarn build",
"release": "release-it"
},
"peerDependencies": {
"react": ">=16.8"
},
"devDependencies": {
"@commitlint/config-conventional": "^12.1.4",
"@release-it/conventional-changelog": "^7.0.2",
"@types/react": "^18.0.10",
"commitlint": "^12.1.4",
"del-cli": "^4.0.1",
"eslint": "^8.53.0",
"eslint-config-satya164": "^3.2.0",
"prettier": "^3.0.3",
"react": "^17.0.2",
"release-it": "^16.2.1",
"typescript": "^5.2.2"
},
"eslintConfig": {
"extends": "satya164",
"env": {
"node": true,
"browser": true
},
"rules": {
"import/no-commonjs": "off"
}
},
"eslintIgnore": [
"node_modules/",
"lib/"
],
"release-it": {
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits"
},
"infile": "CHANGELOG.md"
}
}
}
}