Fixes #356. Instead of downloading a node binary with our closure serialization code linked-in, this PR instead publishes the `nativeruntime.node` produced by the NodeJS SDK build as part of the SDK. This has a number of advantages. First, it is vastly more easy to develop closure.cc in this configuration. Second, we have the ability to ship different `nativeruntime.node`s side-by-side, paving the way for enabling future versions of Node. Third, we don't have to stay in the business of shipping custom builds of Node, although we do still need to ship a version of Node with minor modifications in order for Windows to still work.
8 lines
275 B
Bash
Executable file
8 lines
275 B
Bash
Executable file
#!/bin/sh
|
|
# we exploit the fact that the cwd when `pulumi-langhost-nodejs-exec` is
|
|
# run is the root of the node program we want to run and use a relative
|
|
# path here.
|
|
export NODE_PATH="$NODE_PATH:`dirname $0`/`node --version`"
|
|
node ./node_modules/@pulumi/pulumi/cmd/run $@
|
|
|