@seayoo-web/scripts 2.0.9 → 2.0.10
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function definePageBuildConfig(option) {
|
|
|
146
146
|
const { alias, ...resolveReset } = resolve;
|
|
147
147
|
return async function({ command, mode }) {
|
|
148
148
|
var _a;
|
|
149
|
-
const justBuild = onlyBuild ||
|
|
149
|
+
const justBuild = onlyBuild || mode === "build";
|
|
150
150
|
const envs = getBuildEnv(command, mode, justBuild);
|
|
151
151
|
const gitInfo = justBuild ? null : await getCommitInfo(command, mode, envs.page, envs.deployTo || "");
|
|
152
152
|
const isProductMode = mode === "production" || mode === "prod";
|