@codeleap/cli 5.7.0 → 5.8.1
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.
|
@@ -93,7 +93,7 @@ exports.configureThemeCommand = (0, Command_1.codeleapCommand)({
|
|
|
93
93
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
94
94
|
return " ".concat(key, ": colors.").concat(value, ",");
|
|
95
95
|
}).join("\n");
|
|
96
|
-
return "import colors from './baseColors'\n\nexport default {\n".concat(colors, "\n}");
|
|
96
|
+
return "import colors from './baseColors'\n\nexport default {\n ...colors,\n".concat(colors, "\n}");
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
package/dist/constants.js
CHANGED
|
@@ -22,16 +22,18 @@ exports.isDev = process.env.CODELEAP_CLI_DEV_MODE == 'true';
|
|
|
22
22
|
exports.cwd = path_1.default.resolve(exports.isDev ? '../../../cli-test' : path_1.default.join(_cwd, exports.isDev ? 'tests' : ''));
|
|
23
23
|
process.env.GOOGLE_APPLICATION_CREDENTIALS = path_1.default.join(exports.cwd, 'gcp-automation.json');
|
|
24
24
|
var isMonorepo = fs_1.default.existsSync(path_1.default.resolve(__dirname, '../../../apps'));
|
|
25
|
-
var projectRoot = path_1.default.resolve(__dirname, '
|
|
25
|
+
var projectRoot = path_1.default.resolve(__dirname, '../../../');
|
|
26
26
|
exports.cliDir = isMonorepo ? path_1.default.join(projectRoot, 'apps/mobile/') : projectRoot;
|
|
27
27
|
exports.cliConfigPath = path_1.default.resolve(exports.cliDir, 'codeleapcli.config.json');
|
|
28
|
-
var
|
|
28
|
+
var userConfig = {};
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
console.log('Reading config', isMonorepo, userConfig);
|
|
31
|
+
userConfig = JSON.parse(fs_1.default.readFileSync(exports.cliConfigPath).toString());
|
|
31
32
|
}
|
|
32
33
|
catch (e) {
|
|
34
|
+
console.error(e);
|
|
33
35
|
}
|
|
34
36
|
exports.orgName = 'codeleap-uk';
|
|
35
|
-
exports.USER_CONFIG = __assign({ SHELL: true },
|
|
37
|
+
exports.USER_CONFIG = __assign({ SHELL: true }, userConfig);
|
|
36
38
|
console.log('Current config ->', exports.USER_CONFIG);
|
|
37
39
|
exports.MOBILE_TEMPLATE_URL = "git@github.com:".concat(exports.orgName, "/mobile-template.git");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"repository": "git@github.com:codeleap-uk/codeleap-lib.git",
|
|
6
6
|
"author": "Paulo Henrique De Souza <paulosouza300272@gmail.com>",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"codeleap-cli": "./dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@codeleap/config": "5.
|
|
13
|
+
"@codeleap/config": "5.8.1",
|
|
14
14
|
"@types/inquirer": "^8.2.0",
|
|
15
15
|
"@types/libsodium-wrappers": "^0.7.10",
|
|
16
16
|
"cross-env": "^7.0.3"
|