diff --git a/lib/constants.js b/lib/constants.js index 570f9016..634a6217 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -125,7 +125,7 @@ const CONFIG_FILES = [ `${MODULE_NAME}.config.cjs` ]; -const TSCONFIG_DEFFAULTS = { +const TSCONFIG_DEFAULTS = { compilerOptions: { target: 'es2018', newLine: 'lf', @@ -148,6 +148,6 @@ module.exports = { MODULE_NAME, CONFIG_FILES, MERGE_OPTIONS_CONCAT, - TSCONFIG_DEFFAULTS, + TSCONFIG_DEFAULTS, CACHE_DIR_NAME }; diff --git a/lib/options-manager.js b/lib/options-manager.js index 2f46186a..c53d4991 100644 --- a/lib/options-manager.js +++ b/lib/options-manager.js @@ -40,7 +40,7 @@ const { MODULE_NAME, CONFIG_FILES, MERGE_OPTIONS_CONCAT, - TSCONFIG_DEFFAULTS, + TSCONFIG_DEFAULTS, CACHE_DIR_NAME } = require('./constants'); @@ -225,7 +225,7 @@ const makeTSConfig = (tsConfig, tsConfigPath, files) => { config.extends = tsConfigPath; config.include = arrify(tsConfig.include).map(pattern => toAbsoluteGlob(pattern, {cwd: path.dirname(tsConfigPath)})); } else { - Object.assign(config, TSCONFIG_DEFFAULTS); + Object.assign(config, TSCONFIG_DEFAULTS); } return config;