@tapestry-mud/cli 0.3.0 → 0.3.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.
package/bin/tapestry.js CHANGED
@@ -2,6 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  const { Command } = require('commander');
5
+ const { version } = require('../package.json');
5
6
  const { init } = require('../src/commands/init');
6
7
  const { createPack } = require('../src/commands/create-pack');
7
8
  const { install } = require('../src/commands/install');
@@ -29,7 +30,7 @@ const program = new Command();
29
30
  program
30
31
  .name('tapestry')
31
32
  .description('Tapestry Package Manager')
32
- .version('0.1.0');
33
+ .version(version);
33
34
 
34
35
  program
35
36
  .command('init')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapestry-mud/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "CLI for the Tapestry MUD engine",
5
5
  "bin": {
6
6
  "tapestry": "./bin/tapestry.js"
@@ -14,14 +14,13 @@ function ask(rl, question) {
14
14
 
15
15
  function askPassword(rl, prompt) {
16
16
  return new Promise((resolve) => {
17
- process.stdout.write(prompt);
18
17
  const orig = rl._writeToOutput.bind(rl);
19
- rl._writeToOutput = () => {};
20
- rl.question('', (password) => {
18
+ rl.question(prompt, (password) => {
21
19
  rl._writeToOutput = orig;
22
20
  process.stdout.write('\n');
23
21
  resolve(password);
24
22
  });
23
+ rl._writeToOutput = () => {};
25
24
  });
26
25
  }
27
26