Skip to content

Instantly share code, notes, and snippets.

@Ayc0
Ayc0 / Experience.md
Last active July 13, 2022 23:27
Yarn plugin experience

Mismatch between doc and CLI tool in real life

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`);