@vercel/static-build 1.0.0 → 1.0.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.
- package/dist/index.js +3 -0
- package/dist/utils/build-output-v3.js +3 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -17516,6 +17516,9 @@ function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
|
|
|
17516
17516
|
buildCommandName = framework.name;
|
|
17517
17517
|
else
|
|
17518
17518
|
buildCommandName = 'the "build" script';
|
|
17519
|
+
if (meta.isDev) {
|
|
17520
|
+
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.`);
|
|
17521
|
+
}
|
|
17519
17522
|
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.`);
|
|
17520
17523
|
}
|
|
17521
17524
|
return {
|
|
@@ -45,6 +45,9 @@ 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
|
+
}
|
|
48
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.`);
|
|
49
52
|
}
|
|
50
53
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -37,7 +37,7 @@
|
|
|
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": "4.
|
|
40
|
+
"@vercel/build-utils": "4.1.0",
|
|
41
41
|
"@vercel/frameworks": "1.0.1",
|
|
42
42
|
"@vercel/ncc": "0.24.0",
|
|
43
43
|
"@vercel/routing-utils": "1.13.4",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"rc9": "1.2.0",
|
|
50
50
|
"typescript": "4.3.4"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "0c7b54edad6adf48505abf2cbec01691b85963bb"
|
|
53
53
|
}
|