babel-codemod
Advanced tools
Comparing version 1.5.1 to 1.6.0
{ | ||
"name": "babel-codemod", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "babel-codemod rewrites JavaScript using babel plugins.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
/// <reference types="node" /> | ||
import * as realFs from 'fs'; | ||
export default function run(argv: Array<string>, stdin: NodeJS.ReadableStream, stdout: NodeJS.WritableStream, stderr: NodeJS.WritableStream, fs?: typeof realFs): Promise<number>; | ||
export default function run(argv: Array<string>, stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, stderr: NodeJS.WriteStream, fs?: typeof realFs): Promise<number>; |
@@ -105,2 +105,4 @@ "use strict"; | ||
runner = new TransformRunner_1.default(sourcesIterator, plugins); | ||
let dim = stdout.isTTY ? '\x1b[2m' : ''; | ||
let reset = stdout.isTTY ? '\x1b[0m' : ''; | ||
for (let result of runner.run()) { | ||
@@ -112,3 +114,6 @@ if (result.output) { | ||
else { | ||
if (result.output !== result.source.content) { | ||
if (result.output === result.source.content) { | ||
stdout.write(`${dim}${result.source.path}${reset}\n`); | ||
} | ||
else { | ||
stats.modified++; | ||
@@ -115,0 +120,0 @@ stdout.write(`${result.source.path}\n`); |
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
92014
1189