diff options
| author | khoden <[email protected]> | 2025-07-28 20:00:47 +0300 |
|---|---|---|
| committer | khoden <[email protected]> | 2025-07-28 20:20:53 +0300 |
| commit | bdb49d64da0ae337fea82335f520f1c5f0f3ee90 (patch) | |
| tree | 944e6b9fa570abe43d507c6111c650f19857d5fe /build/plugins/lib | |
| parent | e5ac97f49a18137c084d3f879650a77cb06e4863 (diff) | |
другое: eslint: использовать tsconfig заданный пользователем (также jest и tsc_typecheck)
commit_hash:88ceedeeebca577e87c69c9fdb14d3bf9350e988
Diffstat (limited to 'build/plugins/lib')
| -rw-r--r-- | build/plugins/lib/nots/test_utils/ts_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/plugins/lib/nots/test_utils/ts_utils.py b/build/plugins/lib/nots/test_utils/ts_utils.py index f3a0615bfdf..661493501a4 100644 --- a/build/plugins/lib/nots/test_utils/ts_utils.py +++ b/build/plugins/lib/nots/test_utils/ts_utils.py @@ -83,17 +83,17 @@ def get_top_level_dirs(dirs): return top_level_dirs -def create_bin_tsconfig(module_arc_path, source_root, bin_root): +def create_bin_tsconfig(module_arc_path, source_root, bin_root, ts_config_path=DEFAULT_TS_CONFIG_FILE): """ Creating a tsconfig.json config file inlining the required base files if any """ source_path = os.path.join(source_root, module_arc_path) bin_path = os.path.join(bin_root, module_arc_path) - ts_config = TsConfig.load(os.path.join(source_path, DEFAULT_TS_CONFIG_FILE)) + ts_config = TsConfig.load(os.path.join(source_path, ts_config_path)) pj = PackageJson.load(build_pj_path(source_path)) ts_config.inline_extend(pj.get_dep_paths_by_names()) - bin_ts_config_path = os.path.join(bin_path, DEFAULT_TS_CONFIG_FILE) + bin_ts_config_path = os.path.join(bin_path, ts_config_path) ts_config.write(bin_ts_config_path, indent=4) return bin_ts_config_path |
