@sleeperhq/mini-core 0.0.5 → 0.0.7

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
@@ -131,13 +131,6 @@ const setProjectName = (name) => {
131
131
  fs.writeFileSync(podfilePath, newPodfileString);
132
132
  }
133
133
 
134
- const setUniqueName = (name) => {
135
- const webpackConfigPath = path.join('node_modules', '@sleeperhq', 'mini-core', 'webpack.config.js');
136
- const webpackConfigString = fs.readFileSync(webpackConfigPath).toString();
137
- const newWebpackConfigString = webpackConfigString.replace(/uniqueName: '.*'/, `uniqueName: '${name}'`);
138
- fs.writeFileSync(webpackConfigPath, newWebpackConfigString);
139
- }
140
-
141
134
  const validateProjectName = (name) => {
142
135
  const regex = /^[a-zA-Z0-9_]+$/;
143
136
  return regex.test(name);
@@ -155,7 +148,6 @@ const main = async () => {
155
148
  if (projectName !== fallback) {
156
149
  await spawnProcess(`yarn react-native-rename "${projectName}" --skipAllGitChecks`, "rename command exited with non-zero code");
157
150
  setProjectName(projectName);
158
- setUniqueName(projectName);
159
151
  }
160
152
 
161
153
  const commands = getCommands(projectName);
@@ -19,7 +19,7 @@
19
19
  "@react-navigation/native": "6.1.17",
20
20
  "@react-navigation/stack": "6.4.0",
21
21
  "@shopify/flash-list": "1.7.0",
22
- "@sleeperhq/mini-core": "0.0.3",
22
+ "@sleeperhq/mini-core": "0.0.7",
23
23
  "amazon-cognito-identity-js": "6.3.2",
24
24
  "crypto-js": "3.3.0",
25
25
  "decimal.js-light": "2.5.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@babel/plugin-transform-runtime": "7.25.9",
38
38
  "@babel/runtime": "7.26.0",
39
- "@callstack/repack": "blitzstudios/repack.git#callstack-repack-v0.5.3-gitpkg",
39
+ "@callstack/repack": "blitzstudios/repack.git#callstack-repack-v0.5.4-gitpkg",
40
40
  "@react-native-community/cli": "15.0.1",
41
41
  "@react-native-community/cli-platform-android": "15.0.1",
42
42
  "@react-native-community/cli-platform-apple": "15.0.1",
package/webpack.config.js CHANGED
@@ -120,7 +120,7 @@ module.exports = env => {
120
120
  : 'index.ios.bundle',
121
121
  chunkFilename: '[name].chunk.bundle',
122
122
  publicPath: Repack.getPublicPath({platform, devServer}),
123
- uniqueName: 'template',
123
+ uniqueName: config.name,
124
124
  },
125
125
  /**
126
126
  * Configures optimization of the built bundle.