Skip to content

Commit 5cb8739

Browse files
committed
feat(git): support packages in a subdirectory
1 parent 2cf8f28 commit 5cb8739

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/fetchers/git.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ Fetcher.impl(fetchGit, {
7474
if (streamError) { throw streamError }
7575
manifest._resolved = spec.saveSpec.replace(/(:?#.*)?$/, `#${HEAD}`)
7676
manifest._uniqueResolved = manifest._resolved
77-
return packDir(manifest, manifest._uniqueResolved, tmp, stream, opts)
77+
const dir = `${tmp}${spec.gitSubdir || ''}`
78+
return packDir(manifest, manifest._uniqueResolved, dir, stream, opts)
7879
})
7980
}).catch(err => stream.emit('error', err))
8081
}

0 commit comments

Comments
 (0)