antongolub/tsc-esm-fix

View on GitHub
src/main/ts/fix.ts

Summary

Maintainability
A
2 hrs
Test Coverage
A
98%

Function patch has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const patch = async (ctx: TFixContext, options: IFixOptionsNormalized) => {
  const {cwd, unlink, sourceMap} = options
  const {
    outDir,
    isSource,
Severity: Minor
Found in src/main/ts/fix.ts - About 1 hr to fix

    Function resolve has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const resolve = async (opts: IFixOptionsNormalized): Promise<TFixContext> => {
      const {cwd, target, src, tsconfig, out = cwd, ext, debug, unlink, sourceMap} = opts
      const outDir = path.resolve(cwd, out)
      const sources = asArray<string>(src)
      const targets = [...asArray<string>(target), ...getTsconfigTargets(tsconfig, cwd)]
    Severity: Minor
    Found in src/main/ts/fix.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status