@somewhere-cloud/cli 0.38.170 → 0.38.171
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/CHANGELOG.md +4 -0
- package/dist/lib/bundle.js +7 -6
- package/dist/lib/bundle.js.map +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/lib/bundle.js
CHANGED
|
@@ -90434,8 +90434,10 @@ async function mintPreviewHandoff(client, projectId, draftId, candidateReleaseId
|
|
|
90434
90434
|
})
|
|
90435
90435
|
};
|
|
90436
90436
|
}
|
|
90437
|
-
function printPreviewHandoff(handoff2) {
|
|
90437
|
+
function printPreviewHandoff(handoff2, warnings = []) {
|
|
90438
90438
|
console.log(`${teal("\u{1F310}")} ${bold("Preview capability:")} ${teal(handoff2.capabilityUrl)}`);
|
|
90439
|
+
for (const warning of warnings)
|
|
90440
|
+
warn(warning);
|
|
90439
90441
|
printPreviewIdentity(handoff2.draftId, handoff2.candidateReleaseId, handoff2.projectRef);
|
|
90440
90442
|
}
|
|
90441
90443
|
function printPreviewIdentity(draftId, candidateReleaseId, projectRef3) {
|
|
@@ -91149,6 +91151,7 @@ async function runHotDeploy(opts) {
|
|
|
91149
91151
|
const spinner = showPublishProgress ? null : ora("Syncing to preview...").start();
|
|
91150
91152
|
let candidateReleaseId = null;
|
|
91151
91153
|
let initialHandoff;
|
|
91154
|
+
let initialWarnings = [];
|
|
91152
91155
|
let initialAutoOpenUrl;
|
|
91153
91156
|
try {
|
|
91154
91157
|
const body = {
|
|
@@ -91185,9 +91188,7 @@ async function runHotDeploy(opts) {
|
|
|
91185
91188
|
success(`Synced ${formatPublishSurface(countPublishSurface({ files, binaryFiles, functions }))} to preview`);
|
|
91186
91189
|
if (expectedPreviewId === null)
|
|
91187
91190
|
say(`Opened preview ${draftId} for this folder; \`${cliInvocation()} preview\` continues it until it is promoted, closed or expires.`);
|
|
91188
|
-
|
|
91189
|
-
for (const w2 of res.warnings)
|
|
91190
|
-
warn(w2);
|
|
91191
|
+
initialWarnings = res.warnings ?? [];
|
|
91191
91192
|
} catch (err) {
|
|
91192
91193
|
spinner?.fail("Initial sync failed");
|
|
91193
91194
|
if (!(isBuildError(err) && renderBuildError(err, cwd))) {
|
|
@@ -91203,14 +91204,14 @@ async function runHotDeploy(opts) {
|
|
|
91203
91204
|
}
|
|
91204
91205
|
if (opts.once) {
|
|
91205
91206
|
console.log("");
|
|
91206
|
-
printPreviewHandoff(initialHandoff);
|
|
91207
|
+
printPreviewHandoff(initialHandoff, initialWarnings);
|
|
91207
91208
|
console.log(dim(" private to you. The preview stays open until you promote it or it expires."));
|
|
91208
91209
|
console.log(dim(` Each link works once; mint another with: ${cliInvocation()} preview link`));
|
|
91209
91210
|
process.exit(0);
|
|
91210
91211
|
}
|
|
91211
91212
|
console.log("");
|
|
91212
91213
|
console.log(`${green("\u{1F440}")} ${bold("Watching")} ${dim(cwd)} ${dim("for changes")}`);
|
|
91213
|
-
printPreviewHandoff(initialHandoff);
|
|
91214
|
+
printPreviewHandoff(initialHandoff, initialWarnings);
|
|
91214
91215
|
console.log(dim(" private to you \u2014 save a file and the preview updates. Not live to users."));
|
|
91215
91216
|
console.log(dim(" Ctrl-C to stop.\n"));
|
|
91216
91217
|
open(initialAutoOpenUrl).catch(() => {
|