|
3 | 3 | "version": "1.0.0", |
4 | 4 | "license": "MIT", |
5 | 5 | "scripts": { |
6 | | - "app": "node create-app.js", |
7 | | - "app:bun": "bun create-app.js", |
8 | | - "app:install": "npm i --no-save $(npm pack . | tail -1) --prefix app", |
9 | | - "build": "esbuild index.tsx --outdir=dist --bundle --format=esm --sourcemap --external:react-native --external:react", |
10 | | - "watch": "npm-run-all --parallel build:watch copy", |
11 | | - "copy": "cpx 'dist/**/*' app/node_modules/<%= name %>/dist --watch", |
12 | | - "build:watch": "esbuild index.tsx --watch --outdir=dist --bundle --format=esm --sourcemap --external:react-native --external:react", |
| 6 | + "app": "bun create-app.js", |
| 7 | + "copy": "cpx '*.{ts,tsx}' app/node_modules/<%= name %> --watch", |
| 8 | + "format": "prettier \"{,!(app|dist)/**/}*.{ts,tsx}\" --write", |
| 9 | + "lint": "eslint . --fix --ext .ts,.tsx", |
13 | 10 | "test": "jest", |
14 | | - "test:watch": "jest --watchAll", |
15 | | - "types": "tsc", |
16 | | - "lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx", |
17 | | - "format": "prettier \"{,!(app|dist)/**/}*.{ts,tsx}\" --write" |
| 11 | + "types": "tsc && tsc --noEmit --project ./test/tsconfig.json" |
18 | 12 | }, |
19 | 13 | "devDependencies": { |
20 | | - "@npmcli/arborist": "^7.5.4", |
21 | | - "@react-native-community/cli": "^14.0.0", |
22 | | - "@react-native/babel-preset": "^0.75.1", |
23 | | - "@react-native/eslint-config": "^0.75.1", |
24 | | - "@react-native/typescript-config": "^0.75.1", |
| 14 | + "@react-native-community/cli": "^14.0.1", |
| 15 | + "@react-native/babel-preset": "^0.75.2", |
| 16 | + "@react-native/eslint-config": "^0.75.2", |
| 17 | + "@react-native/typescript-config": "^0.75.2", |
| 18 | + "@types/bun": "^1.1.8", |
25 | 19 | "@types/jest": "^29.5.12", |
26 | | - "@types/node": "^22.4.0", |
27 | | - "@types/react": "^18.3.3", |
| 20 | + "@types/node": "^22.5.4", |
| 21 | + "@types/react": "^18.3.5", |
28 | 22 | "@types/react-native": "^0.73.0", |
29 | 23 | "@types/react-test-renderer": "^18.3.0", |
30 | 24 | "babel-jest": "^29.7.0", |
31 | 25 | "cpx": "^1.5.0", |
32 | | - "esbuild": "^0.23.1", |
33 | 26 | "eslint": "8.57.0", |
34 | 27 | "eslint-plugin-flowtype": "^8.0.3", |
35 | 28 | "eslint-plugin-prettier": "^5.2.1", |
36 | 29 | "jest": "^29.7.0", |
37 | | - "npm-packlist": "^8.0.2", |
38 | | - "npm-run-all": "^4.1.5", |
39 | 30 | "prettier": "^3.3.3", |
40 | 31 | "react": "^18.3.1", |
41 | | - "react-native": "^0.75.1", |
| 32 | + "react-native": "^0.75.2", |
42 | 33 | "react-test-renderer": "^18.3.1", |
43 | 34 | "typescript": "^5.5.4" |
44 | 35 | }, |
|
47 | 38 | "react-native": ">= 0.70" |
48 | 39 | }, |
49 | 40 | "type": "module", |
50 | | - "main": "./dist/index.js", |
| 41 | + "main": "./index.tsx", |
51 | 42 | "exports": { |
52 | | - ".": { |
53 | | - "types": "./dist/index.d.ts", |
54 | | - "default": "./dist/index.js" |
55 | | - } |
| 43 | + ".": "./index.tsx" |
56 | 44 | }, |
57 | | - "types": "./dist/index.d.ts", |
| 45 | + "types": "./index.tsx", |
58 | 46 | "files": [ |
59 | | - "dist" |
| 47 | + "*.ts", |
| 48 | + "*.tsx" |
60 | 49 | ], |
61 | 50 | "prettier": { |
62 | | - "printWidth": 120, |
| 51 | + "printWidth": 140, |
63 | 52 | "semi": false, |
64 | 53 | "singleQuote": true |
65 | 54 | }, |
|
69 | 58 | "semi": 0 |
70 | 59 | }, |
71 | 60 | "ignorePatterns": [ |
72 | | - "dist", |
73 | 61 | "app" |
74 | 62 | ], |
75 | 63 | "root": true |
|
78 | 66 | "moduleFileExtensions": [ |
79 | 67 | "ts", |
80 | 68 | "tsx", |
81 | | - "js", |
82 | | - "jsx", |
83 | | - "json", |
84 | | - "node" |
| 69 | + "js" |
85 | 70 | ], |
86 | 71 | "moduleNameMapper": { |
87 | | - "react-dom": "react-native", |
88 | 72 | "<%= name %>": "<rootDir>" |
89 | 73 | }, |
90 | 74 | "preset": "react-native", |
|
0 commit comments