From f52603619e3dc92e9e07329f9bbcf4de2ebf8a74 Mon Sep 17 00:00:00 2001 From: hhh <1340545944@qq.com> Date: Sun, 10 Feb 2019 21:26:54 +0800 Subject: [PATCH] improve the prebuild script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bfd592f..9a2fad6 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "module": "dist/hyper-ui.core.min.js", "types": "index.d.ts", "scripts": { - "prebuild": "rm -rf dist typings raw", + "prebuild": "rm -rf dist typings raw & exit 0", "build": "tsc && rollup -c", "postbuild": "terser dist/hyper-ui.core.js --config-file terser.json --module -o dist/hyper-ui.core.min.js && terser dist/hyper-ui.core.umd.js --config-file terser.json -o dist/hyper-ui.core.umd.min.js && node stat", "test": "cd test && tsc && echo Please open test/test.html to test it." @@ -45,4 +45,4 @@ "terser": "^3.16.1", "typescript": "^3.3.3" } -} +} \ No newline at end of file