updates package.json with test script and browser product entry point

This commit is contained in:
Rasmus Andersson 2020-10-15 13:39:23 -07:00
parent ecc956f8a2
commit 7ce2301dad

View file

@ -2,7 +2,8 @@
"name": "markdown-wasm", "name": "markdown-wasm",
"version": "1.0.0", "version": "1.0.0",
"description": "Markdown parser and html generator implemented in WebAssembly", "description": "Markdown parser and html generator implemented in WebAssembly",
"main": "dist/markdown.js", "browser": "dist/markdown.js",
"main": "dist/markdown.node.js",
"jsnext:main": "dist/markdown.es.js", "jsnext:main": "dist/markdown.es.js",
"module": "dist/markdown.es.js", "module": "dist/markdown.es.js",
"typings": "markdown.d.ts", "typings": "markdown.d.ts",
@ -26,7 +27,7 @@
"scripts": { "scripts": {
"build": "wasmc", "build": "wasmc",
"build-debug": "wasmc -g", "build-debug": "wasmc -g",
"test": "wasmc && bash test/test.sh", "test": "wasmc -quiet && bash test/test.sh >/dev/null && echo OK",
"update-web": "cp dist/markdown.js dist/markdown.wasm docs/" "update-web": "cp dist/markdown.js dist/markdown.wasm docs/"
}, },
"author": "Rasmus Andersson <https://rsms.me/>", "author": "Rasmus Andersson <https://rsms.me/>",