@vercel/hydrogen 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -57,16 +57,19 @@ var build = async ({
57
57
  meta
58
58
  );
59
59
  const spawnOpts = (0, import_build_utils.getSpawnOptions)(meta, nodeVersion);
60
- const { cliType, lockfileVersion, packageJson } = await (0, import_build_utils.scanParentDirs)(
61
- entrypointDir,
62
- true
63
- );
60
+ const {
61
+ cliType,
62
+ lockfileVersion,
63
+ packageJsonPackageManager,
64
+ turboSupportsCorepackHome
65
+ } = await (0, import_build_utils.scanParentDirs)(entrypointDir, true);
64
66
  spawnOpts.env = (0, import_build_utils.getEnvForPackageManager)({
65
67
  cliType,
66
68
  lockfileVersion,
67
- packageJsonPackageManager: packageJson?.packageManager,
69
+ packageJsonPackageManager,
68
70
  nodeVersion,
69
- env: spawnOpts.env || {}
71
+ env: spawnOpts.env || {},
72
+ turboSupportsCorepackHome
70
73
  });
71
74
  if (typeof installCommand === "string") {
72
75
  if (installCommand.trim()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/hydrogen",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "homepage": "https://vercel.com/docs",
@@ -20,7 +20,7 @@
20
20
  "devDependencies": {
21
21
  "@types/jest": "27.5.1",
22
22
  "@types/node": "14.18.33",
23
- "@vercel/build-utils": "8.4.2",
23
+ "@vercel/build-utils": "8.4.7",
24
24
  "execa": "3.2.0",
25
25
  "fs-extra": "11.1.0",
26
26
  "jest-junit": "16.0.0"