@emulsify/cli 1.11.1 → 1.11.2

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.
@@ -71,13 +71,12 @@ async function systemInstall(name, options) {
71
71
  if (!repo) {
72
72
  return (0, log_1.default)('error', 'Unable to download specified system. You must either specify a valid name of an out-of-the-box system using the --name flag, or specify a valid repository and branch/tag/commit using the --repository and --checkout flags.', constants_1.EXIT_ERROR);
73
73
  }
74
- let checkout = repo.checkout;
75
- if (!checkout) {
76
- checkout = await (0, getRepositoryLatestTag_1.default)(repo.repository);
74
+ if (repo.checkout === undefined) {
75
+ repo.checkout = await (0, getRepositoryLatestTag_1.default)(repo.repository);
77
76
  }
78
77
  await (0, cloneIntoCache_1.default)('systems', [repo.name])({
79
78
  repository: repo.repository,
80
- checkout: checkout,
79
+ checkout: repo.checkout,
81
80
  });
82
81
  const systemConf = await (0, getJsonFromCachedFile_1.default)('systems', [repo.name], repo.checkout, constants_1.EMULSIFY_SYSTEM_CONFIG_FILE);
83
82
  if (!systemConf) {
@@ -4207,9 +4207,9 @@
4207
4207
  }
4208
4208
  },
4209
4209
  "node_modules/electron-to-chromium": {
4210
- "version": "1.5.43",
4211
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.43.tgz",
4212
- "integrity": "sha512-NxnmFBHDl5Sachd2P46O7UJiMaMHMLSofoIWVJq3mj8NJgG0umiSeljAVP9lGzjI0UDLJJ5jjoGjcrB8RSbjLQ==",
4210
+ "version": "1.5.45",
4211
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.45.tgz",
4212
+ "integrity": "sha512-vOzZS6uZwhhbkZbcRyiy99Wg+pYFV5hk+5YaECvx0+Z31NR3Tt5zS6dze2OepT6PCTzVzT0dIJItti+uAW5zmw==",
4213
4213
  "dev": true,
4214
4214
  "license": "ISC"
4215
4215
  },
@@ -5,8 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const fs_extra_1 = require("fs-extra");
7
7
  const getCachedItemPath_1 = __importDefault(require("./getCachedItemPath"));
8
+ const getEmulsifyConfig_1 = __importDefault(require("../project/getEmulsifyConfig"));
8
9
  async function copyFileFromCache(bucket, itemPath, destination, force = false) {
9
- const source = (0, getCachedItemPath_1.default)(bucket, itemPath);
10
+ const emulsifyConfig = await (0, getEmulsifyConfig_1.default)();
11
+ let checkout = '';
12
+ if (emulsifyConfig != undefined &&
13
+ emulsifyConfig.system &&
14
+ emulsifyConfig.system.checkout) {
15
+ checkout = emulsifyConfig.system.checkout;
16
+ }
17
+ const source = (0, getCachedItemPath_1.default)(bucket, itemPath, checkout);
10
18
  if (force) {
11
19
  await (0, fs_extra_1.remove)(destination);
12
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Command line interface for Emulsify",
5
5
  "repository": "git@github.com:emulsify-ds/emulsify-cli.git",
6
6
  "author": "Patrick Coffey <patrickcoffey48@gmail.com>",