next-form-action
Version:
A TypeScript library for handling server actions in Next.js with type-safe error handling and callbacks
71 lines (70 loc) • 1.8 kB
JSON
{
"name": "next-form-action",
"version": "5.0.0",
"description": "A TypeScript library for handling server actions in Next.js with type-safe error handling and callbacks",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./client": {
"types": "./dist/client/index.d.ts",
"default": "./dist/client/index.js"
},
"./server": {
"types": "./dist/server/index.d.ts",
"default": "./dist/server/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint",
"format": "prettier --write .",
"prebuild": "npm run format && npm run lint"
},
"keywords": [
"nextjs",
"react",
"forms",
"typescript",
"form-actions",
"useActionState",
"server-actions",
"react-hooks"
],
"author": "Mattia Malonni",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mattiamalonni/next-form-action.git"
},
"homepage": "https://github.com/mattiamalonni/next-form-action#readme",
"bugs": {
"url": "https://github.com/mattiamalonni/next-form-action/issues"
},
"peerDependencies": {
"next": "^16",
"react": "^19"
},
"devDependencies": {
"@eslint/js": "^9.28.0",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3"
}
}