Publish the Go-based langhost in the SDK tgz's (#924)
This commit is contained in:
parent
6e5084218c
commit
0cb112b984
|
@ -28,13 +28,13 @@ function CopyPackage($pathToModule, $moduleName) {
|
|||
}
|
||||
|
||||
RunGoBuild "github.com/pulumi/pulumi"
|
||||
RunGoBuild "github.com/pulumi/pulumi/sdk/nodejs/cmd/pulumi-langhost-nodejs"
|
||||
CopyPackage "$Root\sdk\nodejs\bin" "pulumi"
|
||||
|
||||
Copy-Item "$Root\dist\sdk\nodejs\pulumi-langhost-nodejs-exec.cmd" "$PublishDir\bin"
|
||||
New-Item -ItemType Directory -Force -Path "$PublishDir\bin\node" | Out-Null
|
||||
Copy-Item "$Root\sdk\nodejs\custom_node\node.exe" "$PublishDir\bin\node"
|
||||
|
||||
|
||||
Remove-Item "$PublishDir\node_modules\pulumi\pulumi-langhost-nodejs-exec.cmd"
|
||||
Remove-Item "$PublishDir\node_modules\pulumi\pulumi-provider-pulumi-nodejs.cmd"
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ copy_package() {
|
|||
|
||||
# Build binaries
|
||||
run_go_build "${ROOT}"
|
||||
run_go_build "${ROOT}/sdk/nodejs/cmd/pulumi-langhost-nodejs"
|
||||
|
||||
# Copy over the langhost and dynamic provider
|
||||
cp ${ROOT}/sdk/nodejs/pulumi-langhost-nodejs-exec ${PUBDIR}/bin/
|
||||
|
|
Loading…
Reference in a new issue