@sleeperhq/mini-core 1.9.7 → 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
 
@@ -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.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",
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.8",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
package/webpack.config.js CHANGED
@@ -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
  /**