vigthoria-cli 1.8.5 → 1.8.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/commands/preview.js +6 -4
- package/package.json +1 -1
package/dist/commands/preview.js
CHANGED
|
@@ -112,10 +112,12 @@ class PreviewCommand {
|
|
|
112
112
|
if (options.proof) {
|
|
113
113
|
await this.runProofGate(projectPath, options.screenshot);
|
|
114
114
|
}
|
|
115
|
-
// If only --diff or --proof
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
// If only --diff or --proof was requested (no explicit entry/port), just exit
|
|
116
|
+
if (options.diff || options.proof) {
|
|
117
|
+
if (!options.entry && !options.port) {
|
|
118
|
+
this.api.destroy();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
119
121
|
}
|
|
120
122
|
// Detect entry file
|
|
121
123
|
const entryFile = this.detectEntryFile(projectPath, options.entry);
|