From 2c3f8bd7f90d6203a34cffbf4840d7de442fe17c Mon Sep 17 00:00:00 2001 From: 0xpapercut <0xpapercut@gmail.com> Date: Fri, 2 Feb 2024 01:49:31 +0100 Subject: [PATCH] Update build scripts --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e03c495..d2ed8b6 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,12 @@ "description": "Typst math typesetting for the web.", "scripts": { "scripts": "webpack --config=scripts.config.js", - "build-wasm": "cd src/core && wasm-pack build --target web --dev -d ../../core", + "build-wasm-dev": "cd src/core && wasm-pack build --target web --dev -d ../../core", + "build-wasm": "cd src/core && wasm-pack build --target web -d ../../core", "build-katex": "cd src/katex && webpack", + "build-dev": "npm run build-wasm-dev && npm run build-katex", "build": "npm run build-wasm && npm run build-katex", - "dev": "npm run build && cd test && webpack serve" + "dev": "npm run build-dev && cd test && webpack serve" }, "main": "wypst.js", "module": "wypst.js",