UNPKG

next-action-forge

Version:

A simple, type-safe toolkit for Next.js server actions with Zod validation

92 lines (91 loc) 2.12 kB
{ "name": "next-action-forge", "version": "0.3.5", "description": "A simple, type-safe toolkit for Next.js server actions with Zod validation", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist/**/*" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./hooks": { "types": "./dist/hooks/index.d.ts", "import": "./dist/hooks/index.mjs", "require": "./dist/hooks/index.js" }, "./core": { "types": "./dist/core/index.d.ts", "import": "./dist/core/index.mjs", "require": "./dist/core/index.js" } }, "scripts": { "build": "tsup", "dev": "tsup --watch", "type-check": "tsc --noEmit", "clean": "rm -rf dist", "prepublishOnly": "npm run clean && npm run build" }, "keywords": [ "nextjs", "server-actions", "react", "typescript", "hooks", "error-handling", "form-handling", "optimistic-updates", "zod", "validation" ], "author": "Vorshim92", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/Vorshim92/next-action-forge" }, "bugs": { "url": "https://github.com/Vorshim92/next-action-forge/issues" }, "homepage": "https://github.com/Vorshim92/next-action-forge#readme", "dependencies": { "zod": "^4.0.0" }, "peerDependencies": { "next": "^14.0.0 || ^15.0.0", "react": "^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "sonner": { "optional": true }, "react-hook-form": { "optional": true }, "@hookform/resolvers": { "optional": true } }, "devDependencies": { "@hookform/resolvers": "^3.0.0", "@types/node": "^20.0.0", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "next": "^15.0.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-hook-form": "^7.0.0", "sonner": "^1.0.0", "tsup": "^8.0.0", "typescript": "^5.0.0" }, "engines": { "node": ">=18.0.0" } }