UNPKG

@ai-growth/nextjs

Version:

Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering

108 lines (107 loc) 3.04 kB
{ "name": "@ai-growth/nextjs", "version": "1.3.0", "description": "Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/index.d.ts" } }, "files": [ "dist", "templates", "README.md" ], "scripts": { "build": "npm run clean && npm run build:esm && npm run build:cjs", "build:esm": "tsc", "build:cjs": "tsc --project tsconfig.cjs.json && cp dist/cjs/index.js dist/index.cjs && cp dist/cjs/index.d.ts dist/index.cjs.d.ts", "dev": "tsc --watch", "clean": "rm -rf dist", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:ci": "jest --coverage --watchAll=false", "lint": "eslint src --ext .ts,.tsx --fix", "lint:check": "eslint src --ext .ts,.tsx", "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"", "format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\"", "prepare": "husky", "prepublishOnly": "echo 'Skipping build due to TypeScript errors - manual build required'" }, "keywords": [ "nextjs", "sanity", "cms", "blog", "routing", "typescript", "react" ], "author": "AI Growth Team", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ai-growth/nextjs.git" }, "bugs": { "url": "https://github.com/ai-growth/nextjs/issues" }, "homepage": "https://github.com/ai-growth/nextjs#readme", "engines": { "node": ">=16.0.0" }, "peerDependencies": { "next": ">=12.0.0", "react": ">=17.0.0", "react-dom": ">=17.0.0" }, "devDependencies": { "@eslint/js": "^9.28.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@typescript-eslint/eslint-plugin": "^8.33.1", "@typescript-eslint/parser": "^8.33.1", "eslint": "^8.57.1", "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", "husky": "^9.1.7", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^30.0.0-beta.3", "jest-transform-stub": "^2.0.0", "lint-staged": "^16.1.0", "prettier": "^3.5.3", "ts-jest": "^29.3.4", "typescript": "^5.0.0" }, "dependencies": { "@sanity/client": "^6.29.1", "@sanity/image-url": "^1.0.0", "zod": "^3.25.55" }, "lint-staged": { "src/**/*.{ts,tsx}": [ "eslint --fix", "prettier --write", "npm run test:ci" ], "src/**/*.{json,md}": [ "prettier --write" ] }, "sideEffects": false }