-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
116 lines (116 loc) · 3.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"name": "responsive-react-native",
"description": "Responsifies regular pixel-based React Native styles.",
"version": "0.0.0-development",
"repository": "github:tobua/responsive-react-native",
"license": "MIT",
"author": "Matthias Giger",
"scripts": {
"app": "bun create-app.js",
"app:install": "npm i --no-save $(npm pack . | tail -1) --prefix app",
"build": "esbuild index.ts --outdir=dist --bundle --format=esm --platform=neutral --sourcemap --external:react-native --external:react --external:mobx && tsc",
"watch": "npm-run-all --parallel build:watch copy",
"copy": "cpx 'dist/**/*' app/node_modules/responsive-react-native/dist --watch",
"build:watch": "esbuild index.ts --watch --outdir=dist --bundle --format=esm --platform=neutral --sourcemap --external:react-native --external:react --external:mobx",
"test": "jest && bun run test:types",
"test:types": "tsc --project ./test/tsconfig.json && tsc --project ./test/types/tsconfig.json",
"test:watch": "jest --watchAll",
"lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx",
"format": "prettier \"{,!(app|dist)/**/}*.{ts,tsx}\" --write"
},
"devDependencies": {
"@react-native-community/cli": "^14.0.0",
"@react-native/babel-preset": "^0.75.1",
"@react-native/eslint-config": "^0.75.1",
"@react-native/typescript-config": "^0.75.1",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.5.3",
"@types/jest": "^29.5.12",
"@types/node": "^22.3.0",
"@types/react": "^18.3.3",
"@types/react-native": "^0.73.0",
"@types/react-test-renderer": "^18.3.0",
"babel-jest": "^29.7.0",
"cpx": "^1.5.0",
"esbuild": "^0.23.0",
"eslint": "8.57.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"mobx": "^6.13.1",
"mobx-react-lite": "^4.0.7",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-native": "^0.75.1",
"react-test-renderer": "^18.3.1",
"typescript": "^5.5.4"
},
"peerDependencies": {
"react": ">= 18",
"react-native": ">= 0.70"
},
"type": "module",
"sideEffects": true,
"main": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"keywords": [
"react-native",
"responsive",
"stylesheet",
"styles",
"flexbox"
],
"prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": true
},
"eslintConfig": {
"extends": "@react-native",
"rules": {
"semi": 0
},
"ignorePatterns": [
"dist",
"app",
"documentation"
],
"root": true
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"moduleNameMapper": {
"react-dom": "react-native",
"responsive-react-native": "<rootDir>/index.ts"
},
"preset": "react-native",
"setupFiles": [
"./test/helper/setup.ts"
],
"testPathIgnorePatterns": [
"/app/"
],
"transformIgnorePatterns": [
"node_modules/(?!react-native|@react-native)"
]
},
"publishConfig": {
"provenance": true
}
}