@lettercamp/cli 0.1.9 → 0.1.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/hosting.js +2 -3
- package/package.json +1 -1
package/dist/hosting.js
CHANGED
|
@@ -55,13 +55,12 @@ export async function selectHostingSite(token, allowCreate) {
|
|
|
55
55
|
throw error;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
const { sites
|
|
59
|
-
const sites = all.filter(site => site.publishingTarget === 'cloud');
|
|
58
|
+
const { sites } = await request(token, 'sites');
|
|
60
59
|
const existing = binding && sites.find(site => site.id === binding?.siteId);
|
|
61
60
|
if (existing && binding)
|
|
62
61
|
return { site: existing, binding };
|
|
63
62
|
if (binding)
|
|
64
|
-
console.error('The saved site is unavailable
|
|
63
|
+
console.error('The saved site is unavailable. Choose another site for this folder.');
|
|
65
64
|
if (!allowCreate && !sites.length)
|
|
66
65
|
throw new Error('Run lettercamp deploy first to create a site.');
|
|
67
66
|
const choices = [...(allowCreate ? ['Create a new site'] : []), ...sites.map(site => `${site.name} (${site.slug}.lettercamp.site)`)];
|