@sleeperhq/mini-core 1.9.7 → 1.9.9

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,
@@ -148,7 +146,7 @@ const main = async () => {
148
146
  }
149
147
 
150
148
  if (projectName !== fallback) {
151
- await spawnProcess(`yarn react-native-rename "${projectName}" --skipGitStatusCheck`, "rename command exited with non-zero code");
149
+ await spawnProcess(`yarn react-native-rename "${projectName}" --skipAllGitChecks`, "rename command exited with non-zero code");
152
150
  setProjectName(projectName);
153
151
  }
154
152
 
@@ -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
 
@@ -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.7",
20
+ "@sleeperhq/mini-core": "1.9.9",
21
21
  "amazon-cognito-identity-js": "6.3.2",
22
22
  "crypto-js": "3.3.0",
23
23
  "decimal.js-light": "2.5.1",
@@ -97,7 +97,7 @@
97
97
  "rn-prompt": "1.0.4"
98
98
  },
99
99
  "overrides": {
100
- "@callstack/repack": "2.7.0",
100
+ "@callstack/repack": "3.1.0",
101
101
  "@react-native-async-storage/async-storage": "1.15.15",
102
102
  "@react-native-community/audio-toolkit": "2.0.3",
103
103
  "react-native-chart-kit": "6.7.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "1.9.7",
3
+ "version": "1.9.9",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -45,8 +45,8 @@
45
45
  "babel-loader": "9.1.2",
46
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
- "react-native-linear-gradient": "2.5.6",
49
- "react-native-rename": "^3.2.12",
48
+ "react-native-linear-gradient": "2.8.3",
49
+ "react-native-rename": "blitzstudios/react-native-rename.git#react-native-rename-v3.2.14-gitpkg",
50
50
  "react-refresh": "0.14.0",
51
51
  "regenerator-runtime": "0.13.11",
52
52
  "rx": "4.1.0",
package/webpack.config.js CHANGED
@@ -45,7 +45,7 @@ module.exports = env => {
45
45
  const dev = mode === 'development';
46
46
 
47
47
  const sharedDeps = Object.keys(dependencies).reduce((acc, key) => {
48
- acc[key] = {singleton: true, eager: dev, requiredVersion: dependencies[key]};
48
+ acc[key] = { eager: dev, requiredVersion: dependencies[key] };
49
49
  return acc;
50
50
  }, {});
51
51
 
@@ -229,7 +229,7 @@ module.exports = env => {
229
229
  },
230
230
  },
231
231
  },
232
- {
232
+ dev && {
233
233
  test: /\.[jt]sx?$/,
234
234
  include: /src/,
235
235
  loader: 'string-replace-loader',
@@ -274,7 +274,7 @@ module.exports = env => {
274
274
  },
275
275
  },
276
276
  },
277
- ],
277
+ ].filter(Boolean),
278
278
  },
279
279
  plugins: [
280
280
  /**