Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Publish compiled JavaScript package
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed Jan 3, 2022
1 parent 994c348 commit edd4280
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ bin/pulumi-sdkgen-docker-buildkit: cmd/pulumi-sdkgen-docker-buildkit/*.go
sdk: bin/pulumi-sdkgen-docker-buildkit
rm -rf sdk
bin/pulumi-sdkgen-docker-buildkit $(VERSION)
cp README.md sdk/python/
cp README.md sdk/nodejs/
cd sdk/python/ && \
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" -e "s/\$${PLUGIN_VERSION}/$(VERSION)/g" setup.py && \
rm setup.py.bak
cd sdk/nodejs/ && \
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" package.json && \
rm package.json.bak
npm install && \
npm run build && \
sed -e "s/\$${VERSION}/$(VERSION)/g" package.json > bin/package.json
mv sdk/nodejs sdk/nodejs.tmp
mv sdk/nodejs.tmp/bin sdk/nodejs
rm -r sdk/nodejs.tmp
cp README.md sdk/python/
cp README.md sdk/nodejs/

.PHONY: install
install:
Expand Down

0 comments on commit edd4280

Please sign in to comment.