-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cli): output correct path when swizzling bare-file component in subfolder #7369
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
@@ -162,14 +162,14 @@ exports[`swizzle eject ComponentInFolder/ComponentInSubFolder TS: theme dir tree | |||
└── styles.module.css" | |||
`; | |||
|
|||
exports[`swizzle eject ComponentInFolder/Sibling JS: Sibling.css 1`] = ` | |||
exports[`swizzle eject ComponentInFolder/Sibling JS: ComponentInFolder/Sibling.css 1`] = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dang, we had incorrect snapshots previously...
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
Size Change: 0 B Total Size: 811 kB ℹ️ View Unchanged
|
Pre-flight checklist
Motivation
Currently, when running
yarn swizzle @docusaurus/theme-classic NavbarItem/DropdownNavbarItem --eject --danger
, it outputssrc/theme/DropdownNavbarItem.js
without theNavbarItem
folder. This PR fixes it.Test Plan
Added a test case
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs