@pnpm/fetching.git-fetcher 1102.0.15 → 1102.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/lib/index.js +4 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @pnpm/git-fetcher
|
|
2
2
|
|
|
3
|
+
## 1102.0.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- @pnpm/error@1100.1.4
|
|
9
|
+
- @pnpm/exec.prepare-package@1100.0.35
|
|
10
|
+
- @pnpm/resolving.git-resolver@1100.1.20
|
|
11
|
+
- @pnpm/store.index@1100.3.1
|
|
12
|
+
|
|
13
|
+
## 1102.0.16
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Enforce `allowBuilds` when a prepared git dependency is reused from the shared store, and use the lockfile's canonical git resolution ID in approval suggestions.
|
|
18
|
+
|
|
19
|
+
- Updated dependencies:
|
|
20
|
+
- @pnpm/exec.prepare-package@1100.0.34
|
|
21
|
+
- @pnpm/fetching.fetcher-base@1100.2.9
|
|
22
|
+
- @pnpm/resolving.git-resolver@1100.1.19
|
|
23
|
+
- @pnpm/store.index@1100.3.0
|
|
24
|
+
|
|
3
25
|
## 1102.0.15
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -38,15 +38,17 @@ export function createGitFetcher(createOpts) {
|
|
|
38
38
|
throw new PnpmError('GIT_CHECKOUT_FAILED', `received commit ${receivedCommit.trim()} does not match expected value ${resolution.commit}`);
|
|
39
39
|
}
|
|
40
40
|
let pkgDir;
|
|
41
|
+
let requiresPrepare;
|
|
41
42
|
try {
|
|
42
43
|
const prepareResult = await preparePackage({
|
|
43
44
|
allowBuild: opts.allowBuild,
|
|
44
45
|
ignoreScripts: createOpts.ignoreScripts,
|
|
45
|
-
pkgResolutionId: createGitHostedPkgId(resolution),
|
|
46
|
+
pkgResolutionId: opts.pkgResolutionId ?? createGitHostedPkgId(resolution),
|
|
46
47
|
unsafePerm: createOpts.unsafePerm,
|
|
47
48
|
userAgent: createOpts.userAgent,
|
|
48
49
|
}, tempLocation, resolution.path ?? '');
|
|
49
50
|
pkgDir = prepareResult.pkgDir;
|
|
51
|
+
requiresPrepare = prepareResult.shouldBeBuilt;
|
|
50
52
|
if (ignoreScripts && prepareResult.shouldBeBuilt) {
|
|
51
53
|
globalWarn(`The git-hosted package fetched from "${resolution.repo}" has to be built but the build scripts were ignored.`);
|
|
52
54
|
}
|
|
@@ -68,6 +70,7 @@ export function createGitFetcher(createOpts) {
|
|
|
68
70
|
dir: pkgDir,
|
|
69
71
|
files,
|
|
70
72
|
filesIndexFile: opts.filesIndexFile,
|
|
73
|
+
requiresPrepare,
|
|
71
74
|
readManifest: opts.readManifest,
|
|
72
75
|
pkg: opts.pkg,
|
|
73
76
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/fetching.git-fetcher",
|
|
3
|
-
"version": "1102.0.
|
|
3
|
+
"version": "1102.0.17",
|
|
4
4
|
"description": "A fetcher for git-hosted packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pnpm/error": "1100.1.
|
|
32
|
-
"@pnpm/exec.prepare-package": "1100.0.
|
|
33
|
-
"@pnpm/fetching.fetcher-base": "1100.2.
|
|
31
|
+
"@pnpm/error": "1100.1.4",
|
|
32
|
+
"@pnpm/exec.prepare-package": "1100.0.35",
|
|
33
|
+
"@pnpm/fetching.fetcher-base": "1100.2.9",
|
|
34
34
|
"@pnpm/fs.packlist": "1100.0.4",
|
|
35
|
-
"@pnpm/resolving.git-resolver": "1100.1.
|
|
36
|
-
"@pnpm/store.index": "1100.
|
|
35
|
+
"@pnpm/resolving.git-resolver": "1100.1.20",
|
|
36
|
+
"@pnpm/store.index": "1100.3.1",
|
|
37
37
|
"@zkochan/rimraf": "^4.0.0",
|
|
38
38
|
"execa": "npm:safe-execa@0.3.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@pnpm/logger": "^1100.0.0",
|
|
42
|
-
"@pnpm/worker": "^1100.
|
|
42
|
+
"@pnpm/worker": "^1100.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@jest/globals": "30.4.1",
|
|
46
|
-
"@pnpm/fetching.git-fetcher": "1102.0.
|
|
46
|
+
"@pnpm/fetching.git-fetcher": "1102.0.17",
|
|
47
47
|
"@pnpm/logger": "1100.0.0",
|
|
48
|
-
"@pnpm/store.cafs": "1100.
|
|
49
|
-
"@pnpm/store.create-cafs-store": "1100.0.
|
|
48
|
+
"@pnpm/store.cafs": "1100.3.1",
|
|
49
|
+
"@pnpm/store.create-cafs-store": "1100.0.28",
|
|
50
50
|
"@pnpm/text.ordinal-comparator": "1100.0.0",
|
|
51
|
-
"@pnpm/types": "1102.
|
|
51
|
+
"@pnpm/types": "1102.1.0",
|
|
52
52
|
"tempy": "3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|