forked from fanruan/fineui
Browse Source
Merge in VISUAL/fineui from ~TREECAT/fineui:es6 to es6 * commit '7e27700d1e1999bffb871ba4bcb503b0f290ec7b': 无jira fix:删除没有用到的东西 无jira fix:按需引入也导出Decorators 无jira: 打包调整es6
7 changed files with 88 additions and 58 deletions
@ -0,0 +1,23 @@
|
||||
const { resolve } = require("path"); |
||||
const { writeFileSync } = require("fs"); |
||||
|
||||
function pad2(n) { |
||||
// always returns a string
|
||||
return (n < 10 ? "0" : "") + n; |
||||
} |
||||
const d = new Date(); |
||||
const version = |
||||
d.getFullYear() + |
||||
pad2(d.getMonth() + 1) + |
||||
pad2(d.getDate()) + |
||||
pad2(d.getHours()) + |
||||
pad2(d.getMinutes()) + |
||||
pad2(d.getSeconds()); |
||||
|
||||
const packageJSON = require("../package.json"); |
||||
const versionChars = packageJSON.version.split("."); |
||||
versionChars[versionChars.length - 1] = version; |
||||
packageJSON.version = versionChars.join("."); |
||||
packageJSON.publishConfig.registry = "https://npm.fineres.com/"; |
||||
packageJSON.name = "@fui/core"; |
||||
writeFileSync(resolve(__dirname, "../package.json"), JSON.stringify(packageJSON, null, 2)); |
Loading…
Reference in new issue