From b3c5e154cbbde224233dfee864d53c7627eed840 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Thu, 1 Jul 2021 17:07:22 +0800 Subject: [PATCH] Fix typo (#567) --- lib/constants.js | 4 ++-- lib/options-manager.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;