-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
100 lines (100 loc) · 2.88 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
{
"name": "react-native-get-device-locale",
"version": "0.2.1",
"description": "react-native-get-device-locale is a lightweight and efficient React Native module that provides easy access to the device's locale.",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
"types": "lib/types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./lib/typescript/module/index.d.ts",
"default": "./lib/module/index.js"
},
"require": {
"types": "./lib/typescript/commonjs/index.d.ts",
"default": "./lib/commonjs/index.js"
}
}
},
"files": [
"src",
"lib",
"android",
"ios",
"*.podspec",
"react-native.config.js",
"!**/.*"
],
"scripts": {
"clean": "del-cli lib android/build android/generated ios/generated",
"build:cjs": "babel src --out-dir lib/commonjs --extensions \".js,.jsx,.ts,.tsx\" && npm run build:cjstypes",
"build:esm": "babel src --out-dir lib/module --extensions \".js,.jsx,.ts,.tsx\" --env-name esm && npm run build:esmtypes",
"build:babel": "npm run build:cjs && npm run build:esm",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",
"build:cjstypes": "tsc -p tsconfig.commonjs.json",
"build:esmtypes": "tsc -p tsconfig.module.json",
"codegen": "npx @react-native-community/cli codegen && node utils/patchCodegen.mjs",
"build": "npm run build:babel && npm run build:types && npm run codegen",
"preprepare": "npm run clean",
"prepare": "npm run build"
},
"keywords": [
"react-native-module",
"native-module",
"turbo-module",
"react-native",
"typescript",
"i18n",
"locale",
"localization",
"device-locale"
],
"repository": {
"type": "git",
"url": "git+https://github.com/wneel/react-native-get-device-locale.git"
},
"author": "Wayan NEEL <[email protected]> (https://github.com/wneel)",
"license": "MIT",
"bugs": {
"url": "https://github.com/wneel/react-native-get-device-locale/issues"
},
"homepage": "https://github.com/wneel/react-native-get-device-locale#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-typescript": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@react-native-community/cli": "15.0.0",
"@types/react": "^18.2.44",
"del-cli": "^5.1.0",
"fs-extra": "^11.2.0",
"react": "18.3.1",
"react-native": "0.76.1",
"typescript": "^5.2.2"
},
"resolutions": {
"@types/react": "^18.2.44"
},
"peerDependencies": {
"react-native": ">=0.68"
},
"codegenConfig": {
"name": "RNGetDeviceLocaleSpec",
"type": "modules",
"jsSrcsDir": "src",
"outputDir": {
"ios": "ios/generated",
"android": "android/generated"
},
"android": {
"javaPackageName": "com.getdevicelocale"
},
"includesGeneratedCode": true
}
}