@vercel/static-build 1.0.6 → 1.0.9

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.
@@ -37,7 +37,7 @@ async function readConfig(path) {
37
37
  }
38
38
  exports.readConfig = readConfig;
39
39
  function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
40
- if (!meta.cliVersion) {
40
+ if (meta.isDev) {
41
41
  let buildCommandName;
42
42
  if (buildCommand)
43
43
  buildCommandName = `"${buildCommand}"`;
@@ -45,10 +45,7 @@ function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
45
45
  buildCommandName = framework.name;
46
46
  else
47
47
  buildCommandName = 'the "build" script';
48
- if (meta.isDev) {
49
- throw new Error(`Detected Build Output v3 from ${buildCommandName}, but it is not supported for \`vercel dev\`. Please set the Development Command in your Project Settings.`);
50
- }
51
- throw new Error(`Detected Build Output v3 from ${buildCommandName}, but this Deployment is not using \`vercel build\`.\nPlease set the \`ENABLE_VC_BUILD=1\` environment variable.`);
48
+ throw new Error(`Detected Build Output v3 from ${buildCommandName}, but it is not supported for \`vercel dev\`. Please set the Development Command in your Project Settings.`);
52
49
  }
53
50
  return {
54
51
  buildOutputVersion: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -37,17 +37,17 @@
37
37
  "@types/ms": "0.7.31",
38
38
  "@types/node-fetch": "2.5.4",
39
39
  "@types/promise-timeout": "1.3.0",
40
- "@vercel/build-utils": "5.0.2",
41
- "@vercel/frameworks": "1.1.0",
40
+ "@vercel/build-utils": "5.0.4",
41
+ "@vercel/frameworks": "1.1.1",
42
42
  "@vercel/ncc": "0.24.0",
43
- "@vercel/routing-utils": "1.13.5",
43
+ "@vercel/routing-utils": "2.0.0",
44
44
  "fs-extra": "10.0.0",
45
45
  "get-port": "5.0.0",
46
46
  "is-port-reachable": "2.0.1",
47
47
  "ms": "2.1.2",
48
- "node-fetch": "2.6.1",
48
+ "node-fetch": "2.6.7",
49
49
  "rc9": "1.2.0",
50
50
  "typescript": "4.3.4"
51
51
  },
52
- "gitHead": "d2f8d178f77e15cb490cce73f5766537d892f763"
52
+ "gitHead": "3d3774ee7e3d344b3292d2166d485bdf41a68d4c"
53
53
  }