@vercel/build-utils 2.16.1-canary.1 → 2.16.1-canary.2

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.
@@ -312,6 +312,15 @@ function getEnvForPackageManager({ cliType, lockfileVersion, nodeVersion, env, }
312
312
  console.log('Detected `package-lock.json` generated by npm 7...');
313
313
  }
314
314
  }
315
+ else if (cliType === 'pnpm') {
316
+ if (typeof lockfileVersion === 'number' &&
317
+ lockfileVersion === 5.4 &&
318
+ ((nodeVersion === null || nodeVersion === void 0 ? void 0 : nodeVersion.major) || 0) > 12) {
319
+ // Ensure that pnpm 7 is at the beginning of the `$PATH`
320
+ newEnv.PATH = `/pnpm7/pnpm:${env.PATH}`;
321
+ console.log('Detected `pnpm-lock.yaml` generated by pnpm 7...');
322
+ }
323
+ }
315
324
  else {
316
325
  // Yarn v2 PnP mode may be activated, so force "node-modules" linker style
317
326
  if (!env.YARN_NODE_LINKER) {
package/dist/index.js CHANGED
@@ -27001,8 +27001,7 @@ exports.frameworks = [
27001
27001
  detectors: {
27002
27002
  every: [
27003
27003
  {
27004
- path: 'package.json',
27005
- matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"remix":\\s*".+?"[^}]*}',
27004
+ path: 'remix.config.js',
27006
27005
  },
27007
27006
  ],
27008
27007
  },
@@ -35175,6 +35174,15 @@ function getEnvForPackageManager({ cliType, lockfileVersion, nodeVersion, env, }
35175
35174
  console.log('Detected `package-lock.json` generated by npm 7...');
35176
35175
  }
35177
35176
  }
35177
+ else if (cliType === 'pnpm') {
35178
+ if (typeof lockfileVersion === 'number' &&
35179
+ lockfileVersion === 5.4 &&
35180
+ ((nodeVersion === null || nodeVersion === void 0 ? void 0 : nodeVersion.major) || 0) > 12) {
35181
+ // Ensure that pnpm 7 is at the beginning of the `$PATH`
35182
+ newEnv.PATH = `/pnpm7/pnpm:${env.PATH}`;
35183
+ console.log('Detected `pnpm-lock.yaml` generated by pnpm 7...');
35184
+ }
35185
+ }
35178
35186
  else {
35179
35187
  // Yarn v2 PnP mode may be activated, so force "node-modules" linker style
35180
35188
  if (!env.YARN_NODE_LINKER) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/build-utils",
3
- "version": "2.16.1-canary.1",
3
+ "version": "2.16.1-canary.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.js",
@@ -30,7 +30,7 @@
30
30
  "@types/node-fetch": "^2.1.6",
31
31
  "@types/semver": "6.0.0",
32
32
  "@types/yazl": "2.4.2",
33
- "@vercel/frameworks": "0.8.0",
33
+ "@vercel/frameworks": "0.8.1-canary.0",
34
34
  "@vercel/ncc": "0.24.0",
35
35
  "aggregate-error": "3.0.1",
36
36
  "async-retry": "1.2.3",
@@ -49,5 +49,5 @@
49
49
  "typescript": "4.3.4",
50
50
  "yazl": "2.5.1"
51
51
  },
52
- "gitHead": "f88c862e9d9d4ad385e54d5fecaa0306a6ed5612"
52
+ "gitHead": "d91bca7d6bc8066690c0db4b11990a354d13ebbd"
53
53
  }