From 06af0fd3c5b0823d09d297cc50bc3c21ac2927b4 Mon Sep 17 00:00:00 2001 From: fralonra Date: Thu, 17 Jan 2019 23:16:31 +0800 Subject: [PATCH] add prepare command --- package.json | 3 ++- src/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5a863e9..6de7429 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "build": "rollup -c rollup.config.js", - "lint": "standard --fix src/*.js" + "lint": "standard --fix src/*.js", + "prepare": "npm run build" }, "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index 173f4f4..4964284 100644 --- a/src/index.js +++ b/src/index.js @@ -60,7 +60,7 @@ class Wheel { turn: 4, // 最小转动圈数 clockwise: true, // 顺时针旋转 draw: true, // 立刻绘制 - theme: 'default', // 主题 + theme: 'default' // 主题 } Object.keys(option).forEach(function (k) { self.option[k] = option[k]