@good-fences/api
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -15,2 +15,3 @@ #! /usr/bin/env node | ||
.option('--baseUrl <string>', "Overrides `compilerOptions.baseUrl` property read from '--project' argument") | ||
.option('--ignoreExternalFences', 'Ignore external fences (e.g. those in `node_modules`)', false) | ||
.arguments('<path> [morePaths...]', 'Dirs to look for fence and source files') | ||
@@ -24,5 +25,6 @@ program.parse(process.argv); | ||
paths: args, | ||
project: project, | ||
project: options.project, | ||
baseUrl: options.baseUrl, | ||
errOutputPath: options.errOutputPath | ||
errOutputPath: options.errOutputPath, | ||
ignoreExternalFences: options.ignoreExternalFences ? 1 : 0 | ||
}); | ||
@@ -29,0 +31,0 @@ result.forEach(r => { |
@@ -6,2 +6,6 @@ /* tslint:disable */ | ||
export const enum ExternalFences { | ||
Ignore = 0, | ||
Include = 1 | ||
} | ||
export function goodFences(opts: GoodFencesOptions): Array<GoodFencesError> | ||
@@ -13,2 +17,3 @@ export interface GoodFencesOptions { | ||
errOutputPath?: string | ||
ignoreExternalFences?: ExternalFences | ||
} | ||
@@ -15,0 +20,0 @@ export class GoodFencesError { |
@@ -239,5 +239,6 @@ const { existsSync, readFileSync } = require('fs') | ||
const { goodFences, GoodFencesError } = nativeBinding | ||
const { ExternalFences, goodFences, GoodFencesError } = nativeBinding | ||
module.exports.ExternalFences = ExternalFences | ||
module.exports.goodFences = goodFences | ||
module.exports.GoodFencesError = GoodFencesError |
{ | ||
"name": "@good-fences/api", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "index.js", | ||
@@ -38,6 +38,6 @@ "types": "index.d.ts", | ||
"optionalDependencies": { | ||
"@good-fences/api-win32-x64-msvc": "0.0.4", | ||
"@good-fences/api-darwin-x64": "0.0.4", | ||
"@good-fences/api-linux-x64-gnu": "0.0.4" | ||
"@good-fences/api-win32-x64-msvc": "0.0.5", | ||
"@good-fences/api-darwin-x64": "0.0.5", | ||
"@good-fences/api-linux-x64-gnu": "0.0.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
157116
370