summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/conf/ts.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/conf/ts.conf b/build/conf/ts.conf
index d175ebe0115..789d06c9f22 100644
--- a/build/conf/ts.conf
+++ b/build/conf/ts.conf
@@ -282,6 +282,11 @@ macro _TS_LIBRARY_EPILOGUE() {
_GLOB(_TS_LINT_SRCS_VALUE ${CURDIR}/**/*.(ts|tsx) EXCLUDE **/node_modules/**/*.(ts|tsx))
}
+# workspace_node_modules.tar has to be in outputs to become available for test_tool.
+# we cannot redeclare node_modules.tar (it's in $NOTS_TOOL_NODE_MODULES_BUNDLE) as output,
+# because this path is in outputs of create-node-modules command, and we can't have same path
+# as output of several graph nodes.
+# we use $MOVE_FILE as the most cheap way to get another path for a file.
TS_TEST_CMD=$TOUCH_UNIT \
&& ${cwd:BINDIR} $MOVE_FILE $NOTS_TOOL_NODE_MODULES_BUNDLE ${output:"workspace_node_modules.tar"} \
${kv;hide:"p TSTEST"} ${kv;hide:"pc magenta"}