@pnpm/git-fetcher
Advanced tools
Comparing version 2.0.10 to 3.0.0-alpha.0
@@ -0,1 +1,2 @@ | ||
import { Cafs } from '@pnpm/fetcher-base'; | ||
declare const _default: () => { | ||
@@ -5,7 +6,8 @@ git: (resolution: { | ||
commit: string; | ||
}, targetFolder: string) => Promise<{ | ||
filesIndex: any; | ||
tempLocation: string; | ||
}, opts: { | ||
cafs: Cafs; | ||
}) => Promise<{ | ||
filesIndex: import("@pnpm/fetcher-base").FilesIndex; | ||
}>; | ||
}; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const rimraf = require("@zkochan/rimraf"); | ||
const dint = require("dint"); | ||
const execa = require("execa"); | ||
const path = require("path"); | ||
const pathTemp = require("path-temp"); | ||
const tempy = require("tempy"); | ||
exports.default = () => { | ||
return { | ||
git: async function fetchFromGit(resolution, targetFolder) { | ||
const tempLocation = pathTemp(targetFolder); | ||
git: async function fetchFromGit(resolution, opts) { | ||
const tempLocation = tempy.directory(); | ||
await execGit(['clone', resolution.repo, tempLocation]); | ||
@@ -17,4 +16,3 @@ await execGit(['checkout', resolution.commit], { cwd: tempLocation }); | ||
return { | ||
filesIndex: await dint.from(tempLocation), | ||
tempLocation, | ||
filesIndex: await opts.cafs.addFilesFromDir(tempLocation), | ||
}; | ||
@@ -31,1 +29,2 @@ }, | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/git-fetcher", | ||
"version": "2.0.10", | ||
"version": "3.0.0-alpha.0", | ||
"description": "A fetcher for git-hosted packages", | ||
@@ -8,13 +8,15 @@ "main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"!*.map" | ||
], | ||
"scripts": { | ||
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check", | ||
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts", | ||
"tsc": "rimraf lib && tsc", | ||
"prepublishOnly": "pnpm run tsc" | ||
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/git-fetcher/coverage ts-node packages/git-fetcher/test --type-check", | ||
"test": "pnpm run compile && pnpm run _test", | ||
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/git-fetcher", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=10.13" | ||
}, | ||
@@ -32,12 +34,11 @@ "keywords": [ | ||
"dependencies": { | ||
"@pnpm/fetcher-base": "7.0.0-alpha.0", | ||
"@zkochan/rimraf": "1.0.0", | ||
"dint": "4.0.0", | ||
"execa": "4.0.0", | ||
"path-temp": "2.0.0" | ||
"tempy": "0.5.0" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/git-fetcher": "link:", | ||
"rimraf": "3.0.0", | ||
"tempy": "0.3.0" | ||
"@pnpm/cafs": "1.0.0-alpha.0", | ||
"@pnpm/git-fetcher": "link:" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4227
2
6
2
+ Addedtempy@0.5.0
+ Added@pnpm/fetcher-base@7.0.0-alpha.0(transitive)
+ Added@pnpm/resolver-base@7.0.0(transitive)
+ Added@pnpm/types@5.0.0(transitive)
+ Added@types/ssri@6.0.3(transitive)
+ Addedtemp-dir@2.0.0(transitive)
+ Addedtempy@0.5.0(transitive)
+ Addedtype-fest@0.12.0(transitive)
- Removeddint@4.0.0
- Removedpath-temp@2.0.0
- Removedany-promise@1.3.0(transitive)
- Removeddint@4.0.0(transitive)
- Removedfiggy-pudding@3.5.2(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedmz@2.7.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedp-every@2.0.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-map@2.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-temp@2.0.0(transitive)
- Removedssri@6.0.2(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)