tokay-wasm 0.6.12

Tokay programming language (WASM-bindings)
Documentation
SHELL = /bin/bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := build
.DELETE_ON_ERROR:
.SUFFIXES:

build: pkg

pkg: src
	wasm-pack build --out-dir=pkg --target=bundler --out-name=tokay
	# Ensure that "tokay-wasm" should be registered as just "tokay" on npm.
	# There's currently no other way to do it, see https://github.com/rustwasm/wasm-pack/issues/427
	sed -i -e 's/"name": "tokay-wasm"/"name": "tokay"/g' pkg/package.json

publish:
	wasm-pack publish

clean:
	cargo clean
	rm -rf pkg