UNPKG

remix-client-cache

Version:

Utility library to cache your client data in React Router

97 lines 2.82 kB
{ "name": "remix-client-cache", "version": "3.0.0", "description": "Utility library to cache your client data in React Router", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "exports": { ".": { "import": { "import": "./dist/index.js", "default": "./dist/index.js", "types": "./dist/index.d.ts" }, "require": { "import": "./dist/index.cjs", "require": "./dist/index.cjs", "default": "./dist/index.cjs", "types": "./dist/index.d.cts" }, "types": "./dist/index.d.ts" } }, "typings": "./dist/index.d.ts", "files": [ "dist" ], "workspaces": [ "test-apps/*", "." ], "scripts": { "build": "tsup src/index.tsx --format cjs,esm --dts --clean", "remix-dev": "npm run dev -w testing-app", "build:dev": "tsup src/index.tsx --format cjs,esm --dts", "build:dev:watch": "npm run build:dev -- --watch", "dev": "npm-run-all -s build:dev -p remix-dev build:dev:watch", "vite": "npm run build --watch -m development", "prepublishOnly": "npm run build", "test": "vitest run", "tsc": "tsc", "validate": "npm run lint && npm run tsc && npm run test", "lint": "eslint \"src/**/*.+(ts|tsx)\"", "lint:fix": "npm run lint -- --fix", "prettier": "prettier app --check", "prettier:fix": "prettier app --write", "format-code": "npm run prettier:fix & npm run lint:fix" }, "repository": { "type": "git", "url": "git+https://github.com/forge42dev/remix-client-cache.git" }, "keywords": [ "React", "Remix", "Remix.run", "hooks", "cache", "client-cache" ], "author": "Alem Tuzlak", "license": "MIT", "bugs": { "url": "https://github.com/forge42dev/remix-client-cache/issues" }, "homepage": "https://github.com/forge42dev/remix-client-cache#readme", "peerDependencies": { "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "react-router": "^7.0.0" }, "readme": "https://github.com/forge42dev/remix-client-cache#readme", "devDependencies": { "@testing-library/react": "^14.0.0", "@types/node": "^18.15.11", "@types/react": "^18.0.34", "@typescript-eslint/eslint-plugin": "^6.19.1", "@vitest/coverage-c8": "^0.30.1", "babel-eslint": "^10.1.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", "happy-dom": "^9.5.0", "npm-run-all": "^4.1.5", "prettier": "^3.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-hook-form": "^7.49.3", "react-router": "^7.5.2", "rollup": "^3.20.2", "rollup-plugin-typescript2": "^0.34.1", "tsup": "^7.2.0", "typescript": "^5.0.4", "vite": "^5.0.11", "vitest": "^0.30.1", "zod": "^3.21.4" } }