@intuned/runtime-dev 1.0.6-cli.8.0.6 ā 1.0.6-cli.8.0.7
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.
|
@@ -11,12 +11,12 @@ _dotenv.default.config({
|
|
|
11
11
|
path: `.env`
|
|
12
12
|
});
|
|
13
13
|
_commander.program.description("Deploy an Intuned project to be public").argument("[project-name]", "Name of the project to deploy").option("-w, --workspace-id <id>", "Your Intuned workspace ID").option("-k, --api-key <key>", "Your Intuned API key").action(async (projectName, options) => {
|
|
14
|
-
const _projectName = projectName || (await (0, _utils2.getSettingIntunedJSON)("projectName"));
|
|
15
14
|
try {
|
|
15
|
+
const _projectName = projectName || (await (0, _utils2.getSettingIntunedJSON)("projectName"));
|
|
16
16
|
if (!_projectName) {
|
|
17
17
|
throw new Error("Project name is required");
|
|
18
18
|
}
|
|
19
|
-
const projectNameValidation = (0, _utils.validateProjectName)(
|
|
19
|
+
const projectNameValidation = (0, _utils.validateProjectName)(_projectName);
|
|
20
20
|
if (!projectNameValidation.isValid) {
|
|
21
21
|
throw new Error(projectNameValidation.errorMessage);
|
|
22
22
|
}
|
|
@@ -29,12 +29,12 @@ _commander.program.description("Deploy an Intuned project to be public").argumen
|
|
|
29
29
|
throw new Error(userErrorMesage);
|
|
30
30
|
}
|
|
31
31
|
const auth = await (0, _utils2.getAuthCredentials)(options);
|
|
32
|
-
const deployStarted = await (0, _utils.deployProject)(
|
|
32
|
+
const deployStarted = await (0, _utils.deployProject)(_projectName, auth);
|
|
33
33
|
if (!deployStarted) {
|
|
34
34
|
throw new Error("Project not deployed");
|
|
35
35
|
}
|
|
36
36
|
const url = `https://rauf-2.intuned-team-local.com/projects`;
|
|
37
|
-
console.log(_chalk.default.green(`\nš Project "${
|
|
37
|
+
console.log(_chalk.default.green(`\nš Project "${_projectName}" started deployment successfully!` + `\n\nYou can check your project on the platform: ${_chalk.default.bold(url)}\n`));
|
|
38
38
|
} catch (error) {
|
|
39
39
|
console.error(_chalk.default.red(`\n${error.message}`));
|
|
40
40
|
process.exit(1);
|