6 Commits

Author SHA1 Message Date
b36e95af1a 2.0.3 2018-07-25 17:37:34 +02:00
ac9ef4915e fix(spendendencies): fix old import to use new dependency 2018-07-25 17:37:34 +02:00
6ca2e427ff 2.0.2 2018-07-25 17:30:30 +02:00
39f9bb11fe fix(ci): add npmts for build step 2018-07-25 17:30:30 +02:00
8925f29962 2.0.1 2018-07-25 16:58:51 +02:00
2e862d6840 fix(package): update tslint 2018-07-25 16:58:51 +02:00
5 changed files with 19 additions and 14 deletions

View File

@ -1,8 +1,6 @@
{
"npmci": {
"globalNpmTools": [
"npmts"
]
},
"npmAccessLevel": "public"
}
"npmci": {
"npmGlobalTools": ["npmts"]
},
"npmAccessLevel": "public"
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "smartinteract",
"version": "2.0.0",
"version": "2.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "@pushrocks/smartinteract",
"private": false,
"version": "2.0.0",
"version": "2.0.3",
"description": "smart cli interaction",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -1,5 +1,5 @@
import * as plugins from './smartinteract.plugins';
import * as smartq from 'smartq';
import * as smartpromise from '@pushrocks/smartpromise';
import { Objectmap } from '@pushrocks/lik';
/**
@ -15,6 +15,9 @@ export type questionType =
| 'password'
| 'editor';
/**
* a choice
*/
export interface IChoiceObject {
name: string;
value: any;
@ -60,7 +63,7 @@ export class SmartInteract {
* skips the queue
*/
askQuestion(optionsArg: IQuestionObject): Promise<IAnswerObject> {
let done = smartq.defer<IAnswerObject>();
let done = smartpromise.defer<IAnswerObject>();
if (this.isValidEnv()) {
plugins.inquirer
.prompt([
@ -110,7 +113,7 @@ export class SmartInteract {
* run the question queue
*/
runQueue() {
let done = smartq.defer<AnswerBucket>();
let done = smartpromise.defer<AnswerBucket>();
let answerBucket = new AnswerBucket();
let handleQuestion = async () => {
if (!this.questionMap.isEmpty()) {

View File

@ -1,3 +1,7 @@
{
"extends": "tslint-config-standard"
}
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"]
}
}