|
2 | 2 | "name": "@aboutbits/react-pagination", |
3 | 3 | "version": "1.0.2", |
4 | 4 | "description": "Pagination hooks for React", |
5 | | - "sideEffects": false, |
| 5 | + "exports": { |
| 6 | + ".": { |
| 7 | + "types": "./dist/types/engine/index.d.ts", |
| 8 | + "import": "./dist/esm/engine/index.js", |
| 9 | + "require": "./dist/cjs/engine/index.js" |
| 10 | + }, |
| 11 | + "./next-router": { |
| 12 | + "types": "./dist/types/routers/nextRouter.d.ts", |
| 13 | + "import": "./dist/esm/routers/nextRouter.js", |
| 14 | + "require": "./dist/cjs/routers/nextRouter.js" |
| 15 | + }, |
| 16 | + "./in-memory": { |
| 17 | + "types": "./dist/types/routers/inMemory.d.ts", |
| 18 | + "import": "./dist/esm/routers/inMemory.js", |
| 19 | + "require": "./dist/cjs/routers/inMemory.js" |
| 20 | + }, |
| 21 | + "./react-router": { |
| 22 | + "types": "./dist/types/routers/reactRouter.d.ts", |
| 23 | + "import": "./dist/esm/routers/reactRouter.js", |
| 24 | + "require": "./dist/cjs/routers/reactRouter.js" |
| 25 | + }, |
| 26 | + "./next-router/zod": { |
| 27 | + "types": "./dist/types/zod/routers/nextRouter.d.ts", |
| 28 | + "import": "./dist/esm/zod/routers/nextRouter.js", |
| 29 | + "require": "./dist/cjs/zod/routers/nextRouter.js" |
| 30 | + }, |
| 31 | + "./in-memory/zod": { |
| 32 | + "types": "./dist/types/zod/routers/inMemory.d.ts", |
| 33 | + "import": "./dist/esm/zod/routers/inMemory.js", |
| 34 | + "require": "./dist/cjs/zod/routers/inMemory.js" |
| 35 | + }, |
| 36 | + "./react-router/zod": { |
| 37 | + "types": "./dist/types/zod/routers/reactRouter.d.ts", |
| 38 | + "import": "./dist/esm/zod/routers/reactRouter.js", |
| 39 | + "require": "./dist/cjs/zod/routers/reactRouter.js" |
| 40 | + } |
| 41 | + }, |
6 | 42 | "engines": { |
7 | 43 | "npm": "^8", |
8 | 44 | "node": "^16" |
|
12 | 48 | "build:esm": "tsc -p tsconfig.esm.json", |
13 | 49 | "build:cjs": "tsc -p tsconfig.cjs.json", |
14 | 50 | "build:types": "tsc -p tsconfig.types.json", |
15 | | - "lint": "eslint --ext js,ts,tsx src", |
| 51 | + "lint": "eslint --ext js,ts,tsx --cache .", |
16 | 52 | "lint:fix": "npm run lint -- --fix", |
| 53 | + "test": "vitest run --passWithNoTests", |
| 54 | + "test:watch": "vitest watch --passWithNoTests", |
17 | 55 | "typecheck": "tsc --noEmit", |
18 | | - "test": "jest --verbose --passWithNoTests", |
| 56 | + "checks": "npm run test && npm run lint && npm run typecheck", |
| 57 | + "prepublishOnly": "npm run checks", |
19 | 58 | "prepare": "npm run build", |
20 | | - "prepublishOnly": "npm run test && npm run lint", |
21 | | - "version": "npm run test && npm run lint && git add -A src", |
| 59 | + "preversion": "npm run checks", |
| 60 | + "version": "git add -A src", |
22 | 61 | "postversion": "git push && git push --tags" |
23 | 62 | }, |
24 | 63 | "repository": { |
|
28 | 67 | "private": false, |
29 | 68 | "keywords": [ |
30 | 69 | "react", |
| 70 | + "query", |
31 | 71 | "pagination", |
32 | | - "hooks" |
| 72 | + "zod" |
33 | 73 | ], |
34 | 74 | "author": "About Bits", |
35 | 75 | "license": "MIT", |
|
47 | 87 | "devDependencies": { |
48 | 88 | "@testing-library/jest-dom": "^5.16.5", |
49 | 89 | "@testing-library/react": "^13.4.0", |
50 | | - "@types/jest": "^28.1.3", |
51 | 90 | "@types/react": "^18.0.0", |
52 | 91 | "@types/react-dom": "^18.0.0", |
53 | 92 | "@types/react-router-dom": "^5.3.3", |
|
56 | 95 | "eslint": "^8.18.0", |
57 | 96 | "eslint-config-prettier": "^8.5.0", |
58 | 97 | "eslint-plugin-import": "^2.26.0", |
59 | | - "eslint-plugin-jest": "^26.5.3", |
60 | 98 | "eslint-plugin-prettier": "^4.1.0", |
61 | 99 | "eslint-plugin-react": "^7.32.2", |
62 | 100 | "eslint-plugin-react-hooks": "^4.6.0", |
63 | | - "jest": "^28.1.1", |
64 | | - "jest-environment-jsdom": "^28.1.1", |
| 101 | + "jsdom": "^22.1.0", |
65 | 102 | "next": "^13.1.3", |
66 | 103 | "next-router-mock": "^0.7.4", |
67 | 104 | "prettier": "^2.7.1", |
68 | 105 | "react": "^18.0.0", |
69 | 106 | "react-dom": "^18.0.0", |
70 | 107 | "react-router-dom": "^6.7.0", |
71 | 108 | "rimraf": "^5.0.1", |
72 | | - "ts-jest": "^28.0.5", |
73 | | - "typescript": "^5.1.6" |
| 109 | + "typescript": "^5.1.6", |
| 110 | + "vite": "^4.4.4", |
| 111 | + "vitest": "^0.33.0" |
74 | 112 | }, |
75 | 113 | "peerDependencies": { |
76 | 114 | "next": "^12.0.0 || ^13.0.0", |
77 | 115 | "react": "^16.0.0 || ^17.0.0 || ^18.0.0", |
78 | | - "react-router-dom": "^6.0.0" |
| 116 | + "react-router-dom": "^6.0.0", |
| 117 | + "zod": "^3.0.0" |
79 | 118 | }, |
80 | 119 | "peerDependenciesMeta": { |
81 | 120 | "next": { |
82 | 121 | "optional": true |
83 | 122 | }, |
84 | 123 | "react-router-dom": { |
85 | 124 | "optional": true |
| 125 | + }, |
| 126 | + "zod": { |
| 127 | + "optional": true |
86 | 128 | } |
87 | 129 | } |
88 | 130 | } |
0 commit comments