Skip to content

Commit

Permalink
Merge pull request #18412 from storybookjs/fix/pnp-compat-2
Browse files Browse the repository at this point in the history
Core: fix PnP compatibility for @storybook/ui and @storybook/router packages
  • Loading branch information
yannbf authored Jun 10, 2022
2 parents 08351b7 + b77e07b commit b2f4390
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 26 deletions.
45 changes: 22 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,32 +265,31 @@ jobs:
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
# TODO: we disabled this one because it keeps failing, we should fix it, and enable it again!
# - attach_workspace:
# at: .
# - run:
# name: Running local registry
# command: yarn local-registry --port 6000 --open
# background: true
# - run:
# name: Wait for registry
# command: yarn wait-on http://localhost:6000
# - run:
# name: run e2e tests cra
# command: yarn test:e2e-framework --pnp cra
- attach_workspace:
at: .
- run:
name: Running local registry
command: yarn local-registry --port 6000 --open
background: true
- run:
name: Wait for registry
command: yarn wait-on http://localhost:6000
- run:
name: run e2e tests cra
command: yarn test:e2e-framework --pnp cra
# - run:
# name: run e2e tests vue
# command: yarn test:e2e-framework --pnp sfcVue
# - run:
# name: prep artifacts
# when: always
# command: zip -r /tmp/storybook-e2e-testing-out.zip /tmp/storybook-e2e-testing
# - store_artifacts:
# path: /tmp/cypress-record
# destination: cypress
# - store_artifacts:
# path: /tmp/storybook-e2e-testing-out.zip
# destination: e2e
- run:
name: prep artifacts
when: always
command: zip -r /tmp/storybook-e2e-testing-out.zip /tmp/storybook-e2e-testing
- store_artifacts:
path: /tmp/cypress-record
destination: cypress
- store_artifacts:
path: /tmp/storybook-e2e-testing-out.zip
destination: e2e
e2e-tests-examples:
executor:
class: small
Expand Down
2 changes: 1 addition & 1 deletion lib/core-common/src/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const resolveAddonName = (
const managerFile = safeResolve(`${path}/manager`);
const registerFile = safeResolve(`${path}/register`) || safeResolve(`${path}/register-panel`);
const previewFile = safeResolve(`${path}/preview`);
const presetFile = safeResolve(`${path}/preset`);
const presetFile = r(`${path}/preset`);

if (!(managerFile || previewFile) && presetFile) {
return {
Expand Down
2 changes: 1 addition & 1 deletion lib/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"dependencies": {
"@storybook/client-logger": "6.5.0-rc.1",
"core-js": "^3.8.2",
"qs": "^6.10.0",
"regenerator-runtime": "^0.13.7"
},
"devDependencies": {
Expand All @@ -50,7 +51,6 @@
"history": "5.0.0",
"lodash": "^4.17.21",
"memoizerific": "^1.11.3",
"qs": "^6.10.0",
"react-router": "6.0.2",
"react-router-dom": "6.0.2",
"ts-dedent": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@storybook/semver": "^7.3.2",
"@storybook/theming": "6.5.0-rc.1",
"core-js": "^3.8.2",
"qs": "^6.10.0",
"regenerator-runtime": "^0.13.7",
"resolve-from": "^5.0.0"
},
Expand All @@ -67,7 +68,6 @@
"markdown-to-jsx": "^7.1.3",
"memoizerific": "^1.11.3",
"polished": "^4.2.2",
"qs": "^6.10.0",
"react-draggable": "^4.4.3",
"react-helmet-async": "^1.0.7",
"react-sizeme": "^3.0.1",
Expand Down

0 comments on commit b2f4390

Please sign in to comment.