pulumi/sdk/nodejs/bin/pulumi-langhost-nodejs.cmd

12 lines
527 B
Batchfile

@echo off
SET REQUIRE_ROOT=%~dp0
SET REQUIRE_ROOT=%REQUIRE_ROOT:\=/%
REM We depend on a custom node build that has exposed some internal state
REM This node is downloaded and extracted via the EnsureCustomNode target
REM in the root build.proj
REM
REM NOTE: we pass a dummy argument before the actual args because the
REM langhost module expects to be invoked as `node path/to/langhost args`,
REM but we are invoking it with `-e`.
"%~dp0\..\custom_node\node.exe" -e "require('%REQUIRE_ROOT%./cmd/langhost');" dummy_argument %*