@intuned/runtime-dev 1.0.6-cli.8.0.6 → 1.0.6-cli.8.0.8

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,13 @@ _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
+ console.log("Project name: ", _projectName);
16
17
  if (!_projectName) {
17
18
  throw new Error("Project name is required");
18
19
  }
19
- const projectNameValidation = (0, _utils.validateProjectName)(projectName);
20
+ const projectNameValidation = (0, _utils.validateProjectName)(_projectName);
20
21
  if (!projectNameValidation.isValid) {
21
22
  throw new Error(projectNameValidation.errorMessage);
22
23
  }
@@ -29,12 +30,12 @@ _commander.program.description("Deploy an Intuned project to be public").argumen
29
30
  throw new Error(userErrorMesage);
30
31
  }
31
32
  const auth = await (0, _utils2.getAuthCredentials)(options);
32
- const deployStarted = await (0, _utils.deployProject)(projectName, auth);
33
+ const deployStarted = await (0, _utils.deployProject)(_projectName, auth);
33
34
  if (!deployStarted) {
34
35
  throw new Error("Project not deployed");
35
36
  }
36
37
  const url = `https://rauf-2.intuned-team-local.com/projects`;
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
+ 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
39
  } catch (error) {
39
40
  console.error(_chalk.default.red(`\n${error.message}`));
40
41
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-cli.8.0.6",
3
+ "version": "1.0.6-cli.8.0.8",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",