@storybook/react-native 6.5.0-rc.6 → 6.5.0-rc.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/package.json +2 -2
- package/scripts/loader.js +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "6.5.0-rc.
|
|
3
|
+
"version": "6.5.0-rc.7",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "47fb23637c7d516c8747ef05f782a010f16691f7"
|
|
91
91
|
}
|
package/scripts/loader.js
CHANGED
|
@@ -107,7 +107,12 @@ function writeRequires({ configPath, absolute = false }) {
|
|
|
107
107
|
const absolutePath = absolute ? requirePath : path.resolve(configPath, requirePath);
|
|
108
108
|
const pathRelativeToCwd = path.relative(cwd, absolutePath);
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
const normalizePathForWindows = (str) =>
|
|
111
|
+
path.sep === '\\' ? str.replace(/\\/g, '/') : str;
|
|
112
|
+
|
|
113
|
+
return `"./${normalizePathForWindows(
|
|
114
|
+
pathRelativeToCwd
|
|
115
|
+
)}": require("${normalizePathForWindows(requirePath)}")`;
|
|
111
116
|
});
|
|
112
117
|
return [...acc, ...paths];
|
|
113
118
|
}, []);
|