From 010a576b2dfa34bafd11e33182f96a6d42461d25 Mon Sep 17 00:00:00 2001 From: William Killerud Date: Fri, 27 Sep 2024 15:12:19 +0200 Subject: [PATCH] chore: use shared semrel config --- package.json | 99 +++++++++++++++++++++++----------------------- release.config.cjs | 27 ------------- release.config.js | 3 ++ 3 files changed, 52 insertions(+), 77 deletions(-) delete mode 100644 release.config.cjs create mode 100644 release.config.js diff --git a/package.json b/package.json index aff35e6..e364a3d 100644 --- a/package.json +++ b/package.json @@ -1,52 +1,51 @@ { - "name": "@podium/hapi-podlet", - "version": "4.0.7", - "type": "module", - "description": "Hapi plugin for Podium Podlet", - "main": "lib/podlet-plugin.js", - "license": "MIT", - "keywords": [ - "micro services", - "micro frontend", - "components", - "podium", - "hapi" - ], - "repository": { - "type": "git", - "url": "git@github.com:podium-lib/hapi-podlet.git" - }, - "bugs": { - "url": "https://github.com/podium-lib/issues" - }, - "homepage": "https://podium-lib.io/", - "files": [ - "package.json", - "CHANGELOG.md", - "README.md", - "LICENSE", - "lib" - ], - "scripts": { - "test": "tap --disable-coverage --allow-empty-coverage", - "test:coverage": "tap", - "lint": "eslint .", - "lint:fix": "eslint . --fix" - }, - "author": "Trygve Lie", - "dependencies": { - "@podium/utils": "5.3.1" - }, - "devDependencies": { - "@hapi/hapi": "21.3.10", - "@podium/eslint-config": "1.0.0", - "@podium/podlet": "5.1.12", - "@podium/test-utils": "2.5.2", - "@semantic-release/changelog": "6.0.3", - "@semantic-release/git": "10.0.1", - "eslint": "9.11.1", - "prettier": "3.3.3", - "semantic-release": "22.0.12", - "tap": "18.8.0" - } + "name": "@podium/hapi-podlet", + "version": "4.0.7", + "type": "module", + "description": "Hapi plugin for Podium Podlet", + "main": "lib/podlet-plugin.js", + "license": "MIT", + "keywords": [ + "micro services", + "micro frontend", + "components", + "podium", + "hapi" + ], + "repository": { + "type": "git", + "url": "git@github.com:podium-lib/hapi-podlet.git" + }, + "bugs": { + "url": "https://github.com/podium-lib/issues" + }, + "homepage": "https://podium-lib.io/", + "files": [ + "package.json", + "CHANGELOG.md", + "README.md", + "LICENSE", + "lib" + ], + "scripts": { + "test": "tap --disable-coverage --allow-empty-coverage", + "test:coverage": "tap", + "lint": "eslint .", + "lint:fix": "eslint . --fix" + }, + "author": "Trygve Lie", + "dependencies": { + "@podium/utils": "5.3.1" + }, + "devDependencies": { + "@hapi/hapi": "21.3.10", + "@podium/eslint-config": "1.0.0", + "@podium/podlet": "5.1.12", + "@podium/semantic-release-config": "2.0.0", + "@podium/test-utils": "2.5.2", + "eslint": "9.11.1", + "prettier": "3.3.3", + "semantic-release": "24.1.1", + "tap": "18.8.0" + } } diff --git a/release.config.cjs b/release.config.cjs deleted file mode 100644 index c6a260d..0000000 --- a/release.config.cjs +++ /dev/null @@ -1,27 +0,0 @@ -module.exports = { - plugins: [ - '@semantic-release/commit-analyzer', - '@semantic-release/release-notes-generator', - '@semantic-release/changelog', - [ - '@semantic-release/npm', - { - tarballDir: 'release', - }, - ], - [ - '@semantic-release/github', - { - assets: 'release/*.tgz', - }, - ], - '@semantic-release/git', - ], - preset: 'angular', - branches: [ - { name: 'main' }, - { name: 'alpha', prerelease: true }, - { name: 'beta', prerelease: true }, - { name: 'next', prerelease: true }, - ], -}; diff --git a/release.config.js b/release.config.js new file mode 100644 index 0000000..edd8cfb --- /dev/null +++ b/release.config.js @@ -0,0 +1,3 @@ +export default { + extends: '@podium/semantic-release-config', +};