mirror of https://github.com/abpframework/abp.git
1 changed files with 9 additions and 2 deletions
@ -1,3 +1,10 @@ |
|||
const fse = require("fs-extra"); |
|||
const fse = require('fs-extra'); |
|||
|
|||
console.log(fse.readJSONSync("package.json").version); |
|||
const commonProps = fse.readFileSync('../common.props').toString(); |
|||
|
|||
const versionTag = '<Version>'; |
|||
const versionEndTag = '</Version>'; |
|||
const first = commonProps.indexOf(versionTag) + versionTag.length; |
|||
const last = commonProps.indexOf(versionEndTag); |
|||
|
|||
console.log(commonProps.substring(first, last)); |
|||
|
|||
Loading…
Reference in new issue