Skip to content

Commit 1311a71

Browse files
windolepengjin
authored andcommitted
chore: 更改release-it版本 (rancui#54)
Co-authored-by: pengjin <pengjin@vcredit.com>
1 parent a783209 commit 1311a71

File tree

5 files changed

+601
-444
lines changed

5 files changed

+601
-444
lines changed

packages/rc-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"postcss": "^8.1.7",
6969
"postcss-load-config": "^3.1.4",
7070
"react-router-dom": "^5.2.0",
71-
"release-it": "^14.2.2",
71+
"release-it": "^15.4.1",
7272
"rehype-highlight": "^6.0.0",
7373
"signale": "^1.4.0",
7474
"slash2": "^2.0.0",

packages/rc-cli/src/commands/release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { join, dirname } from 'path';
44
import { fileURLToPath } from 'url';
55

66
const __dirname = dirname(fileURLToPath(import.meta.url));
7-
const PLUGIN_PATH = join(__dirname, '../compiler/vant-cli-release-plugin.js');
7+
const PLUGIN_PATH = join(__dirname, '../compiler/rc-cli-release-plugin.js');
88

99
export async function release(command: { tag?: string }) {
1010
await releaseIt({
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Plugin } from 'release-it';
2+
import { execSync } from 'child_process';
3+
4+
class RcCliReleasePlugin extends Plugin {
5+
async beforeRelease() {
6+
// log an empty line
7+
console.log('');
8+
9+
execSync('rc-cli build', { stdio: 'inherit' });
10+
execSync('rc-cli changelog', { stdio: 'inherit' });
11+
}
12+
}
13+
14+
export default RcCliReleasePlugin;

packages/rc-cli/src/compiler/vant-cli-release-plugin.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)