Skip to content

Commit

Permalink
fix: addon path generating on windows (#648)
Browse files Browse the repository at this point in the history
* fix: addon path generating

* v8.4.2-alpha.0

* fix: withstorybook export

* v8.4.2-alpha.1

* fix: with storybook again

* fix: with storybook again

* v8.4.2-alpha.2

* fix: revert withstorybook for now
  • Loading branch information
dannyhw authored Nov 9, 2024
1 parent 210de91 commit 807d915
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 44 deletions.
14 changes: 7 additions & 7 deletions examples/expo-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expo-example",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"private": true,
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -28,19 +28,19 @@
"@storybook/addon-essentials": "^8.4.2",
"@storybook/addon-interactions": "^8.4.2",
"@storybook/addon-links": "^8.4.2",
"@storybook/addon-ondevice-actions": "^8.4.1",
"@storybook/addon-ondevice-backgrounds": "^8.4.1",
"@storybook/addon-ondevice-controls": "^8.4.1",
"@storybook/addon-ondevice-notes": "^8.4.1",
"@storybook/addon-ondevice-actions": "^8.4.2-alpha.2",
"@storybook/addon-ondevice-backgrounds": "^8.4.2-alpha.2",
"@storybook/addon-ondevice-controls": "^8.4.2-alpha.2",
"@storybook/addon-ondevice-notes": "^8.4.2-alpha.2",
"@storybook/addon-react-native-server": "0.0.6",
"@storybook/addon-react-native-web": "^0.0.22",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/blocks": "^8.4.2",
"@storybook/builder-webpack5": "^8.4.2",
"@storybook/global": "^5.0.0",
"@storybook/react": "^8.4.2",
"@storybook/react-native": "^8.4.1",
"@storybook/react-native-theming": "^8.4.1",
"@storybook/react-native": "^8.4.2-alpha.2",
"@storybook/react-native-theming": "^8.4.2-alpha.2",
"@storybook/react-webpack5": "^8.4.2",
"@storybook/test": "^8.4.2",
"expo": "52.0.0-preview.21",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"npmClient": "yarn",
"registry": "https://registry.npmjs.org",
"version": "8.4.1"
"version": "8.4.2-alpha.2"
}
2 changes: 1 addition & 1 deletion packages/ondevice-actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-actions",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "Action Logger addon for react-native storybook",
"keywords": [
"storybook"
Expand Down
4 changes: 2 additions & 2 deletions packages/ondevice-backgrounds/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-backgrounds",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "A react-native storybook addon to show different backgrounds for your preview",
"keywords": [
"addon",
Expand Down Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@storybook/core": "^8.4.2",
"@storybook/react-native-theming": "^8.4.1"
"@storybook/react-native-theming": "^8.4.2-alpha.2"
},
"devDependencies": {
"typescript": "^5.3.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/ondevice-controls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-controls",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "Display storybook controls on your device.",
"keywords": [
"addon",
Expand Down Expand Up @@ -32,8 +32,8 @@
"dependencies": {
"@storybook/addon-controls": "^8.4.2",
"@storybook/core": "^8.4.2",
"@storybook/react-native-theming": "^8.4.1",
"@storybook/react-native-ui": "^8.4.1",
"@storybook/react-native-theming": "^8.4.2-alpha.2",
"@storybook/react-native-ui": "^8.4.2-alpha.2",
"deep-equal": "^1.0.1",
"prop-types": "^15.7.2",
"react-native-modal-datetime-picker": "^14.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ondevice-notes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/addon-ondevice-notes",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "Write notes for your react-native Storybook stories.",
"keywords": [
"addon",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@storybook/core": "^8.4.2",
"@storybook/react-native-theming": "^8.4.1",
"@storybook/react-native-theming": "^8.4.2-alpha.2",
"react-native-markdown-display": "^7.0.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-theming/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/react-native-theming",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "A wrapper library around emotion 11 to provide theming support for react-native storybook",
"keywords": [
"react",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/react-native-ui",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "ui components for react native storybook",
"keywords": [
"react",
Expand Down Expand Up @@ -60,7 +60,7 @@
"dependencies": {
"@storybook/core": "^8.4.2",
"@storybook/react": "^8.4.2",
"@storybook/react-native-theming": "^8.4.1",
"@storybook/react-native-theming": "^8.4.2-alpha.2",
"fuse.js": "^7.0.0",
"memoizerific": "^1.11.3",
"polished": "^4.3.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storybook/react-native",
"version": "8.4.1",
"version": "8.4.2-alpha.2",
"description": "A better way to develop React Native Components for your app",
"keywords": [
"react",
Expand Down Expand Up @@ -49,8 +49,8 @@
"@storybook/csf": "^0.1.1",
"@storybook/global": "^5.0.0",
"@storybook/react": "^8.4.2",
"@storybook/react-native-theming": "^8.4.1",
"@storybook/react-native-ui": "^8.4.1",
"@storybook/react-native-theming": "^8.4.2-alpha.2",
"@storybook/react-native-ui": "^8.4.2-alpha.2",
"chokidar": "^3.5.1",
"commander": "^8.2.0",
"dedent": "^1.5.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function getPreviewExists({ configPath }) {

function resolveAddonFile(addon, file, extensions = ['js', 'mjs', 'ts']) {
try {
const basePath = path.join(addon, file);
const basePath = `${addon}/${file}`;

require.resolve(basePath);

Expand All @@ -69,7 +69,7 @@ function resolveAddonFile(addon, file, extensions = ['js', 'mjs', 'ts']) {

for (const ext of extensions) {
try {
const filePath = path.join(addon, `${file}.${ext}`);
const filePath = `${addon}/${file}.${ext}`;

require.resolve(filePath);

Expand Down
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5140,7 +5140,7 @@ __metadata:
languageName: node
linkType: hard

"@storybook/addon-ondevice-actions@npm:^8.4.1, @storybook/addon-ondevice-actions@workspace:packages/ondevice-actions":
"@storybook/addon-ondevice-actions@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-actions@workspace:packages/ondevice-actions":
version: 0.0.0-use.local
resolution: "@storybook/addon-ondevice-actions@workspace:packages/ondevice-actions"
dependencies:
Expand All @@ -5155,27 +5155,27 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/addon-ondevice-backgrounds@npm:^8.4.1, @storybook/addon-ondevice-backgrounds@workspace:packages/ondevice-backgrounds":
"@storybook/addon-ondevice-backgrounds@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-backgrounds@workspace:packages/ondevice-backgrounds":
version: 0.0.0-use.local
resolution: "@storybook/addon-ondevice-backgrounds@workspace:packages/ondevice-backgrounds"
dependencies:
"@storybook/core": "npm:^8.4.2"
"@storybook/react-native-theming": "npm:^8.4.1"
"@storybook/react-native-theming": "npm:^8.4.2-alpha.2"
typescript: "npm:^5.3.3"
peerDependencies:
react: "*"
react-native: "*"
languageName: unknown
linkType: soft

"@storybook/addon-ondevice-controls@npm:^8.4.1, @storybook/addon-ondevice-controls@workspace:packages/ondevice-controls":
"@storybook/addon-ondevice-controls@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-controls@workspace:packages/ondevice-controls":
version: 0.0.0-use.local
resolution: "@storybook/addon-ondevice-controls@workspace:packages/ondevice-controls"
dependencies:
"@storybook/addon-controls": "npm:^8.4.2"
"@storybook/core": "npm:^8.4.2"
"@storybook/react-native-theming": "npm:^8.4.1"
"@storybook/react-native-ui": "npm:^8.4.1"
"@storybook/react-native-theming": "npm:^8.4.2-alpha.2"
"@storybook/react-native-ui": "npm:^8.4.2-alpha.2"
cross-env: "npm:^7.0.3"
deep-equal: "npm:^1.0.1"
prop-types: "npm:^15.7.2"
Expand All @@ -5192,12 +5192,12 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/addon-ondevice-notes@npm:^8.4.1, @storybook/addon-ondevice-notes@workspace:packages/ondevice-notes":
"@storybook/addon-ondevice-notes@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-notes@workspace:packages/ondevice-notes":
version: 0.0.0-use.local
resolution: "@storybook/addon-ondevice-notes@workspace:packages/ondevice-notes"
dependencies:
"@storybook/core": "npm:^8.4.2"
"@storybook/react-native-theming": "npm:^8.4.1"
"@storybook/react-native-theming": "npm:^8.4.2-alpha.2"
react-native-markdown-display: "npm:^7.0.2"
typescript: "npm:^5.3.3"
peerDependencies:
Expand Down Expand Up @@ -5506,7 +5506,7 @@ __metadata:
languageName: node
linkType: hard

"@storybook/react-native-theming@npm:^8.4.1, @storybook/react-native-theming@workspace:packages/react-native-theming":
"@storybook/react-native-theming@npm:^8.4.2-alpha.2, @storybook/react-native-theming@workspace:packages/react-native-theming":
version: 0.0.0-use.local
resolution: "@storybook/react-native-theming@workspace:packages/react-native-theming"
dependencies:
Expand All @@ -5520,13 +5520,13 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/react-native-ui@npm:^8.4.1, @storybook/react-native-ui@workspace:packages/react-native-ui":
"@storybook/react-native-ui@npm:^8.4.2-alpha.2, @storybook/react-native-ui@workspace:packages/react-native-ui":
version: 0.0.0-use.local
resolution: "@storybook/react-native-ui@workspace:packages/react-native-ui"
dependencies:
"@storybook/core": "npm:^8.4.2"
"@storybook/react": "npm:^8.4.2"
"@storybook/react-native-theming": "npm:^8.4.1"
"@storybook/react-native-theming": "npm:^8.4.2-alpha.2"
"@types/jest": "npm:^29.4.3"
"@types/react": "npm:~18.3.12"
babel-jest: "npm:^29.7.0"
Expand All @@ -5550,16 +5550,16 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/react-native@npm:^8.4.1, @storybook/react-native@workspace:packages/react-native":
"@storybook/react-native@npm:^8.4.2-alpha.2, @storybook/react-native@workspace:packages/react-native":
version: 0.0.0-use.local
resolution: "@storybook/react-native@workspace:packages/react-native"
dependencies:
"@storybook/core": "npm:^8.4.2"
"@storybook/csf": "npm:^0.1.1"
"@storybook/global": "npm:^5.0.0"
"@storybook/react": "npm:^8.4.2"
"@storybook/react-native-theming": "npm:^8.4.1"
"@storybook/react-native-ui": "npm:^8.4.1"
"@storybook/react-native-theming": "npm:^8.4.2-alpha.2"
"@storybook/react-native-ui": "npm:^8.4.2-alpha.2"
"@types/jest": "npm:^29.4.3"
"@types/react": "npm:~18.3.12"
babel-jest: "npm:^29.7.0"
Expand Down Expand Up @@ -9970,19 +9970,19 @@ __metadata:
"@storybook/addon-essentials": "npm:^8.4.2"
"@storybook/addon-interactions": "npm:^8.4.2"
"@storybook/addon-links": "npm:^8.4.2"
"@storybook/addon-ondevice-actions": "npm:^8.4.1"
"@storybook/addon-ondevice-backgrounds": "npm:^8.4.1"
"@storybook/addon-ondevice-controls": "npm:^8.4.1"
"@storybook/addon-ondevice-notes": "npm:^8.4.1"
"@storybook/addon-ondevice-actions": "npm:^8.4.2-alpha.2"
"@storybook/addon-ondevice-backgrounds": "npm:^8.4.2-alpha.2"
"@storybook/addon-ondevice-controls": "npm:^8.4.2-alpha.2"
"@storybook/addon-ondevice-notes": "npm:^8.4.2-alpha.2"
"@storybook/addon-react-native-server": "npm:0.0.6"
"@storybook/addon-react-native-web": "npm:^0.0.22"
"@storybook/addon-webpack5-compiler-babel": "npm:^3.0.3"
"@storybook/blocks": "npm:^8.4.2"
"@storybook/builder-webpack5": "npm:^8.4.2"
"@storybook/global": "npm:^5.0.0"
"@storybook/react": "npm:^8.4.2"
"@storybook/react-native": "npm:^8.4.1"
"@storybook/react-native-theming": "npm:^8.4.1"
"@storybook/react-native": "npm:^8.4.2-alpha.2"
"@storybook/react-native-theming": "npm:^8.4.2-alpha.2"
"@storybook/react-webpack5": "npm:^8.4.2"
"@storybook/test": "npm:^8.4.2"
"@testing-library/react-native": "npm:12.4.3"
Expand Down

0 comments on commit 807d915

Please sign in to comment.