Skip to content

Commit

Permalink
Merge pull request #81 from shoutem/hotfix/0.13.4
Browse files Browse the repository at this point in the history
Hotfix/0.13.4
  • Loading branch information
Definitely-Not-Vlad authored Jul 14, 2020
2 parents 2f28714 + 9ff132a commit 0fe7e82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 8 additions & 1 deletion src/services/packer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down

0 comments on commit 0fe7e82

Please sign in to comment.