@devquest/cli 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,15 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  const commander_1 = require("commander");
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const path_1 = __importDefault(require("path"));
5
10
  const auth_1 = require("./commands/auth");
6
11
  const clone_1 = require("./commands/clone");
7
12
  const submit_1 = require("./commands/submit");
8
13
  const program = new commander_1.Command();
14
+ const pkg = JSON.parse(fs_1.default.readFileSync(path_1.default.join(__dirname, '../package.json'), 'utf8'));
9
15
  program
10
16
  .name('devquest')
11
17
  .description('DevQuest CLI - Construa seu próprio Redis, Docker, Git e mais')
12
- .version('1.0.0');
18
+ .version(pkg.version);
13
19
  program.addCommand(auth_1.authCommand);
14
20
  program.addCommand(clone_1.cloneCommand);
15
21
  program.addCommand(submit_1.submitCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devquest/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "DevQuest CLI - Construa seu próprio Redis, Docker, Git e mais",
5
5
  "main": "dist/index.js",
6
6
  "bin": {