diff --git a/package.json b/package.json index b078ab8..9324b3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shoutem/cli", - "version": "0.13.3", + "version": "0.13.4", "description": "Command-line tools for Shoutem applications", "repository": { "type": "git", diff --git a/src/services/packer.js b/src/services/packer.js index a8c6659..5e14865 100644 --- a/src/services/packer.js +++ b/src/services/packer.js @@ -111,7 +111,14 @@ async function offerDevNameSync(extensionDir) { } export default async function shoutemPack(dir, options) { - const packedDirectories = ['app', 'server', 'cloud'].map(d => path.join(dir, d)); + const components = ['app', 'server']; + const hasCloud = await hasCloudComponent(dir); + + if (hasCloud) { + components.push('cloud'); + } + + const packedDirectories = components.map(d => path.join(dir, d)); if (!await hasExtensionsJson(dir)) { throw new Error(`${dir} cannot be packed because it has no extension.json file.`);