-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have Zork use plugin installer to pull down zorkjs package #27
Conversation
Codecov Report
@@ Coverage Diff @@
## master #27 +/- ##
==========================================
+ Coverage 98.36% 98.36% +<.01%
==========================================
Files 22 21 -1
Lines 549 551 +2
==========================================
+ Hits 540 542 +2
Misses 9 9
Continue to review full report at Codecov.
|
src/commands/zork.js
Outdated
@@ -23,9 +25,11 @@ class Zork extends BaseCommand { | |||
this.logger.warn('Standby, loading the dungeon...'); | |||
|
|||
try { | |||
await this.exec('npm install --no-save zorkjs'); | |||
this.plugins = this.plugins || new Plugins(this.config); | |||
await this.plugins.install('zorkjs', { tag: 'latest', force: false }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got this the first time:
➜ rm -rf ~/.twilio/node_modules/zorkjs
➜ bin/run zork -l debug
[DEBUG] Config File: /Users/sharrison/.twilio/config.json
» Standby, loading the dungeon...
[DEBUG] {}
» I don't know the word "zork".
Works the second time, which is why I had to manually delete zorkjs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, same for me. Weird.
OK, try again @childish-sambino ... not sure why the plugin installer |
Fixes
N/A
Checklist
Contributing to Twilio
Short description of what this PR does:
If you have questions, please file a support ticket, or create a Github Issue in this repository.