You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run swizzle @docusaurus/theme-classic Footer -- --typescript
This is a valid npm command, although afaik -- isn't required by the newest npm versions, older ones still require it.
Unfortunately, the extra -- is not supported by yarn and pnpm
The yarn conversion already removes the extra -- but not the pnpm one:
To Reproduce
On any docusaurus v3.1.1 (latest version) site:
```bash npm2yarn
npm run swizzle @docusaurus/theme-classic Footer -- --typescript
```
Expected behavior
Convert to:
pnpm run swizzle @docusaurus/theme-classic Footer --typescript
Instead of:
pnpm run swizzle @docusaurus/theme-classic Footer -- --typescript
Package & Environment Details
Environment: macOS, Node 18, npm 10
The text was updated successfully, but these errors were encountered:
slorber
changed the title
Conversion to pnpm does not remove the extra -- used to pass extra arguments
pnpm conversion should remove extra -- used to pass npm args
Feb 9, 2024
Describe the bug
Related issue: facebook/docusaurus#9761
This is a valid npm command, although afaik
--
isn't required by the newest npm versions, older ones still require it.Unfortunately, the extra
--
is not supported by yarn and pnpmThe yarn conversion already removes the extra
--
but not the pnpm one:To Reproduce
On any docusaurus v3.1.1 (latest version) site:
Expected behavior
Convert to:
Instead of:
Package & Environment Details
The text was updated successfully, but these errors were encountered: