When reading https://yarnpkg.com/advanced/plugin-tutorial, it mentions this kind of code:
module.exports = {
name: `plugin-hello-world`,
factory: require => {
const {BaseCommand} = require(`@yarnpkg/cli`);When reading https://yarnpkg.com/advanced/plugin-tutorial, it mentions this kind of code:
module.exports = {
name: `plugin-hello-world`,
factory: require => {
const {BaseCommand} = require(`@yarnpkg/cli`);