diff options
author | zaverden <zaverden@yandex-team.com> | 2025-02-03 20:01:29 +0300 |
---|---|---|
committer | zaverden <zaverden@yandex-team.com> | 2025-02-03 20:24:01 +0300 |
commit | f36e0f9855f034f467eb1aa31165b2142551c467 (patch) | |
tree | ae15f0ccd1d72587c6da812308ed682d84f70afe /build/plugins/nots.py | |
parent | 475a9427fed8ae61aade9a44396f62d88bd08428 (diff) | |
download | ydb-f36e0f9855f034f467eb1aa31165b2142551c467.tar.gz |
feat(conf+builder): RUN_JAVASCRIPT_AFTER_BUILD
commit_hash:4e872f1fed154384aabc8a2c510f80aafd6e537c
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r-- | build/plugins/nots.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py index 146b9c66cd..e3f8ab9f0a 100644 --- a/build/plugins/nots.py +++ b/build/plugins/nots.py @@ -985,3 +985,12 @@ def on_depends_on_mod(unit: NotsUnitType) -> None: if unit.get("_TS_TEST_DEPENDS_ON_BUILD"): for_mod_path = unit.get("TS_TEST_FOR_PATH") unit.ondepends([for_mod_path]) + + +@_with_report_configure_error +def on_run_javascript_after_build_add_js_script_as_input(unit: NotsUnitType, js_script: str) -> None: + js_script = os.path.normpath(js_script) + if js_script.startswith("node_modules/"): + return + + __set_append(unit, "_RUN_JAVASCRIPT_AFTER_BUILD_INPUTS", js_script) |