Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 2.86 KB
/
Copy pathpackage.json
File metadata and controls
103 lines (103 loc) · 2.86 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
{
"name": "react-native-reload-widget",
"version": "1.0.0",
"description": "react-native-reload-widget is a lightweight and efficient React Native module that reloads your app's home screen widgets on demand, on iOS and Android.",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
"types": "./lib/typescript/commonjs/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",
"CHANGELOG.md",
"!**/.*"
],
"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:cjstypes": "tsc -p tsconfig.commonjs.json",
"build:esmtypes": "tsc -p tsconfig.module.json",
"codegen": "npx @react-native-community/cli codegen --source library && node utils/patchCodegen.mjs",
"build": "npm run build:babel && npm run codegen",
"preprepare": "npm run clean",
"prepare": "npm run build"
},
"keywords": [
"react-native-module",
"native-module",
"turbo-module",
"react-native",
"typescript",
"widget",
"widgets",
"widgetkit",
"ios-widget",
"android-widget",
"appwidget",
"app-extension",
"reload",
"refresh"
],
"repository": {
"type": "git",
"url": "git+https://github.com/wneel/react-native-reload-widget.git"
},
"author": "Wayan NEEL <66263633+wneel@users.noreply.github.com> (https://github.com/wneel)",
"license": "MIT",
"bugs": {
"url": "https://github.com/wneel/react-native-reload-widget/issues"
},
"homepage": "https://github.com/wneel/react-native-reload-widget#readme",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@babel/cli": "^7.26.4",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-typescript": "^7.26.3",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@react-native-community/cli": "^20.1.3",
"@types/react": "^19.2.0",
"del-cli": "^5.1.0",
"fs-extra": "^11.2.0",
"react": "19.2.8",
"react-native": "0.87.1",
"typescript": "^5.6.3"
},
"peerDependencies": {
"react-native": ">=0.76"
},
"codegenConfig": {
"name": "RNReloadWidgetSpec",
"type": "modules",
"jsSrcsDir": "src",
"outputDir": {
"ios": "ios/generated",
"android": "android/generated"
},
"android": {
"javaPackageName": "com.reloadwidget"
},
"includesGeneratedCode": true
}
}