Skip to content

Commit

Permalink
fix: typescript configuration restored
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayheck committed Oct 30, 2023
1 parent 0fa9eab commit d3082c9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/configuration/typescript-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { GeneralError } from '../errors/runtime';
import { RUNTIME_ERRORS } from '../errors/types';
import Option from './option';
import OptionSource from './option-source';
import { Dictionary } from './interfaces';

const lazyRequire = require('import-lazy')(require);
const typescript = lazyRequire('typescript');
Expand All @@ -21,12 +20,7 @@ interface TypescriptConfigurationOptions {
compilerOptions?: object;
}

export interface TypescriptConfigurationBase {
init (customCompilerOptions?: object): Promise<void>;
getOptions (predicate?: ((name: string, option: Option) => boolean) | object): Dictionary<OptionValue>;
}

export default class TypescriptConfiguration extends Configuration implements TypescriptConfigurationBase {
export default class TypescriptConfiguration extends Configuration {
private readonly basePath: string;

public constructor (tsConfigPath: string | null, useEsmModules?: boolean) {
Expand Down

0 comments on commit d3082c9

Please sign in to comment.