Repository navigation
Replies: 1 comment 1 reply
|
Two separate things are going on here.
What ends up in your package.json is a different story, and you can control that. The plugin generator adds https://github.com/nrwl/nx/blob/master/packages/plugin/src/generators/plugin/plugin.ts So either pass it explicitly: or set it once in nx.json so you don't have to remember: "generators": {
"@nx/plugin:plugin": { "unitTestRunner": "vitest" }
}If you want the hard dependency turned into a peer, I'd open an issue for that. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Recently I moved to
vitestand I was fine, but now I tried to build a local plugin and@nx/pluginadded back all thejestdependencies... can it be an optional or peerDependency?All reactions