aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/nots.py
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2023-09-07 11:21:16 +0300
committerzaverden <zaverden@yandex-team.com>2023-09-07 12:03:28 +0300
commit447ddf2e497321c9b1236eb5fc733a2d0955d49e (patch)
treee3b66635caf03b3ac6a7a0459ee3e4362cd6686e /build/plugins/nots.py
parent7007b60c42dfde3bb60eeef4f3114e8a91e9b711 (diff)
downloadydb-447ddf2e497321c9b1236eb5fc733a2d0955d49e.tar.gz
feat(TS_PACKAGE): implement modules
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r--build/plugins/nots.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 0f7350c64b..740b042376 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -524,3 +524,16 @@ def on_ts_files(unit, *files):
if all_cmds:
new_cmds.insert(0, all_cmds)
unit.set(["_TS_FILES_COPY_CMD", " && ".join(new_cmds)])
+
+
+@_with_report_configure_error
+def on_set_copy_node_modules_bundle_cmd(unit):
+ pm = _create_pm(unit)
+ pj = pm.load_package_json_from_dir(pm.sources_path)
+ if pj.has_dependencies():
+ unit.set(
+ [
+ "_COPY_NODE_MODULES_BUNDLE_CMD",
+ '$COPY_CMD ${input:"node_modules.tar"} ${output:"workspace_node_modules.tar"}',
+ ]
+ )