Comparing version 0.3.0 to 0.3.1
@@ -44,3 +44,3 @@ #!/usr/bin/env node | ||
var logger = console; | ||
var cli = meow("\n\tUsage\n\t $ gts <verb> [options]\n\n Verb can be:\n init Adds default npm scripts to your package.json.\n check Checks code for formatting and lint issues.\n fix Fixes formatting and linting issues (if possible).\n clean Removes all files generated by the build.\n\n Options\n --help Prints this help message.\n -y, --yes Assume a yes answer for every prompt.\n --dry-run Don't make any acutal changes.\n\n\tExamples\n $ gts init -y\n $ gts lint\n $ gts fix\n $ gts clean\n"); | ||
var cli = meow("\n\tUsage\n\t $ gts <verb> [options]\n\n Verb can be:\n init Adds default npm scripts to your package.json.\n check Checks code for formatting and lint issues.\n fix Fixes formatting and linting issues (if possible).\n clean Removes all files generated by the build.\n\n Options\n --help Prints this help message.\n -y, --yes Assume a yes answer for every prompt.\n --dry-run Don't make any acutal changes.\n\n\tExamples\n $ gts init -y\n $ gts check\n $ gts fix\n $ gts clean\n"); | ||
function usage(msg) { | ||
@@ -69,4 +69,4 @@ if (msg) { | ||
case 2: | ||
lint = require('./lint'); | ||
format = require('./format'); | ||
lint = require('./lint').lint; | ||
format = require('./format').format; | ||
_a = verb; | ||
@@ -73,0 +73,0 @@ switch (_a) { |
@@ -13,2 +13,2 @@ export declare const readFilep: (...args: any[]) => Promise<any>; | ||
*/ | ||
export declare function getTSConfig(rootDir: string, parmReadFilep?: ReadFileP): Promise<any>; | ||
export declare function getTSConfig(rootDir: string, customReadFilep?: ReadFileP): Promise<any>; |
@@ -69,3 +69,3 @@ "use strict"; | ||
*/ | ||
function getTSConfig(rootDir, parmReadFilep) { | ||
function getTSConfig(rootDir, customReadFilep) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -77,3 +77,4 @@ var tsconfigPath, json, contents; | ||
tsconfigPath = path.join(rootDir, 'tsconfig.json'); | ||
return [4 /*yield*/, (parmReadFilep || exports.readFilep)(tsconfigPath, 'utf8')]; | ||
customReadFilep = customReadFilep || exports.readFilep; | ||
return [4 /*yield*/, customReadFilep(tsconfigPath, 'utf8')]; | ||
case 1: | ||
@@ -80,0 +81,0 @@ json = _a.sent(); |
{ | ||
"name": "gts", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Google TypeScript Style", | ||
@@ -29,2 +29,3 @@ "repository": "google/ts-style", | ||
"lint-fix": "tslint -c tslint.json --project . --type-check -t codeFrame --fix", | ||
"prepare": "npm run compile", | ||
"test": "npm run compile && ava build/test/test*.js", | ||
@@ -31,0 +32,0 @@ "posttest": "npm run lint && npm run format-check" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65530
845