lautr / strapi-plugin-duplicate-button

19 stars 8 forks source link

Add GitHub Link to package.json for Compatibility with patch-package #33

Open rtymishak opened 1 month ago

rtymishak commented 1 month ago

This pull request adds a repository field to the package.json file, including this project's GitHub link. This change is necessary for users utilizing the patch-package library to create patches that reference the repository link correctly.

Changes:

I added the repository field in package.json to the GitHub URL. This ensures patch-package functions as expected when creating and applying patches. Reason for the Change: The patch-package library relies on the repository field in package.json to correctly reference and apply patches for dependencies.

Without this field, users may encounter issues when trying to patch this package in their projects with the following message:

{
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 34008,
  stdout: null,
  stderr: null,
  error: null
}

Example of the New package.json Entry:

{
  "repository": {
    "type": "git",
    "url": "https://github.com/lautr/strapi-plugin-duplicate-button.git"
  }
}

Testing:

Validated that the patch-package library now correctly references the repository when applying patches.

Additional Notes:

This is a non-breaking change and should not affect any other part of the project.

Please let me know if you need further adjustments or additional details!