|
12 | 12 | "scripts": { |
13 | 13 | "start": "nps", |
14 | 14 | "test": "nps test", |
15 | | - "precommit": "lint-staged && npm start validate" |
| 15 | + "precommit": "lint-staged && npm start validate", |
| 16 | + "build:types": "tsc --declaration --emitDeclarationOnly --outDir dist", |
| 17 | + "prebuild": "yarn build:types" |
16 | 18 | }, |
17 | 19 | "author": "Erik Rasmussen <rasmussenerik@gmail.com> (http://github.com/erikras)", |
18 | 20 | "license": "MIT", |
|
25 | 27 | }, |
26 | 28 | "homepage": "https://github.com/final-form/final-form-arrays#readme", |
27 | 29 | "devDependencies": { |
28 | | - "@babel/core": "^7.5.4", |
29 | | - "@babel/plugin-external-helpers": "^7.0.0", |
30 | | - "@babel/plugin-proposal-class-properties": "^7.5.0", |
31 | | - "@babel/plugin-proposal-decorators": "^7.4.4", |
32 | | - "@babel/plugin-proposal-export-namespace-from": "^7.5.2", |
33 | | - "@babel/plugin-proposal-function-sent": "^7.5.0", |
34 | | - "@babel/plugin-proposal-json-strings": "^7.0.0", |
35 | | - "@babel/plugin-proposal-numeric-separator": "^7.0.0", |
36 | | - "@babel/plugin-proposal-throw-expressions": "^7.0.0", |
37 | | - "@babel/plugin-syntax-dynamic-import": "^7.0.0", |
38 | | - "@babel/plugin-syntax-import-meta": "^7.0.0", |
39 | | - "@babel/plugin-transform-flow-strip-types": "^7.4.4", |
40 | | - "@babel/plugin-transform-runtime": "^7.5.0", |
41 | | - "@babel/preset-env": "^7.5.4", |
42 | | - "@babel/preset-flow": "^7.0.0", |
| 30 | + "@types/jest": "^29.5.14", |
| 31 | + "@babel/core": "^7.27.1", |
| 32 | + "@babel/plugin-external-helpers": "^7.27.1", |
| 33 | + "@babel/plugin-proposal-class-properties": "^7.18.6", |
| 34 | + "@babel/plugin-proposal-decorators": "^7.27.1", |
| 35 | + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", |
| 36 | + "@babel/plugin-proposal-function-sent": "^7.27.1", |
| 37 | + "@babel/plugin-proposal-json-strings": "^7.18.6", |
| 38 | + "@babel/plugin-proposal-numeric-separator": "^7.18.6", |
| 39 | + "@babel/plugin-proposal-throw-expressions": "^7.27.1", |
| 40 | + "@babel/plugin-syntax-dynamic-import": "^7.8.3", |
| 41 | + "@babel/plugin-syntax-import-meta": "^7.10.4", |
| 42 | + "@babel/plugin-transform-flow-strip-types": "^7.27.1", |
| 43 | + "@babel/plugin-transform-runtime": "^7.27.1", |
| 44 | + "@babel/preset-env": "^7.27.2", |
| 45 | + "@babel/preset-typescript": "^7.27.1", |
43 | 46 | "babel-core": "^7.0.0-bridge.0", |
44 | | - "babel-eslint": "^10.0.2", |
45 | | - "babel-jest": "^24.8.0", |
46 | | - "bundlesize": "^0.18.0", |
47 | | - "doctoc": "^1.3.0", |
48 | | - "eslint": "^6.0.1", |
49 | | - "eslint-config-react-app": "^3.0.6", |
50 | | - "eslint-plugin-babel": "^5.3.0", |
51 | | - "eslint-plugin-flowtype": "^3.2.1", |
52 | | - "eslint-plugin-import": "^2.16.0", |
53 | | - "eslint-plugin-jsx-a11y": "^6.2.1", |
54 | | - "eslint-plugin-react": "^7.13.0", |
55 | | - "final-form": "^4.20.8", |
56 | | - "flow-bin": "^0.102.0", |
| 47 | + "babel-eslint": "^10.1.0", |
| 48 | + "babel-jest": "^29.7.0", |
| 49 | + "bundlesize": "^0.18.2", |
| 50 | + "doctoc": "^2.2.1", |
| 51 | + "@eslint/js": "^9.27.0", |
| 52 | + "@typescript-eslint/eslint-plugin": "^8.32.1", |
| 53 | + "@typescript-eslint/parser": "^8.32.1", |
| 54 | + "eslint": "^9.27.0", |
| 55 | + "globals": "^16.2.0", |
| 56 | + "eslint-plugin-import": "^2.31.0", |
| 57 | + "eslint-plugin-jsx-a11y": "^6.10.2", |
| 58 | + "eslint-plugin-react": "^7.37.5", |
| 59 | + "final-form": "^5.0.0-3", |
57 | 60 | "glow": "^1.2.2", |
58 | | - "husky": "^3.0.0", |
59 | | - "jest": "^24.8.0", |
60 | | - "lint-staged": "^9.2.0", |
61 | | - "nps": "^5.9.5", |
62 | | - "nps-utils": "^1.5.0", |
63 | | - "prettier": "^1.18.2", |
64 | | - "prettier-eslint-cli": "^5.0.0", |
65 | | - "react": "^16.8.6", |
66 | | - "rollup": "^1.16.7", |
67 | | - "rollup-plugin-babel": "^4.3.3", |
68 | | - "rollup-plugin-commonjs": "^10.0.1", |
| 61 | + "husky": "^9.1.7", |
| 62 | + "jest": "^29.7.0", |
| 63 | + "lint-staged": "^16.0.0", |
| 64 | + "nps": "^5.10.0", |
| 65 | + "nps-utils": "^1.7.0", |
| 66 | + "prettier": "^3.5.3", |
| 67 | + "prettier-eslint-cli": "^8.0.1", |
| 68 | + "react": "^19.1.0", |
| 69 | + "rollup": "^4.41.1", |
| 70 | + "rollup-plugin-babel": "^4.4.0", |
| 71 | + "rollup-plugin-commonjs": "^10.1.0", |
69 | 72 | "rollup-plugin-flow": "^1.1.1", |
70 | 73 | "rollup-plugin-node-resolve": "^5.2.0", |
71 | 74 | "rollup-plugin-replace": "^2.2.0", |
72 | | - "rollup-plugin-uglify": "^6.0.2", |
73 | | - "typescript": "^3.5.3" |
| 75 | + "rollup-plugin-uglify": "^6.0.4", |
| 76 | + "rollup-plugin-typescript2": "^0.36.0", |
| 77 | + "typescript": "^5.8.3", |
| 78 | + "ts-jest": "^29.2.5" |
74 | 79 | }, |
75 | 80 | "peerDependencies": { |
76 | 81 | "final-form": "^4.20.8" |
|
82 | 87 | ] |
83 | 88 | }, |
84 | 89 | "jest": { |
| 90 | + "preset": "ts-jest", |
85 | 91 | "testEnvironment": "node", |
86 | 92 | "testPathIgnorePatterns": [ |
87 | | - ".*\\.ts" |
88 | | - ] |
| 93 | + "/node_modules/", |
| 94 | + "src/index.d.test.ts" |
| 95 | + ], |
| 96 | + "moduleFileExtensions": [ |
| 97 | + "ts", |
| 98 | + "tsx", |
| 99 | + "js", |
| 100 | + "jsx" |
| 101 | + ], |
| 102 | + "transform": { |
| 103 | + "^.+\\.(ts|tsx)$": "ts-jest" |
| 104 | + } |
89 | 105 | }, |
90 | 106 | "bundlesize": [ |
91 | 107 | { |
|
0 commit comments