ts-unused-exports
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -17,3 +17,3 @@ "use strict"; | ||
files.forEach(function (path) { return console.log(path + ": " + analysis_1[path].join(', ')); }); | ||
process.exit(files.length); | ||
process.exit(Math.min(255, files.length)); | ||
} | ||
@@ -20,0 +20,0 @@ catch (e) { |
{ | ||
"name": "ts-unused-exports", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "ts-unused-exports finds unused exported symbols in your Typescript project", | ||
@@ -23,5 +23,5 @@ "main": "lib/app.js", | ||
"scripts": { | ||
"build": "node_modules/.bin/tsc", | ||
"watch": "node_modules/.bin/tsc -w", | ||
"test": "npm run build && node_modules/.bin/jasmine", | ||
"build": "tsc", | ||
"watch": "tsc -w", | ||
"test": "npm run build && jasmine", | ||
"exec": "bin/ts-unused-exports" | ||
@@ -28,0 +28,0 @@ }, |
import { File, Imports, Analysis } from './types'; | ||
export { Analysis } from './types' | ||
@@ -3,0 +4,0 @@ interface FileExports { |
@@ -5,3 +5,3 @@ import { readFileSync } from 'fs'; | ||
import parseFiles from './parser'; | ||
import analyze from './analyzer'; | ||
import analyze, { Analysis } from './analyzer'; | ||
@@ -50,3 +50,3 @@ const parseTsConfig = (tsconfigPath:string) => { | ||
export default (tsconfigPath:string, files?:string[]) => { | ||
export default (tsconfigPath:string, files?:string[]): Analysis => { | ||
const tsConfig = loadTsConfig(tsconfigPath, files); | ||
@@ -53,0 +53,0 @@ return analyze( |
@@ -43,3 +43,3 @@ import analyzeTsConfig from './app'; | ||
process.exit(files.length); | ||
process.exit(Math.min(255, files.length)); | ||
} catch (e) { | ||
@@ -46,0 +46,0 @@ console.error(e); |
{ | ||
"compilerOptions": { | ||
"target": "ES5", | ||
"declaration": true, | ||
"module": "commonjs", | ||
@@ -5,0 +6,0 @@ "outDir": "./lib", |
44834
60
1195