From 8f5c347b82c2af1dcd4532eb8ea8e6b61763d43a Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 29 Nov 2021 12:06:27 +0100 Subject: [PATCH] chore: use @akryum/gen-changelog --- package.json | 4 ++-- scripts/update-version.mjs | 5 ----- yarn.lock | 7 +++++++ 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 scripts/update-version.mjs diff --git a/package.json b/package.json index 2939449..9e364ed 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/update-version.mjs b/scripts/update-version.mjs deleted file mode 100644 index a0ec936..0000000 --- a/scripts/update-version.mjs +++ /dev/null @@ -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' }) diff --git a/yarn.lock b/yarn.lock index 6dad9cc..fa01f0c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"