diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
commit | fc7be18c76af2e700641f3598c4856baeef1428e (patch) | |
tree | 11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /build/conf/ts/ts.conf | |
parent | ec0e7ed6da6fb317741fd8468602949a1362eca5 (diff) | |
parent | c92cb9d3a19331916f0c274d80e67f02a62caa9b (diff) | |
download | ydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz |
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'build/conf/ts/ts.conf')
-rw-r--r-- | build/conf/ts/ts.conf | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/build/conf/ts/ts.conf b/build/conf/ts/ts.conf index 78221c6de3..0556da4cb9 100644 --- a/build/conf/ts/ts.conf +++ b/build/conf/ts/ts.conf @@ -3,6 +3,7 @@ NODEJS_BIN=$NODEJS_ROOT/node TS_TRACE=no TS_LOCAL_CLI=no +TS_YNDEXING=no # Use outdir defined in tsconfig (actual not for bundlers, they use own way to define output directory) TS_CONFIG_USE_OUTDIR= @@ -89,7 +90,6 @@ module _TS_BASE_UNIT: _BARE_UNIT { _PEERDIR_TS_RESOURCE(nodejs pnpm) } - # tag:test ESLINT_CONFIG_PATH=.eslintrc.js @@ -116,6 +116,23 @@ macro _TS_CONFIG_EPILOGUE() { _SETUP_BUILD_ENV() } +TSYNDEXER_OUTPUT_FILE=tsyndex.ydx.pb2 +TSYNDEXER_TOOL=${tool:"devtools/codenav/typescript"} +TSYNDEXER_CMD=${cwd:ARCADIA_BUILD_ROOT} \ + $TSYNDEXER_TOOL -m ${CURDIR} -o ${output:TSYNDEXER_OUTPUT_FILE} -r ${ARCADIA_ROOT} \ + ${kv;hide:"pc magenta"} ${kv;hide:"p YTS"} $_AS_HIDDEN_INPUTS(IN $_TS_LINT_SRCS_VALUE) + +### _DO_TS_YNDEXING() # internal +### +### Adds a command-node for TS-modules codenavigation indexing. +### Output ydx.pb2 file will be processed along with other indexes for other modules and +### other languages in ya-bin. +### (see _gen_merge_node, _gen_upload_node in devtools/ya/build/graph.py) for details. +### The macro is called from nots.py plugin in case we have `TS_YNDEXING=yes` flag set. +macro _DO_TS_YNDEXING() { + .CMD=$TSYNDEXER_CMD +} + # Used as inputs in TS_COMPILE through `$_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES)` TS_INPUT_FILES= |