Skip to content

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-riley committed Nov 6, 2019
2 parents be28d40 + d7bd8a0 commit 8199d41
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ Copyright (c) Microsoft Corporation.
Copyright (c) Microsoft Corporation.
** @types/minimatch; version 3.0.3 --
Copyright (c) Microsoft Corporation.
** @types/node; version 12.11.2 --
** @types/node; version 12.11.5 --
Copyright (c) Microsoft Corporation.

MIT License
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@matt-riley/cvcsv-cli",
"version": "1.0.2",
"version": "1.0.3",
"description": "CLI for creating CSV for Cloud Vision Product Search API",
"main": "./lib/index.js",
"private": false,
Expand Down Expand Up @@ -46,16 +46,16 @@
"@liftr/tscov": "1.4.3",
"@types/figlet": "1.2.0",
"@types/inquirer": "6.5.0",
"@types/jest": "24.0.21",
"@types/node": "12.12.0",
"@types/jest": "24.0.22",
"@types/node": "12.12.6",
"jest": "24.9.0",
"npm-run-all": "4.1.5",
"prettier": "1.18.2",
"rimraf": "3.0.0",
"ts-jest": "24.1.0",
"ts-node": "8.4.1",
"typedoc": "0.15.0",
"typescript": "3.6.4"
"typescript": "3.7.2"
},
"dependencies": {
"csv-writer": "1.5.0",
Expand Down
18 changes: 9 additions & 9 deletions src/utils/config_file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from "fs";
import * as fs from "fs";
import path from "path";
import inquirer from "inquirer";
import {
Expand All @@ -24,13 +24,13 @@ export class Config {
private static configQuestions: {
[index: string]: any;
} = {
bucketName: bucketQuestion,
csvFileLocation: fileLocationQuestion,
csvFilename: filenameQuestion,
productCategory: productCategoryQuestion,
productSet: productSetQuestion,
rootDirectory: directoryQuestion
};
bucketName: bucketQuestion,
csvFileLocation: fileLocationQuestion,
csvFilename: filenameQuestion,
productCategory: productCategoryQuestion,
productSet: productSetQuestion,
rootDirectory: directoryQuestion
};

public static async readFile() {
const fileName = ".cvcsvrc";
Expand All @@ -56,7 +56,7 @@ export class Config {
if (missing.length === 0) {
return await Promise.resolve(objToCheck);
}
const ans = await inquirer.prompt(missing);
const ans: Object = await inquirer.prompt(missing);
return { ...ans, ...objToCheck };
}
}

0 comments on commit 8199d41

Please sign in to comment.