aboutsummaryrefslogtreecommitdiffstats
path: root/build/conf/ts
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2024-03-18 13:20:51 +0300
committerzaverden <zaverden@yandex-team.com>2024-03-18 15:09:21 +0300
commitebc6526bccdf9d2304b9eef3a0a9eaba8e7e38f7 (patch)
tree9a6a87cdab117790774a6e04ece2e058fc16a85b /build/conf/ts
parent29127cb44e4ff8ecde3924e1af7bb4213fda2a9f (diff)
downloadydb-ebc6526bccdf9d2304b9eef3a0a9eaba8e7e38f7.tar.gz
feat(TS_TYPECHECK): implementation
881bda4539ae182b7975c149191642ded49990e3
Diffstat (limited to 'build/conf/ts')
-rw-r--r--build/conf/ts/ts.conf2
-rw-r--r--build/conf/ts/ts_test.conf18
2 files changed, 16 insertions, 4 deletions
diff --git a/build/conf/ts/ts.conf b/build/conf/ts/ts.conf
index 14a3f9b507..6c5953491e 100644
--- a/build/conf/ts/ts.conf
+++ b/build/conf/ts/ts.conf
@@ -75,8 +75,6 @@ macro _TS_CONFIG_EPILOGUE() {
_GLOB(TS_GLOB_FILES $TS_GLOB_INCLUDE EXCLUDE $TS_GLOB_EXCLUDE)
_GLOB(_TS_LINT_SRCS_VALUE **/*.(ts|tsx|js|jsx) EXCLUDE $TS_EXCLUDE_DIR_GLOB $TS_COMMON_OUTDIR_GLOB $TS_GLOB_EXCLUDE_ADDITIONAL)
-
- _SETUP_EXTRACT_NODE_MODULES_RECIPE(${MODDIR})
}
# Used as inputs in TS_COMPILE through `$_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES)`
diff --git a/build/conf/ts/ts_test.conf b/build/conf/ts/ts_test.conf
index 273a8a5687..cd5dc172f1 100644
--- a/build/conf/ts/ts_test.conf
+++ b/build/conf/ts/ts_test.conf
@@ -105,15 +105,17 @@ macro _TS_TEST_FOR_ARGS(FOR_MOD, RELATIVE?"${CURDIR}":"${ARCADIA_ROOT}") {
}
macro _SETUP_EXTRACT_NODE_MODULES_RECIPE(FOR_PATH) {
- DEPENDS(devtools/frontend_build_platform/nots/recipes/extract_node_modules)
USE_RECIPE(devtools/frontend_build_platform/nots/recipes/extract_node_modules/recipe $FOR_PATH workspace_node_modules.tar)
}
macro _SETUP_EXTRACT_OUTPUT_TARS_RECIPE(FOR_PATH) {
- DEPENDS(devtools/frontend_build_platform/nots/recipes/extract_output_tars)
USE_RECIPE(devtools/frontend_build_platform/nots/recipes/extract_output_tars/recipe $FOR_PATH)
}
+macro _SETUP_INSTALL_NODE_MODULES_RECIPE() {
+ USE_RECIPE(devtools/frontend_build_platform/nots/recipes/install_node_modules/recipe $NOTS_TOOL_BASE_ARGS)
+}
+
### @usage: TS_TEST_CONFIG(Path)
###
@@ -167,3 +169,15 @@ macro TS_TEST_DATA(RENAME="", GLOBS...) {
macro TS_TEST_DEPENDS_ON_BUILD() {
ENABLE(_TS_TEST_DEPENDS_ON_BUILD)
}
+
+_TS_TYPECHECK_VALUE=none
+_TS_TYPECHECK_TSCONFIG=
+
+macro NO_TS_TYPECHECK() {
+ SET(_TS_TYPECHECK_VALUE none)
+}
+
+macro TS_TYPECHECK(TS_CONFG="") {
+ ENABLE(_TS_TYPECHECK_VALUE)
+ SET(_TS_TYPECHECK_TSCONFIG $TS_CONFG)
+}