-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 3.49 KB
/
Copy pathpackage.json
File metadata and controls
118 lines (118 loc) · 3.49 KB
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
117
118
{
"name": "@mxenabled/react-native-widget-sdk",
"description": "MX React Native Widget SDK",
"version": "1.1.4",
"main": "dist/src/index.js",
"source": "src/index.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mxenabled/react-native-widget-sdk.git"
},
"files": [
"dist/src"
],
"scripts": {
"build": "npm run clean && npm run compile && npm run documentation",
"clean": "[ -d dist ] && rm -r dist || true",
"compile": "npm run compile:version && npm run compile:sdk",
"compile:sdk": "tsc --declaration --noEmit false --outDir dist",
"compile:version": "ts-node bin/generate-version-file.ts",
"documentation": "cp node_modules/@mxenabled/widget-post-message-definitions/docs/react-native-sdk-generated.md docs/widget_callback_props.md",
"example:install": "bin/install-example-application-dependencies",
"example:start": "cd example && npm start",
"example:ios": "cd example && npm run ios",
"example:android": "cd example && npm run android",
"example:server": "mx-sso-api-proxy run",
"format": "npm run prettier -- -w",
"lint": "eslint src test",
"prepack": "npm run build",
"prettier": "prettier src test example/App.tsx",
"spellcheck": "cspell $(git ls-files)",
"test": "vitest run --coverage",
"test:watch": "vitest"
},
"bin": {
"mx-widget-sdk-setup": "dist/src/cli/setup.js"
},
"dependencies": {
"@mxenabled/widget-post-message-definitions": "^1.4.0",
"react-native-base64": "^0.2.1",
"url": "^0.11.0"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-typescript": "^7.16.7",
"@mxenabled/sso-api-proxy": "^1.3.4",
"@react-native/babel-preset": "^0.75.3",
"@testing-library/react-native": "^9.0.0",
"@types/node-fetch": "^2.5.12",
"@types/react": "^18.3.9",
"@types/react-native": "^0.70.19",
"@types/react-native-base64": "^0.2.0",
"@types/react-test-renderer": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"@vitest/coverage-v8": "^4.0.15",
"cspell": "^6.1.1",
"eslint": "^8.19.0",
"eslint-plugin-react-hooks": "^4.3.0",
"msw": "^2.12.4",
"node-fetch": "^2.6.7",
"prettier": "^2.8.8",
"react": "^18.3.1",
"react-native": "^0.75.3",
"react-native-base64": "^0.2.1",
"react-native-webview": "^13.12.2",
"react-test-renderer": "^18.3.1",
"ts-node": "^10.4.0",
"typescript": "^4.5.5",
"uri-scheme": "^1.0.112",
"vitest": "^4.0.15",
"vitest-react-native": "^0.1.5"
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"semi": [
"error",
"never"
],
"quotes": [
"error",
"double"
],
"no-trailing-spaces": "error",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-var-requires": 0
}
},
"prettier": {
"printWidth": 100,
"semi": false,
"trailingComma": "all",
"singleQuote": false,
"bracketSameLine": true,
"bracketSpacing": true
}
}