From d5e29e6502d3f6116cd7a0cbe55bee0ecac93871 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Thu, 18 Aug 2022 21:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=97=B6=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 73ba8180b..8f1d36f3d 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@types/uuid": "^8.3.0", "assert": "^2.0.0", "chalk": "^4.1.0", + "copyfiles": "^2.4.1", "cross-env": "^7.0.2", "cross-spawn": "^6.0.5", "fs-extra": "^10.0.0", @@ -57,7 +58,9 @@ }, "scripts": { "make:domain": "ts-node ./scripts/make.ts", - "build": "tsc", + "clean": "rimraf lib/", + "copy-files": "copyfiles -u 1 src/**/*.less lib/ & copyfiles -u 1 src/**/*.wxml lib/ & copyfiles -u 1 src/**/*.wxs lib/ & copyfiles -u 1 src/miniprogram_npm/**/*.js lib/ ", + "build": "tsc && npm run copy-files", "get:area": "ts-node ./scripts/getAmapArea.ts", "clean:dir": "ts-node ./scripts/cleanDtsAndJs", "test": "ts-node ./test/test.ts", @@ -65,3 +68,4 @@ }, "main": "lib/index" } +