notes

#yarn2

2021. 3. 9.
Patch broken node_module with yarn2

  1. yarn patch <module>
  2. fix the code inside the generated folder and save it.
  3. yarn patch-commit <generated_folder> > <patch_file_name>.diff
  4. fix package.json with "module": "patch:<module>@<version>#<path_to_patch_file>/<patch_file_name>.diff"
  5. yarn install