From 5554629ce4de1cf196459eb9e777f72085409883 Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 8 Jan 2020 14:04:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20publish=E5=87=86=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/publish/publish.js | 3 +++ package.json | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 lib/publish/publish.js diff --git a/lib/publish/publish.js b/lib/publish/publish.js new file mode 100644 index 0000000000..7506fd72bf --- /dev/null +++ b/lib/publish/publish.js @@ -0,0 +1,3 @@ +const { execSync } = require("child_process"); + +execSync(`npm publish --tag 2.0.${new Date().getTime()}`); diff --git a/package.json b/package.json index 87f32a6e84..6a7e114d9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "1.1.2", + "version": "2.0", "description": "fineui", "main": "dist/fineui.min.js", "types": "dist/lib/index.d.ts", @@ -76,7 +76,9 @@ "fake": "grunt fake-build", "test": "karma start", "analyze": "grunt analyze", - "dev": "npm-run-all --parallel grunt webpack:dev" + "dev": "npm-run-all --parallel grunt webpack:dev", + "prepublish": "npm run build", + "publish": "node ./lib/publish/publish.js" }, "repository": { "type": "git", @@ -87,6 +89,9 @@ "fineui", "finebi" ], + "publishConfig": { + "registry": "http://192.168.5.154:4873" + }, "author": "fanruan", "license": "MIT" }