@vercel/static-build 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.
- package/dist/index.js +2 -5
- package/dist/utils/build-output-v3.js +2 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17526,7 +17526,7 @@ async function readConfig(path) {
|
|
|
17526
17526
|
}
|
|
17527
17527
|
exports.readConfig = readConfig;
|
|
17528
17528
|
function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
|
|
17529
|
-
if (
|
|
17529
|
+
if (meta.isDev) {
|
|
17530
17530
|
let buildCommandName;
|
|
17531
17531
|
if (buildCommand)
|
|
17532
17532
|
buildCommandName = `"${buildCommand}"`;
|
|
@@ -17534,10 +17534,7 @@ function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
|
|
|
17534
17534
|
buildCommandName = framework.name;
|
|
17535
17535
|
else
|
|
17536
17536
|
buildCommandName = 'the "build" script';
|
|
17537
|
-
|
|
17538
|
-
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.`);
|
|
17539
|
-
}
|
|
17540
|
-
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.`);
|
|
17537
|
+
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.`);
|
|
17541
17538
|
}
|
|
17542
17539
|
return {
|
|
17543
17540
|
buildOutputVersion: 3,
|
|
@@ -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 (
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"rc9": "1.2.0",
|
|
50
50
|
"typescript": "4.3.4"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "bfdbe586757a8870eae36cbf39e17889dd8f747a"
|
|
53
53
|
}
|