mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 21:03:47 +02:00
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type (#7080)
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type * fix
This commit is contained in:
parent
ce2b631455
commit
24c205a835
38 changed files with 145 additions and 138 deletions
|
@ -11,9 +11,9 @@ import type {Node, Parent} from 'unist';
|
|||
import visit from 'unist-util-visit';
|
||||
import npmToYarn from 'npm-to-yarn';
|
||||
|
||||
interface PluginOptions {
|
||||
type PluginOptions = {
|
||||
sync?: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
// E.g. global install: 'npm i' -> 'yarn'
|
||||
const convertNpmToYarn = (npmCode: string) => npmToYarn(npmCode, 'yarn');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue