@shoutem/ui 8.1.3-rc.3 → 8.1.3-rc.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "8.1.3-rc.3",
3
+ "version": "8.1.3-rc.4",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ function removeMobileOnlyDependencies() {
8
8
  const uiPackageJson = JSON.parse(uiPackageJsonRawData);
9
9
 
10
10
  const uiDependencies = { ...uiPackageJson.dependencies };
11
- const mobileOnlyDependencies = uiPackageJson.mobileOnlyDependencies;
11
+ const { mobileOnlyDependencies } = uiPackageJson;
12
12
 
13
13
  mobileOnlyDependencies.forEach(dep => delete uiDependencies[dep]);
14
14
 
@@ -33,7 +33,8 @@ function removeMobileOnlyDependencies() {
33
33
  }
34
34
  }
35
35
 
36
- const rootConfigJsonRawData = fs.readFileSync(UI_PACKAGE_JSON_PATH);
36
+ const ROOT_CONFIG_JSON_PATH = '../../../package.json';
37
+ const rootConfigJsonRawData = fs.readFileSync(ROOT_CONFIG_JSON_PATH);
37
38
  const rootConfigJson = JSON.parse(rootConfigJsonRawData);
38
39
 
39
40
  if (rootConfigJson.platform === 'web') {