bod 5.6.2 → 5.7.0

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.
package/dist/bod.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
5
- const path_1 = (0, tslib_1.__importDefault)(require("path"));
4
+ const fs_1 = tslib_1.__importDefault(require("fs"));
5
+ const path_1 = tslib_1.__importDefault(require("path"));
6
6
  const utils_1 = require("./utils");
7
7
  const index_1 = require("./index");
8
8
  const packageJsonPath = path_1.default.join(__dirname, '../package.json');
@@ -13,7 +13,7 @@ for (const command of index_1.CommandFactory.values()) {
13
13
  .command(command.getUsage())
14
14
  .alias(command.getAlias())
15
15
  .description(command.getDescription())
16
- .action((appName) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
16
+ .action((appName) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
17
17
  try {
18
18
  yield command.run(appName);
19
19
  }
@@ -10,7 +10,7 @@ class BaseCommand {
10
10
  this.alias = alias !== null && alias !== void 0 ? alias : this.name[0];
11
11
  }
12
12
  run(_appName) {
13
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { });
13
+ return tslib_1.__awaiter(this, void 0, void 0, function* () { });
14
14
  }
15
15
  getName() {
16
16
  return this.name;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const utils_1 = require("../utils");
5
- const BaseCommand_1 = (0, tslib_1.__importDefault)(require("./BaseCommand"));
5
+ const BaseCommand_1 = tslib_1.__importDefault(require("./BaseCommand"));
6
6
  class CreateCommand extends BaseCommand_1.default {
7
7
  constructor() {
8
8
  super({
@@ -14,7 +14,7 @@ class CreateCommand extends BaseCommand_1.default {
14
14
  this.commandArgs = [];
15
15
  }
16
16
  run(appName) {
17
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
17
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
18
18
  yield this.processTemplateAction();
19
19
  this.resolveAppPath(appName);
20
20
  this.execute();
@@ -27,7 +27,7 @@ class CreateCommand extends BaseCommand_1.default {
27
27
  return this.commandArgs;
28
28
  }
29
29
  processTemplateAction() {
30
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
30
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
31
  const { templateName } = yield utils_1.inquirer.prompt([
32
32
  {
33
33
  name: 'templateName',
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const utils_1 = require("../utils");
5
- const BaseCommand_1 = (0, tslib_1.__importDefault)(require("./BaseCommand"));
5
+ const BaseCommand_1 = tslib_1.__importDefault(require("./BaseCommand"));
6
6
  class InfoCommand extends BaseCommand_1.default {
7
7
  constructor() {
8
8
  super({
@@ -12,7 +12,7 @@ class InfoCommand extends BaseCommand_1.default {
12
12
  });
13
13
  }
14
14
  run(_appName) {
15
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
16
  utils_1.printer.info(`Environment information:`);
17
17
  const envInfo = yield utils_1.envinfo.run({
18
18
  System: ['OS', 'CPU'],
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.printer = exports.color = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  exports.color = chalk_1.default;
7
- const consola_1 = (0, tslib_1.__importDefault)(require("consola"));
7
+ const consola_1 = tslib_1.__importDefault(require("consola"));
8
8
  exports.printer = consola_1.default;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.program = exports.inquirer = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const commander_1 = require("commander");
6
- const inquirer_1 = (0, tslib_1.__importDefault)(require("inquirer"));
6
+ const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
7
7
  exports.inquirer = inquirer_1.default;
8
8
  const program = new commander_1.Command();
9
9
  exports.program = program;
package/dist/utils/os.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.spawn = exports.envinfo = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn"));
5
+ const cross_spawn_1 = tslib_1.__importDefault(require("cross-spawn"));
6
6
  exports.spawn = cross_spawn_1.default;
7
- const envinfo_1 = (0, tslib_1.__importDefault)(require("envinfo"));
7
+ const envinfo_1 = tslib_1.__importDefault(require("envinfo"));
8
8
  exports.envinfo = envinfo_1.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bod",
3
- "version": "5.6.2",
3
+ "version": "5.7.0",
4
4
  "description": "Boilerplate CLI App",
5
5
  "scripts": {
6
6
  "build": "yarn clean && yarn compile",
@@ -52,19 +52,19 @@
52
52
  "homepage": "https://sabertazimi.github.io/bod",
53
53
  "dependencies": {
54
54
  "chalk": "^4.1.2",
55
- "commander": "^8.3.0",
55
+ "commander": "^9.1.0",
56
56
  "consola": "^2.15.3",
57
57
  "cross-spawn": "^7.0.3",
58
58
  "envinfo": "^7.8.1",
59
- "inquirer": "^8.2.0"
59
+ "inquirer": "^8.2.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/cross-spawn": "^6.0.2",
63
63
  "@types/envinfo": "^7.8.1",
64
- "@types/inquirer": "^8.1.3",
64
+ "@types/inquirer": "^8.2.0",
65
65
  "@types/rimraf": "^3.0.2",
66
66
  "ci-info": "^3.3.0",
67
67
  "rimraf": "^3.0.2"
68
68
  },
69
- "gitHead": "845280934f41c05a4f6e4be396f19a4162005b2f"
69
+ "gitHead": "e44021c95c2dbc37f551a7cbc6cb3341df0bfddc"
70
70
  }