@sleeperhq/mini-core 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/preload_packages.js +5 -0
- package/package.json +16 -14
- package/webpack.config.js +2 -2
package/bin/preload_packages.js
CHANGED
|
@@ -26,6 +26,11 @@ const main = async () => {
|
|
|
26
26
|
// Get the dependencies
|
|
27
27
|
const dependencies = packageJson.dependencies;
|
|
28
28
|
|
|
29
|
+
// Remove packages that cause conflicts
|
|
30
|
+
delete dependencies['@babel/runtime'];
|
|
31
|
+
delete dependencies['@babel/plugin-transform-runtime'];
|
|
32
|
+
delete dependencies['regenerator-runtime'];
|
|
33
|
+
|
|
29
34
|
// Write a ./package_list.js file that imports all dependencies
|
|
30
35
|
const packageListPath = path.join('package_list.js');
|
|
31
36
|
const packageList = Object.keys(dependencies).map(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleeperhq/mini-core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Core library frameworks for developing Sleeper Mini Apps.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -34,21 +34,24 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@babel/runtime": "7.15.4",
|
|
38
|
+
"@babel/plugin-transform-runtime": "7.15.0",
|
|
37
39
|
"@callstack/repack": "blitzstudios/repack.git#callstack-repack-v2.7.0-gitpkg",
|
|
38
40
|
"@callstack/repack-dev-server": "blitzstudios/repack.git#callstack-repack-dev-server-v1.0.7-gitpkg",
|
|
39
|
-
"@react-native-community/cli": "6.
|
|
41
|
+
"@react-native-community/cli": "6.1.0",
|
|
40
42
|
"@react-native-community/cli-types": "6.0.0",
|
|
41
43
|
"@react-native-community/netinfo": "9.3.7",
|
|
42
44
|
"axios": "0.15.3",
|
|
43
|
-
"babel-loader": "
|
|
44
|
-
"react-native-fast-image": "
|
|
45
|
-
"react-native-interactable": "
|
|
45
|
+
"babel-loader": "9.1.2",
|
|
46
|
+
"react-native-fast-image": "https://github.com/blitzstudios/react-native-fast-image.git#release/1.1",
|
|
47
|
+
"react-native-interactable": "https://github.com/blitzstudios/react-native-interactable",
|
|
46
48
|
"react-native-linear-gradient": "2.5.6",
|
|
47
49
|
"react-native-rename": "^3.2.12",
|
|
48
|
-
"react-refresh": "0.
|
|
50
|
+
"react-refresh": "0.14.0",
|
|
49
51
|
"react-test-renderer": "17.0.2",
|
|
50
|
-
"
|
|
51
|
-
"webpack": "
|
|
52
|
+
"regenerator-runtime": "0.13.9",
|
|
53
|
+
"terser-webpack-plugin": "5.3.6",
|
|
54
|
+
"webpack": "5.75.0"
|
|
52
55
|
},
|
|
53
56
|
"peerDependencies": {
|
|
54
57
|
"react": "17.0.2",
|
|
@@ -56,9 +59,8 @@
|
|
|
56
59
|
"react-native-svg": "13.7.0"
|
|
57
60
|
},
|
|
58
61
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "
|
|
60
|
-
"@babel/preset-typescript": "
|
|
61
|
-
"@babel/runtime": "^7.12.5",
|
|
62
|
+
"@babel/core": "7.15.8",
|
|
63
|
+
"@babel/preset-typescript": "7.21.4",
|
|
62
64
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
63
65
|
"@types/react-native": "0.67.7",
|
|
64
66
|
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
@@ -69,11 +71,11 @@
|
|
|
69
71
|
"lodash": "4.17.21",
|
|
70
72
|
"metro-react-native-babel-preset": "^0.66.2",
|
|
71
73
|
"react-native-tcp-socket": "6.0.6",
|
|
72
|
-
"typescript": "
|
|
74
|
+
"typescript": "5.0.4"
|
|
73
75
|
},
|
|
74
76
|
"resolutions": {
|
|
75
|
-
"react-devtools-core": "
|
|
76
|
-
"@pmmmwh/react-refresh-webpack-plugin": "
|
|
77
|
+
"react-devtools-core": "4.23.0",
|
|
78
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10"
|
|
77
79
|
},
|
|
78
80
|
"jest": {
|
|
79
81
|
"preset": "react-native"
|
package/webpack.config.js
CHANGED
|
@@ -212,8 +212,8 @@ module.exports = env => {
|
|
|
212
212
|
/** Add React Refresh transform only when HMR is enabled. */
|
|
213
213
|
plugins:
|
|
214
214
|
devServer && devServer.hmr
|
|
215
|
-
? ['module:react-refresh/babel']
|
|
216
|
-
:
|
|
215
|
+
? ['@babel/plugin-transform-runtime', 'module:react-refresh/babel']
|
|
216
|
+
: ['@babel/plugin-transform-runtime'],
|
|
217
217
|
babelrc: false,
|
|
218
218
|
comments: true, // necessary for named chunks
|
|
219
219
|
cacheDirectory: true,
|