@yarnpkg/plugin-git
Advanced tools
+10
-0
| import { FetchOptions, FetchResult, Locator, Plugin } from '@yarnpkg/core'; | ||
| import * as gitUtils from './gitUtils'; | ||
| export interface Hooks { | ||
| /** | ||
| * Called when a Git repository is fetched. If the function returns `null` | ||
| * the repository will be cloned and packed; otherwise, it must returns a | ||
| * value compatible with what a fetcher would return. | ||
| * | ||
| * The main use case for this hook is to let you implement smarter cloning | ||
| * strategies depending on the hosting platform. For instance, GitHub | ||
| * supports downloading repository tarballs, which are more efficient than | ||
| * cloning the repository (even without its history). | ||
| */ | ||
| fetchHostedRepository?: (current: FetchResult | null, locator: Locator, opts: FetchOptions) => Promise<FetchResult | null>; | ||
@@ -5,0 +15,0 @@ } |
+5
-5
| { | ||
| "name": "@yarnpkg/plugin-git", | ||
| "version": "2.6.0-rc.6", | ||
| "version": "2.6.0-rc.7", | ||
| "license": "BSD-2-Clause", | ||
@@ -8,4 +8,4 @@ "main": "./lib/index.js", | ||
| "@types/semver": "^7.1.0", | ||
| "@yarnpkg/fslib": "^2.6.1-rc.1", | ||
| "clipanion": "^3.0.1", | ||
| "@yarnpkg/fslib": "^2.6.1-rc.2", | ||
| "clipanion": "^3.2.0-rc.4", | ||
| "git-url-parse": "11.1.2", | ||
@@ -17,3 +17,3 @@ "lodash": "^4.17.15", | ||
| "peerDependencies": { | ||
| "@yarnpkg/core": "^3.2.0-rc.6" | ||
| "@yarnpkg/core": "^3.2.0-rc.7" | ||
| }, | ||
@@ -23,3 +23,3 @@ "devDependencies": { | ||
| "@types/lodash": "^4.14.136", | ||
| "@yarnpkg/core": "^3.2.0-rc.6" | ||
| "@yarnpkg/core": "^3.2.0-rc.7" | ||
| }, | ||
@@ -26,0 +26,0 @@ "repository": { |
46777
1.15%693
1.46%Updated
Updated