@vercel/static-build 1.3.2 → 1.3.3

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 +28 -5
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -240726,13 +240726,25 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
240726
240726
  if (!hasBuildPipeline) {
240727
240727
  throw new MissingBuildPipeline();
240728
240728
  }
240729
+ if (projectPath === '/') {
240730
+ return {
240731
+ monorepoManager: 'turbo',
240732
+ buildCommand: 'npx turbo run build',
240733
+ installCommand: packageManager ? `${packageManager} install` : null,
240734
+ commandForIgnoringBuildStep: 'npx turbo-ignore',
240735
+ };
240736
+ }
240729
240737
  return {
240730
240738
  monorepoManager: 'turbo',
240731
- buildCommand: `cd ${relativeToRoot} && npx turbo run build --filter={${projectPath}}...`,
240739
+ buildCommand: projectPath
240740
+ ? `cd ${relativeToRoot} && npx turbo run build --filter={${projectPath}}...`
240741
+ : null,
240732
240742
  installCommand: packageManager === 'npm'
240733
240743
  ? `${packageManager} install --prefix=${relativeToRoot}`
240734
- : `${packageManager} install`,
240735
- commandForIgnoringBuildStep: `npx turbo-ignore`,
240744
+ : packageManager
240745
+ ? `${packageManager} install`
240746
+ : null,
240747
+ commandForIgnoringBuildStep: 'npx turbo-ignore',
240736
240748
  };
240737
240749
  }
240738
240750
  else if (monorepoManager === 'nx') {
@@ -240767,12 +240779,23 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
240767
240779
  throw new MissingBuildTarget();
240768
240780
  }
240769
240781
  }
240782
+ if (projectPath === '/') {
240783
+ return {
240784
+ monorepoManager: 'nx',
240785
+ buildCommand: 'npx nx build',
240786
+ installCommand: packageManager ? `${packageManager} install` : null,
240787
+ };
240788
+ }
240770
240789
  return {
240771
240790
  monorepoManager: 'nx',
240772
- buildCommand: `cd ${relativeToRoot} && npx nx build ${projectName}`,
240791
+ buildCommand: projectName
240792
+ ? `cd ${relativeToRoot} && npx nx build ${projectName}`
240793
+ : null,
240773
240794
  installCommand: packageManager === 'npm'
240774
240795
  ? `${packageManager} install --prefix=${relativeToRoot}`
240775
- : `${packageManager} install`,
240796
+ : packageManager
240797
+ ? `${packageManager} install`
240798
+ : null,
240776
240799
  };
240777
240800
  }
240778
240801
  // TODO (@Ethan-Arrowood) - Revisit rush support when we can test it better
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.7",
33
- "@vercel/gatsby-plugin-vercel-builder": "1.1.0"
33
+ "@vercel/gatsby-plugin-vercel-builder": "1.1.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/aws-lambda": "8.10.64",
@@ -42,9 +42,9 @@
42
42
  "@types/node-fetch": "2.5.4",
43
43
  "@types/promise-timeout": "1.3.0",
44
44
  "@types/semver": "7.3.13",
45
- "@vercel/build-utils": "6.1.0",
45
+ "@vercel/build-utils": "6.2.0",
46
46
  "@vercel/frameworks": "1.3.0",
47
- "@vercel/fs-detectors": "3.7.8",
47
+ "@vercel/fs-detectors": "3.7.9",
48
48
  "@vercel/ncc": "0.24.0",
49
49
  "@vercel/routing-utils": "2.1.8",
50
50
  "@vercel/static-config": "2.0.12",
@@ -60,5 +60,5 @@
60
60
  "ts-morph": "12.0.0",
61
61
  "typescript": "4.3.4"
62
62
  },
63
- "gitHead": "a4d16c681a7e85f64a2d78432d499c599b398bde"
63
+ "gitHead": "a585969dd3b77a4ed36d6a2ca11b34f9050489f1"
64
64
  }