{"id":13596813,"url":"https://github.com/antfu/pnpm-patch-i","last_synced_at":"2026-04-22T04:00:30.700Z","repository":{"id":65350001,"uuid":"589961665","full_name":"antfu/pnpm-patch-i","owner":"antfu","description":"A better and interactive pnpm patch","archived":false,"fork":false,"pushed_at":"2025-10-31T08:37:23.000Z","size":349,"stargazers_count":293,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-14T05:25:15.347Z","etag":null,"topics":["patch-management","pnpm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antfu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["antfu"],"open_collective":"antfu"}},"created_at":"2023-01-17T10:52:49.000Z","updated_at":"2026-04-03T11:12:14.000Z","dependencies_parsed_at":"2024-06-15T09:29:08.664Z","dependency_job_id":"5c4015c2-c1b2-4650-918b-431bce7adbfe","html_url":"https://github.com/antfu/pnpm-patch-i","commit_stats":{"total_commits":30,"total_committers":4,"mean_commits":7.5,"dds":"0.30000000000000004","last_synced_commit":"0655ff58f47ae726fed515ff39c43932c1e04b2e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/antfu/pnpm-patch-i","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fpnpm-patch-i","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fpnpm-patch-i/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fpnpm-patch-i/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fpnpm-patch-i/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antfu","download_url":"https://codeload.github.com/antfu/pnpm-patch-i/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu%2Fpnpm-patch-i/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["patch-management","pnpm"],"created_at":"2024-08-01T16:02:49.386Z","updated_at":"2026-04-22T04:00:30.695Z","avatar_url":"https://github.com/antfu.png","language":"TypeScript","readme":"# pnpm-patch-i\n\n[![NPM version](https://img.shields.io/npm/v/pnpm-patch-i?color=a1b858\u0026label=)](https://www.npmjs.com/package/pnpm-patch-i)\n\nA better and interactive `pnpm patch`.\n\n## Usage\n\n```bash\nnpx pnpm-patch-i package-name\n```\n\nThis CLI wraps with [`pnpm patch`](https://pnpm.io/cli/patch) and provides a better interactive experience:\n\n- Have the patch dir under your local `node_modules/` folder instead of a global temp folder\n- More human-friendly folder name instead of random string\n- Open the editing folder in your editor via [`launch-editor`](https://github.com/yyx990803/launch-editor)\n- Wait for your changes and automatically run `pnpm commit-patch \u003cdir\u003e` for you\n- Always runs at where `pnpm-lock.yaml` is located\n\n### Apply Patch from a directory\n\nIt's also possible to apply a patch directly from a directory, for example:\n\n```bash\nnpx pnpm-patch-i vite ../vite/packages/vite\n```\n\nYou can also use `--build` (`-b`) flag to invoke `npm run build` in the source directory before applying the patch.\n\nWhen merging the source `package.json` into the patched package, `workspace:` and `catalog:` dependency specifiers are resolved automatically:\n\n- `workspace:*` / `workspace:^` / `workspace:~` / `workspace:\u003crange\u003e` → reuses the version already present in the patched package's existing entry.\n- `catalog:` / `catalog:\u003cname\u003e` → looked up in the source repo's `pnpm-workspace.yaml` catalog definitions.\n\n\u003e [!NOTE]\n\u003e If the source package is in a monorepo with custom linking, directly applying the patch from a directory might result in copying the linking where the current project might not be able to resolve.\n\u003e In that case, it's recommended to pack the source package into a tgz file and apply the patch from the tgz file with `--pack` (`-p`) flag.\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt='Sponsors'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) License © 2023 [Anthony Fu](https://github.com/antfu)\n","funding_links":["https://github.com/sponsors/antfu","https://opencollective.com/antfu"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu%2Fpnpm-patch-i","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantfu%2Fpnpm-patch-i","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu%2Fpnpm-patch-i/lists"}