Skip to content

Commit

Permalink
[LS] Restore WASM build
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Apr 16, 2024
1 parent 9727f63 commit b98fb80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions languageserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PATH := $(PATH):$(GOPATH)/bin
.PHONY: build
build:
go build -o ./cmd/languageserver/languageserver ./cmd/languageserver
# TODO: GOARCH=wasm GOOS=js go build -o ./cmd/languageserver/languageserver.wasm ./cmd/languageserver
GOARCH=wasm GOOS=js go build -o ./cmd/languageserver/languageserver.wasm -tags no_cgo ./cmd/languageserver

.PHONY: generate
generate:
Expand All @@ -34,7 +34,7 @@ generate:
go mod tidy

.PHONY: test
test: e2e-test generate unit-test # TODO: wasm-test
test: e2e-test generate unit-test wasm-test

.PHONY: unit-test
unit-test:
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/cadence-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"main": "dist/index.js",
"scripts": {
"build": "tsc && cd ../../languageserver && GOARCH=wasm GOOS=js go build -o ../npm-packages/cadence-language-server/dist/cadence-language-server.wasm ./cmd/languageserver && cd ../npm-packages/cadence-language-server",
"build": "tsc && cd ../../languageserver && GOARCH=wasm GOOS=js go build -o ../npm-packages/cadence-language-server/dist/cadence-language-server.wasm -tags no_cgo ./cmd/languageserver && cd ../npm-packages/cadence-language-server",
"test": "jest"
},
"license": "Apache-2.0",
Expand Down

0 comments on commit b98fb80

Please sign in to comment.