From 4d90dc730da82ba98048c7c4a86b5008f138ee18 Mon Sep 17 00:00:00 2001 From: sohsohsiying <155935827+sohsohsiying@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:59:41 +0800 Subject: [PATCH] Update package.json --- examples/simple-chat/package.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/simple-chat/package.json b/examples/simple-chat/package.json index cc1fa3cc..ae9997c3 100644 --- a/examples/simple-chat/package.json +++ b/examples/simple-chat/package.json @@ -3,10 +3,10 @@ "version": "0.1.0", "private": true, "scripts": { - "start": "cp src/gh-config.js src/app-config.js && parcel src/llm_chat.html --port 8888", - "mlc-local": "cp src/mlc-local-config.js src/app-config.js && parcel src/llm_chat.html --port 8888", - "build": "cp src/gh-config.js src/app-config.js && parcel build src/llm_chat.html --dist-dir lib --no-content-hash" - }, + "start": "node copy-config.js && parcel src/llm_chat.html --port 8888", + "mlc-local": "node copy-config.js && parcel src/llm_chat.html --port 8888", + "build": "node copy-config.js && parcel build src/llm_chat.html --dist-dir lib --no-content-hash" +}, "devDependencies": { "buffer": "^5.7.1", "parcel": "^2.8.3", @@ -18,4 +18,5 @@ "dependencies": { "@mlc-ai/web-llm": "^0.2.29" } -} \ No newline at end of file +} +