|
3 | 3 | "workspaces": [ |
4 | 4 | "packages/*" |
5 | 5 | ], |
6 | | - "scripts": { |
7 | | - "lint": "eslint packages --ext .js,.jsx --ignore-pattern 'node_modules/**'", |
8 | | - "lint:fix": "eslint packages --ext .js,.jsx --ignore-pattern 'node_modules/**' --fix", |
9 | | - "format": "prettier --write \"**/*.{js,jsx,json,md}\"", |
10 | | - "format:check": "prettier --check \"**/*.{js,jsx,json,md}\"", |
11 | | - "flow": "flow", |
12 | | - "pretest": "npm run lint", |
13 | | - "test": "npm run test:android && npm run test:ios", |
14 | | - "test:ci": "JEST_JUNIT_OUTPUT=test-results/jest-android.xml npm run test:android --ci --testResultsProcessor='jest-junit' && JEST_JUNIT_OUTPUT=test-results/jest-ios.xml npm run test:ios --ci --testResultsProcessor='jest-junit'", |
15 | | - "test:coverage": "jest --coverage --coverageDirectory test-results/coverage --collectCoverageOnlyFrom packages/**/*", |
16 | | - "test:android": "cross-env RNVC_DEVICE=android babel-node scripts/test", |
17 | | - "test:ios": "cross-env RNVC_DEVICE=ios babel-node scripts/test", |
18 | | - "test:watch": "babel-node scripts/test --watch", |
19 | | - "prepublishOnly": "npm run test", |
20 | | - "prepare": "husky install" |
21 | | - }, |
22 | 6 | "prepare": "husky install", |
23 | 7 | "lint-staged": { |
24 | 8 | "*.{js,jsx}": [ |
|
49 | 33 | "@babel/core": "^7.7.2", |
50 | 34 | "@babel/eslint-parser": "^7.28.4", |
51 | 35 | "@babel/node": "^7.7.0", |
| 36 | + |
52 | 37 | "@react-native/babel-preset": "^0.73.16", |
| 38 | + "@types/jest": "^30.0.0", |
| 39 | + "@types/lodash": "^4.14.194", |
| 40 | + "@types/node": "^24.0.0", |
53 | 41 | "@types/semver": "^7.7.1", |
54 | 42 | "babel-core": "7.0.0-bridge.0", |
55 | 43 | "babel-jest": "^30.2.0", |
|
60 | 48 | "eslint-plugin-prettier": "^4.2.1", |
61 | 49 | "eslint-plugin-react": "^7.32.2", |
62 | 50 | "eslint-plugin-react-native": "^5.0.0", |
63 | | - "flow-bin": "^0.112.0", |
64 | | - "flow-typed": "^2.6.2", |
| 51 | + |
65 | 52 | "husky": "^9.1.7", |
66 | 53 | "isomorphic-fetch": "^3.0.0", |
67 | 54 | "jest": "^30.2.0", |
|
71 | 58 | "lint-staged": "^16.2.3", |
72 | 59 | "pre-commit": "^1.0.10", |
73 | 60 | "prettier": "^2.8.8", |
74 | | - "promise": "^8.0.3" |
| 61 | + "promise": "^8.0.3", |
| 62 | + "ts-node": "^10.9.1", |
| 63 | + "typescript": "^5.5.6" |
| 64 | + }, |
| 65 | + "scripts": { |
| 66 | + "lint": "eslint packages --ext .js,.jsx --ignore-pattern 'node_modules/**'", |
| 67 | + "lint:fix": "eslint packages --ext .js,.jsx --ignore-pattern 'node_modules/**' --fix", |
| 68 | + "format": "prettier --write \"**/*.{js,jsx,json,md}\"", |
| 69 | + "format:check": "prettier --check \"**/*.{js,jsx,json,md}\"", |
| 70 | + "pretest": "npm run lint", |
| 71 | + "test": "npm run test:android && npm run test:ios", |
| 72 | + "test:ci": "JEST_JUNIT_OUTPUT=test-results/jest-android.xml npm run test:android --ci --testResultsProcessor='jest-junit' && JEST_JUNIT_OUTPUT=test-results/jest-ios.xml npm run test:ios --ci --testResultsProcessor='jest-junit'", |
| 73 | + "test:coverage": "jest --coverage --coverageDirectory test-results/coverage --collectCoverageOnlyFrom packages/**/*", |
| 74 | + "test:android": "cross-env RNVC_DEVICE=android babel-node scripts/test", |
| 75 | + "test:ios": "cross-env RNVC_DEVICE=ios babel-node scripts/test", |
| 76 | + "test:watch": "babel-node scripts/test --watch", |
| 77 | + "prepublishOnly": "npm run test", |
| 78 | + "prepare": "husky install", |
| 79 | + |
| 80 | + "typecheck": "tsc --noEmit" |
75 | 81 | }, |
76 | 82 | "jest": { |
77 | 83 | "testEnvironment": "node", |
78 | 84 | "testPathIgnorePatterns": [ |
79 | | - "[/\\\\](build|docs|node_modules|scripts|examples)[/\\\\]" |
| 85 | + "[/\\\\](build|docs|node_modules|scripts|examples|backups)[/\\\\]" |
80 | 86 | ], |
81 | 87 | "automock": false, |
82 | 88 | "setupFiles": [ |
|
0 commit comments