diff --git a/Readme.md b/Readme.md index c246669..70bb23b 100644 --- a/Readme.md +++ b/Readme.md @@ -20,7 +20,7 @@ ``` "start": "node --experimental-modules --experimental-wasm-modules ./dist/index.js", "build": "npm run asbuild && tsc -p ./tsconfig.json && npm run copy", -"copy": "rm -rf dist/build/ && cp -r build dist/build/", +"copy": "shx rm -rf dist/build/ && shx cp -r build dist/build/",, ``` 7. Rename index.js to loader.ts, add any missing types and export the webassembly instance to be used from other files @@ -32,4 +32,4 @@ ## To read https://docs.assemblyscript.org/quick-start -https://www.joyent.com/blog/improved-wasm-support-coming-to-node \ No newline at end of file +https://www.joyent.com/blog/improved-wasm-support-coming-to-node diff --git a/package.json b/package.json index d24bb0a..d9f56cb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "node --experimental-modules --experimental-wasm-modules ./dist/index.js", "build": "npm run asbuild && tsc -p ./tsconfig.json && npm run copy", - "copy": "rm -rf dist/build/ && cp -r build dist/build/", + "copy": "shx rm -rf dist/build/ && shx cp -r build dist/build/", "test": "echo \"Error: no test specified\" && exit 1", "asbuild:untouched": "asc assembly/index.ts -b build/untouched.wasm -t build/untouched.wat --sourceMap --validate --debug", "asbuild:optimized": "asc assembly/index.ts -b build/optimized.wasm -t build/optimized.wat --sourceMap --validate --optimize", @@ -15,10 +15,11 @@ "author": "", "license": "ISC", "dependencies": { - "typescript": "^3.7.2" + "typescript": "^3.8.3" }, "devDependencies": { - "@types/node": "^12.12.14", - "assemblyscript": "^0.8.1" + "@types/node": "^12.12.31", + "assemblyscript": "^0.9.4", + "shx": "^0.3.2" } }