From 6d72b4f7fef655a8e6f9e10af31be9fe8faa38fe Mon Sep 17 00:00:00 2001 From: Aron Date: Fri, 3 May 2024 05:09:45 +0800 Subject: [PATCH] Update package.json and release.config.mjs files --- package.json | 1 + release.config.js => release.config.mjs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) rename release.config.js => release.config.mjs (59%) diff --git a/package.json b/package.json index 8512d02..4def471 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "private": true, + "type": "module", "scripts": { "install": "husky install && pnpm ls --r --filter \"./packages/*\"", "build": "cross-env NODE_OPTIONS=--max-old-space-size=16384 pnpm --filter \"./packages/*\" build", diff --git a/release.config.js b/release.config.mjs similarity index 59% rename from release.config.js rename to release.config.mjs index 931116c..9acb00d 100644 --- a/release.config.js +++ b/release.config.mjs @@ -1,9 +1,9 @@ -const { configure } = require('semantic-release-config-techor') +import { configure } from 'semantic-release-config-techor' -module.exports = configure({ +export default configure({ plugins: { '@semantic-release/exec': { verifyReleaseCmd: 'pnpm run version ${nextRelease.version}' } } -}) \ No newline at end of file +})