How would I go about forking a plugin? FInding some difficulty due to them being under a monorepo
all in the title
5 Replies
i guess fork the whole repo and make your changes
but i'd just want to make a change in one plugin for my person bot
is all that really necessary
Solution
If you want to make a small change, use
patch-package
patch-package
Fix broken node modules with no fuss
❯ Author: ds300
❯ Maintainers: ds300
❯ Latest version: 8.0.0
❯ License: MIT
❯ Date Created: <t:1494275561:d>
❯ Date Modified: <t:1690479598:d>
Dependencies:
@yarnpkg/lockfile, chalk, ci-info, cross-spawn, find-yarn-workspace-root, fs-extra, json-stable-stringify, klaw-sync, minimist, open, and 5 more...
FYI this is built into yarn as
yarn patch
, patch-package
is the solution for pnpm / npm though.
And to answer @Upsided, if you adhere to the MIT license properly you can just copy the code of the plugin. That is to say, add our licencese as a third party license to your own project.