@sleeperhq/mini-core 1.9.6 → 1.9.8

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/build_mini.js CHANGED
@@ -32,11 +32,10 @@ const getCommands = (projectName) => {
32
32
  const zip = isWindows ?
33
33
  `powershell Compress-Archive -Path "${distPath}" -DestinationPath "${zipFilePath}"` :
34
34
  `cd dist && zip -r "${projectName}.zip" * && cd -`;
35
- const openFile = isWindows ? `start dist` : `open dist`;
36
35
  const cleanIndex = `${removeDir} "${bundleOutputPath["ios"]}" "${bundleOutputPath["android"]}" "${sourcemapOutputPath["ios"]}" "${sourcemapOutputPath["android"]}"`;
37
36
  const cleanAll = `${removeDir} dist node_modules`;
38
37
  const cleanBuild = `${removeDir} "${distPath}" "${assetsDestPath["ios"]}" "${assetsDestPath["android"]}"`;
39
- const install = `yarn install && cd ios && pod install && cd -`;
38
+ const install = `yarn install`;
40
39
 
41
40
  const getBundleCommand = (platform) => {
42
41
  return `node "${reactNativeCliPath}" webpack-bundle \
@@ -56,7 +55,6 @@ const getCommands = (projectName) => {
56
55
  bundleIOS: getBundleCommand('ios'),
57
56
  bundleAndroid: getBundleCommand('android'),
58
57
  zip,
59
- openFile,
60
58
  cleanIndex,
61
59
  cleanAll,
62
60
  cleanBuild,
@@ -159,7 +157,7 @@ const main = async () => {
159
157
  // Clean build folders
160
158
  await spawnProcess(commands.cleanAll, "clean command exited with non-zero code");
161
159
 
162
- // Run yarn + pod install
160
+ // Run yarn
163
161
  await spawnProcess(commands.install, "install command exited with non-zero code");
164
162
  }
165
163
 
@@ -185,8 +183,6 @@ const main = async () => {
185
183
  // Clean build folders
186
184
  await spawnProcess(commands.cleanBuild, "clean build command exited with non-zero code");
187
185
 
188
- // Open output folder
189
- await spawnProcess(commands.openFile);
190
186
  process.exit(0);
191
187
  };
192
188
 
@@ -6,7 +6,7 @@
6
6
  "@notifee/react-native": "7.8.0",
7
7
  "@ptomasroos/react-native-multi-slider": "2.2.2",
8
8
  "@react-native-camera-roll/camera-roll": "5.2.0",
9
- "@react-native-community/blur": "3.6.0",
9
+ "@react-native-community/blur": "4.3.2",
10
10
  "@react-native-community/datetimepicker": "2.6.2",
11
11
  "@react-native-community/hooks": "2.8.0",
12
12
  "@react-native-community/netinfo": "9.3.7",
@@ -17,7 +17,7 @@
17
17
  "@react-navigation/native": "6.1.3",
18
18
  "@react-navigation/stack": "6.3.12",
19
19
  "@shopify/flash-list": "1.4.1",
20
- "@sleeperhq/mini-core": "1.9.6",
20
+ "@sleeperhq/mini-core": "1.9.8",
21
21
  "amazon-cognito-identity-js": "6.3.2",
22
22
  "crypto-js": "3.3.0",
23
23
  "decimal.js-light": "2.5.1",
@@ -30,7 +30,6 @@
30
30
  "react-native": "0.72.14",
31
31
  "react-native-action-sheet": "2.2.0",
32
32
  "react-native-animatable": "1.3.3",
33
- "react-native-branch": "5.4.0",
34
33
  "react-native-check-version": "1.0.20",
35
34
  "react-native-color-matrix-image-filters": "5.2.10",
36
35
  "react-native-compressor": "1.5.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "1.9.6",
3
+ "version": "1.9.8",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -43,12 +43,11 @@
43
43
  "@react-native-community/netinfo": "9.3.7",
44
44
  "axios": "0.15.3",
45
45
  "babel-loader": "9.1.2",
46
- "react-native-fast-image": "https://github.com/blitzstudios/react-native-fast-image.git#release/1.1",
46
+ "react-native-fast-image": "https://github.com/blitzstudios/react-native-fast-image.git#release/1.2",
47
47
  "react-native-interactable": "https://github.com/blitzstudios/react-native-interactable#release/1.1",
48
48
  "react-native-linear-gradient": "2.5.6",
49
49
  "react-native-rename": "^3.2.12",
50
50
  "react-refresh": "0.14.0",
51
- "react-test-renderer": "17.0.2",
52
51
  "regenerator-runtime": "0.13.11",
53
52
  "rx": "4.1.0",
54
53
  "string-replace-loader": "3.1.0",
@@ -58,7 +57,7 @@
58
57
  "peerDependencies": {
59
58
  "react": "18.2.0",
60
59
  "react-native": "0.72.14",
61
- "react-native-svg": "13.7.0"
60
+ "react-native-svg": "13.14.0"
62
61
  },
63
62
  "devDependencies": {
64
63
  "@babel/core": "7.15.8",
package/webpack.config.js CHANGED
@@ -156,8 +156,13 @@ module.exports = env => {
156
156
  ],
157
157
  chunkIds: 'named',
158
158
  },
159
+ /**
160
+ * We turn on polling so file updates can be recognized when used with Docker.
161
+ */
159
162
  watchOptions: {
160
- poll: 1000,
163
+ poll: true,
164
+ aggregateTimeout: 600,
165
+ ignored: '**/node_modules',
161
166
  },
162
167
  module: {
163
168
  /**
@@ -224,7 +229,7 @@ module.exports = env => {
224
229
  },
225
230
  },
226
231
  },
227
- {
232
+ dev && {
228
233
  test: /\.[jt]sx?$/,
229
234
  include: /src/,
230
235
  loader: 'string-replace-loader',
@@ -269,7 +274,7 @@ module.exports = env => {
269
274
  },
270
275
  },
271
276
  },
272
- ],
277
+ ].filter(Boolean),
273
278
  },
274
279
  plugins: [
275
280
  /**