Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24c5d59

Browse files
chore(gatsby-cli) Add TypeScript definitions for hosted-git-info (gatsbyjs#23571)
1 parent e1b314e commit 24c5d59

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

packages/gatsby-cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"devDependencies": {
5555
"@babel/cli": "^7.8.4",
5656
"@babel/core": "^7.9.0",
57+
"@types/hosted-git-info": "^3.0.0",
5758
"babel-preset-gatsby-package": "^0.4.0",
5859
"cross-env": "^5.2.1"
5960
},

packages/gatsby-cli/src/init-starter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ const copy = async (
165165
}
166166

167167
// Clones starter from URI.
168-
const clone = async (hostInfo: any, rootPath: string): Promise<void> => {
168+
const clone = async (
169+
hostInfo: hostedGitInfo,
170+
rootPath: string
171+
): Promise<void> => {
169172
let url: string
170173
// Let people use private repos accessed over SSH.
171174
if (hostInfo.getDefaultRepresentation() === `sshurl`) {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3801,6 +3801,11 @@
38013801
version "4.7.0"
38023802
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.0.tgz#2fac51050c68f7d6f96c5aafc631132522f4aa3f"
38033803

3804+
"@types/hosted-git-info@^3.0.0":
3805+
version "3.0.0"
3806+
resolved "https://registry.yarnpkg.com/@types/hosted-git-info/-/hosted-git-info-3.0.0.tgz#4df861ca6bc2846961a69fd45d503fa11571864c"
3807+
integrity sha512-dYLI2VgU1UTpdigoeLYc8vVpe7kpu3jysLCTUPB9NS1B+7+BdH6XefI4BhB33CNUaBewnxmjy9GPhF4NXOSNew==
3808+
38043809
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
38053810
version "2.0.1"
38063811
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff"

0 commit comments

Comments
 (0)