Browse Source

chore: publish准备

es6
iapyang 5 years ago
parent
commit
5554629ce4
  1. 3
      lib/publish/publish.js
  2. 9
      package.json

3
lib/publish/publish.js

@ -0,0 +1,3 @@
const { execSync } = require("child_process");
execSync(`npm publish --tag 2.0.${new Date().getTime()}`);

9
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"
}

Loading…
Cancel
Save