|
2 | 2 | "name": "<%= name %>", |
3 | 3 | "version": "1.0.0", |
4 | 4 | "license": "MIT", |
5 | | - "main": "./dist/index.js", |
6 | | - "type": "module", |
7 | | - "types": "./dist/index.d.ts", |
8 | | - "exports": { |
9 | | - ".": { |
10 | | - "types": "./dist/index.d.ts", |
11 | | - "default": "./dist/index.js" |
12 | | - }, |
13 | | - "./package.json": "./package.json" |
14 | | - }, |
15 | 5 | "scripts": { |
16 | 6 | "app": "node create-app.js", |
17 | 7 | "app:install": "npm i --no-save $(npm pack . | tail -1) --prefix app", |
|
24 | 14 | "lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx", |
25 | 15 | "format": "prettier \"{,!(app|dist)/**/}*.{ts,tsx}\" --write" |
26 | 16 | }, |
27 | | - "peerDependencies": { |
28 | | - "react": ">= 18", |
29 | | - "react-native": ">= 0.70" |
30 | | - }, |
31 | 17 | "devDependencies": { |
32 | 18 | "@react-native-community/cli": "^13.0.0", |
33 | 19 | "@react-native/babel-preset": "^0.74.0", |
|
52 | 38 | "react-test-renderer": "^18.2.0", |
53 | 39 | "typescript": "^5.3.3" |
54 | 40 | }, |
| 41 | + "peerDependencies": { |
| 42 | + "react": ">= 18", |
| 43 | + "react-native": ">= 0.70" |
| 44 | + }, |
| 45 | + "type": "module", |
| 46 | + "main": "./dist/index.js", |
| 47 | + "exports": { |
| 48 | + ".": { |
| 49 | + "types": "./dist/index.d.ts", |
| 50 | + "default": "./dist/index.js" |
| 51 | + } |
| 52 | + }, |
| 53 | + "types": "./dist/index.d.ts", |
55 | 54 | "files": [ |
56 | 55 | "dist" |
57 | 56 | ], |
| 57 | + "prettier": { |
| 58 | + "printWidth": 100, |
| 59 | + "semi": false, |
| 60 | + "singleQuote": true |
| 61 | + }, |
58 | 62 | "eslintConfig": { |
59 | | - "root": true, |
60 | | - "extends": "@react-native-community", |
| 63 | + "extends": "@react-native", |
61 | 64 | "rules": { |
62 | 65 | "semi": 0 |
63 | 66 | }, |
64 | 67 | "ignorePatterns": [ |
65 | 68 | "dist", |
66 | 69 | "app" |
67 | | - ] |
68 | | - }, |
69 | | - "prettier": { |
70 | | - "semi": false, |
71 | | - "singleQuote": true, |
72 | | - "printWidth": 100 |
| 70 | + ], |
| 71 | + "root": true |
73 | 72 | }, |
74 | 73 | "jest": { |
75 | | - "preset": "react-native", |
76 | | - "testPathIgnorePatterns": [ |
77 | | - "/app/" |
78 | | - ], |
79 | | - "transformIgnorePatterns": [ |
80 | | - "node_modules/(?!react-native|@react-native)" |
81 | | - ], |
82 | | - "moduleNameMapper": { |
83 | | - "react-dom": "react-native", |
84 | | - "<%= name %>": "<rootDir>" |
85 | | - }, |
86 | 74 | "moduleFileExtensions": [ |
87 | 75 | "ts", |
88 | 76 | "tsx", |
89 | 77 | "js", |
90 | 78 | "jsx", |
91 | 79 | "json", |
92 | 80 | "node" |
| 81 | + ], |
| 82 | + "moduleNameMapper": { |
| 83 | + "react-dom": "react-native", |
| 84 | + "<%= name %>": "<rootDir>" |
| 85 | + }, |
| 86 | + "preset": "react-native", |
| 87 | + "testPathIgnorePatterns": [ |
| 88 | + "/app/" |
| 89 | + ], |
| 90 | + "transformIgnorePatterns": [ |
| 91 | + "node_modules/(?!react-native|@react-native)" |
93 | 92 | ] |
| 93 | + }, |
| 94 | + "publishConfig": { |
| 95 | + "provenance": false |
94 | 96 | } |
95 | 97 | } |
0 commit comments