|
1 | 1 | {
|
2 |
| - "name": "use-ajv-form", |
| 2 | + "name": "@programmer_network/use-ajv-form", |
3 | 3 | "version": "1.0.0",
|
4 | 4 | "description": "Custom React Hook that integrates with Ajv JSON Schema Validator",
|
5 |
| - "main": "dist/index.js", |
| 5 | + "main": "dist/use-ajv.es.js", |
| 6 | + "author": "Aleksandar Grbic", |
| 7 | + "publishConfig": { |
| 8 | + "access": "public" |
| 9 | + }, |
| 10 | + "types": "dist/index.d.ts", |
6 | 11 | "scripts": {
|
7 |
| - "build": "rollup -c", |
8 |
| - "start": "rollup -c -w", |
9 |
| - "test": "jest" |
| 12 | + "dev": "vite", |
| 13 | + "build": "vite build", |
| 14 | + "serve": "vite preview", |
| 15 | + "prepare": "husky install", |
| 16 | + "format": "prettier --write .", |
| 17 | + "test": "vitest run", |
| 18 | + "test:watch": "vitest", |
| 19 | + "test:ui": "vitest --ui", |
| 20 | + "coverage": "vitest run --coverage", |
| 21 | + "lint:ci": "eslint --cache .", |
| 22 | + "lint:fix": "eslint --cache --fix src", |
| 23 | + "lint:quiet": "eslint --cache --quiet src", |
| 24 | + "test:ci": "vitest", |
| 25 | + "types:check": "tsc", |
| 26 | + "publish": "npm publish --auth-type=legacy" |
10 | 27 | },
|
11 |
| - "engines": { |
12 |
| - "node": ">=8", |
13 |
| - "npm": ">=5" |
| 28 | + "lint-staged": { |
| 29 | + "*.{js,jsx,ts,tsx}": "eslint --cache --fix", |
| 30 | + "*": "prettier --write" |
14 | 31 | },
|
15 |
| - "jest": { |
16 |
| - "transform": { |
17 |
| - ".(ts|tsx)": "ts-jest" |
18 |
| - }, |
19 |
| - "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", |
20 |
| - "moduleFileExtensions": [ |
21 |
| - "ts", |
22 |
| - "tsx", |
23 |
| - "js" |
24 |
| - ], |
25 |
| - "modulePathIgnorePatterns": [ |
26 |
| - "<rootDir>/dist/" |
27 |
| - ] |
| 32 | + "vitest": { |
| 33 | + "test": { |
| 34 | + "include": "/**/*.test.jsx|js|tsx" |
| 35 | + } |
28 | 36 | },
|
29 | 37 | "repository": {
|
30 | 38 | "type": "git",
|
31 | 39 | "url": "git+https://github.com/agjs/use-ajv-form.git"
|
32 | 40 | },
|
33 |
| - "author": "Aleksandar Grbic", |
34 | 41 | "license": "ISC",
|
35 | 42 | "bugs": {
|
36 | 43 | "url": "https://github.com/agjs/use-ajv-form/issues"
|
|
41 | 48 | "react-dom": ">= 18.2.0"
|
42 | 49 | },
|
43 | 50 | "dependencies": {
|
44 |
| - "@types/ajv": "^1.0.0", |
45 |
| - "ajv": "^8.12.0", |
46 |
| - "ajv-errors": "^3.0.0", |
47 |
| - "ajv-formats": "^2.1.1", |
| 51 | + "ajv": "8.12.0", |
| 52 | + "ajv-errors": "3.0.0", |
| 53 | + "ajv-formats": "2.1.1", |
48 | 54 | "programmer-network-ajv": "github:Programmer-Network/Programmer-Network-AJV",
|
49 |
| - "prop-types": "^15.7.2" |
| 55 | + "prop-types": "15.7.2" |
50 | 56 | },
|
51 | 57 | "devDependencies": {
|
52 |
| - "@testing-library/react-hooks": "^3.4.1", |
53 |
| - "@types/jest": "^26.0.7", |
54 |
| - "@types/react": "^18.2.37", |
55 |
| - "@types/react-dom": "^18.2.15", |
56 |
| - "babel-core": "^6.26.3", |
57 |
| - "babel-runtime": "^6.26.0", |
58 |
| - "eslint-plugin-react-hooks": "^4.0.8", |
59 |
| - "jest": "^26.1.0", |
60 |
| - "react-test-renderer": "^16.13.1", |
61 |
| - "rollup": "^1.29.0", |
62 |
| - "rollup-plugin-typescript2": "^0.25.3", |
63 |
| - "rollup-plugin-uglify": "^6.0.4", |
64 |
| - "ts-jest": "^26.1.3", |
65 |
| - "typescript": "^3.8.3" |
| 58 | + "@testing-library/jest-dom": "^6.1.4", |
| 59 | + "@testing-library/react": "^14.1.2", |
| 60 | + "@testing-library/react-hooks": "^8.0.1", |
| 61 | + "@types/ajv": "1.0.0", |
| 62 | + "@types/jest": "^29.5.10", |
| 63 | + "@types/react": "18.2.37", |
| 64 | + "@types/react-dom": "18.2.15", |
| 65 | + "@typescript-eslint/eslint-plugin": "^6.12.0", |
| 66 | + "@vitejs/plugin-react": "4.2.0", |
| 67 | + "d": "github:testing-library/jest-dom", |
| 68 | + "eslint-config-prettier": "9.0.0", |
| 69 | + "eslint-plugin-prettier": "5.0.1", |
| 70 | + "eslint-plugin-react": "7.33.2", |
| 71 | + "eslint-plugin-react-hooks": "4.6.0", |
| 72 | + "eslint-plugin-simple-import-sort": "^10.0.0", |
| 73 | + "husky": "8.0.3", |
| 74 | + "jsdom": "22.1.0", |
| 75 | + "prettier": "3.0.3", |
| 76 | + "react-hooks": "link:@types/@testing-library/react-hooks", |
| 77 | + "ts-jest": "29.1.1", |
| 78 | + "typescript": "5.2.2", |
| 79 | + "vite": "5.0.2", |
| 80 | + "vite-plugin-dts": "3.6.3", |
| 81 | + "vite-tsconfig-paths": "4.2.1", |
| 82 | + "vitest": "0.34.6" |
66 | 83 | },
|
67 | 84 | "files": [
|
68 | 85 | "dist"
|
|
0 commit comments