chore: use @akryum/gen-changelog
This commit is contained in:
+2
-2
@@ -17,10 +17,10 @@
|
||||
"build": "lerna run build --concurrency 1 --scope \"{vue-apollo,@vue/apollo}*\"",
|
||||
"test": "lerna run test --concurrency 1",
|
||||
"lint": "eslint . --ext js,vue,ts",
|
||||
"release": "yarn run build && yarn run test && lerna publish && yarn changelog",
|
||||
"changelog": "node ./scripts/update-version.mjs && conventional-changelog -p angular -i CHANGELOG.md -s -r 2 && (git add CHANGELOG.md && git add package.json && git commit -m \"chore: changelog\" && git push || exit 0)"
|
||||
"release": "yarn run build && yarn run test && lerna publish && changelog generate"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@akryum/gen-changelog": "^0.1.1",
|
||||
"@typescript-eslint/eslint-plugin": "^4.2.0",
|
||||
"@typescript-eslint/parser": "^4.2.0",
|
||||
"@vue/eslint-config-standard": "^6.0.0",
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import fs from 'fs'
|
||||
const lernaConfig = JSON.parse(fs.readFileSync('lerna.json', { encoding: 'utf8' }))
|
||||
const pkgData = JSON.parse(fs.readFileSync('package.json', { encoding: 'utf-8' }))
|
||||
pkgData.version = lernaConfig.version
|
||||
fs.writeFileSync('package.json', JSON.stringify(pkgData, null, 2) + '\n', { encoding: 'utf-8' })
|
||||
@@ -2,6 +2,13 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@akryum/gen-changelog@^0.1.1":
|
||||
version "0.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@akryum/gen-changelog/-/gen-changelog-0.1.1.tgz#f0d907d1fe4b1e02a09777b31e6af556d5233a0c"
|
||||
integrity sha512-Z1dTp50vZ/LhcbUJu+35pnMgPeS8n4L3CQCSYW0p5fyxOKDPnGUnPJhvzfHhWgBMp1xanZi2+P8jBxvIPJ5qnQ==
|
||||
dependencies:
|
||||
conventional-changelog-cli "^2.1.1"
|
||||
|
||||
"@apollo/client@^3.2.1", "@apollo/client@^3.2.4", "@apollo/client@^3.4.0":
|
||||
version "3.5.5"
|
||||
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.5.5.tgz#ce331403ee5f099e595430890f9b510c8435c932"
|
||||
|
||||
Reference in New Issue
Block a user