@vercel/static-build 0.24.2-canary.0 → 0.24.2-canary.1

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 +8 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -17121,6 +17121,14 @@ const build = async ({ files, entrypoint, workPath, config, meta = {}, }) => {
17121
17121
  console.log('Detected `package-lock.json` generated by npm 7...');
17122
17122
  }
17123
17123
  }
17124
+ else if (cliType === 'pnpm') {
17125
+ if (typeof lockfileVersion === 'number' &&
17126
+ lockfileVersion === 5.4) {
17127
+ // Ensure that pnpm 7 is at the beginning of the `$PATH`
17128
+ env.PATH = `/pnpm7/node_modules/.bin:${env.PATH}`;
17129
+ console.log('Detected `pnpm-lock.yaml` generated by pnpm 7...');
17130
+ }
17131
+ }
17124
17132
  await build_utils_1.execCommand(installCommand, {
17125
17133
  ...spawnOpts,
17126
17134
  // Yarn v2 PnP mode may be activated, so force
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "0.24.2-canary.0",
3
+ "version": "0.24.2-canary.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -47,5 +47,5 @@
47
47
  "node-fetch": "2.6.1",
48
48
  "rc9": "1.2.0"
49
49
  },
50
- "gitHead": "4c20218e05122c439e5fa4f4997e9c5a5c7a93e2"
50
+ "gitHead": "6e5e700e8d967914574bf7952ed3995a25022f50"
51
51
  }