@pnpm/store.create-cafs-store 1100.0.30 → 1100.0.31

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @pnpm/create-cafs-store
2
2
 
3
+ ## 1100.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - `pnpm deploy` now respects `--package-import-method` passed on the command line and reports the package import method correctly [pnpm/pnpm#7593](https://github.com/pnpm/pnpm/issues/7593).
8
+
9
+ - Updated dependencies:
10
+ - @pnpm/building.pkg-requires-build@1100.0.18
11
+ - @pnpm/fetching.fetcher-base@1100.2.11
12
+ - @pnpm/fs.indexed-pkg-importer@1100.0.30
13
+ - @pnpm/store.cafs@1100.3.4
14
+ - @pnpm/store.controller-types@1101.3.1
15
+
3
16
  ## 1100.0.30
4
17
 
5
18
  ### Patch Changes
package/lib/index.js CHANGED
@@ -14,8 +14,10 @@ export function createPackageImporterAsync(opts) {
14
14
  const { filesMap, isBuilt } = gfm(opts.filesResponse, opts.sideEffectsCacheKey);
15
15
  const willBeBuilt = !isBuilt && opts.requiresBuild;
16
16
  const pkgImportMethod = willBeBuilt
17
- ? 'clone-or-copy'
18
- : (opts.filesResponse.packageImportMethod ?? packageImportMethod);
17
+ ? (packageImportMethod === 'copy' ? 'copy' : 'clone-or-copy')
18
+ : (packageImportMethod && packageImportMethod !== 'auto'
19
+ ? packageImportMethod
20
+ : (opts.filesResponse.packageImportMethod ?? packageImportMethod));
19
21
  const impPkg = cachedImporterCreator(pkgImportMethod);
20
22
  const importMethod = await impPkg(to, {
21
23
  disableRelinkLocalDirDeps: opts.disableRelinkLocalDirDeps,
@@ -38,8 +40,10 @@ function createPackageImporter(opts) {
38
40
  const { filesMap, isBuilt } = gfm(opts.filesResponse, opts.sideEffectsCacheKey);
39
41
  const willBeBuilt = !isBuilt && opts.requiresBuild;
40
42
  const pkgImportMethod = willBeBuilt
41
- ? 'clone-or-copy'
42
- : (opts.filesResponse.packageImportMethod ?? packageImportMethod);
43
+ ? (packageImportMethod === 'copy' ? 'copy' : 'clone-or-copy')
44
+ : (packageImportMethod && packageImportMethod !== 'auto'
45
+ ? packageImportMethod
46
+ : (opts.filesResponse.packageImportMethod ?? packageImportMethod));
43
47
  const impPkg = cachedImporterCreator(pkgImportMethod);
44
48
  const importMethod = impPkg(to, {
45
49
  disableRelinkLocalDirDeps: opts.disableRelinkLocalDirDeps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/store.create-cafs-store",
3
- "version": "1100.0.30",
3
+ "version": "1100.0.31",
4
4
  "description": "Create a CAFS store controller",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -37,11 +37,11 @@
37
37
  "test": "test"
38
38
  },
39
39
  "dependencies": {
40
- "@pnpm/building.pkg-requires-build": "1100.0.17",
41
- "@pnpm/fetching.fetcher-base": "1100.2.10",
42
- "@pnpm/fs.indexed-pkg-importer": "1100.0.29",
43
- "@pnpm/store.cafs": "1100.3.3",
44
- "@pnpm/store.controller-types": "1101.3.0",
40
+ "@pnpm/building.pkg-requires-build": "1100.0.18",
41
+ "@pnpm/fetching.fetcher-base": "1100.2.11",
42
+ "@pnpm/fs.indexed-pkg-importer": "1100.0.30",
43
+ "@pnpm/store.cafs": "1100.3.4",
44
+ "@pnpm/store.controller-types": "1101.3.1",
45
45
  "memoize": "^11.0.0",
46
46
  "ramda": "npm:@pnpm/ramda@0.28.1"
47
47
  },
@@ -50,9 +50,9 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@pnpm/logger": "1100.0.0",
53
- "@pnpm/prepare": "1100.0.31",
53
+ "@pnpm/prepare": "1100.0.32",
54
54
  "@pnpm/store.cafs-types": "1100.1.0",
55
- "@pnpm/store.create-cafs-store": "1100.0.30",
55
+ "@pnpm/store.create-cafs-store": "1100.0.31",
56
56
  "@types/ramda": "0.32.0"
57
57
  },
58
58
  "engines": {