Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/rc-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"postcss": "^8.1.7",
"postcss-load-config": "^3.1.4",
"react-router-dom": "^5.2.0",
"release-it": "^14.2.2",
"release-it": "^15.4.1",
"rehype-highlight": "^6.0.0",
"signale": "^1.4.0",
"slash2": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/rc-cli/src/commands/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join, dirname } from 'path';
import { fileURLToPath } from 'url';

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

export async function release(command: { tag?: string }) {
await releaseIt({
Expand Down
14 changes: 14 additions & 0 deletions packages/rc-cli/src/compiler/rc-cli-release-plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Plugin } from 'release-it';
import { execSync } from 'child_process';

class RcCliReleasePlugin extends Plugin {
async beforeRelease() {
// log an empty line
console.log('');

execSync('rc-cli build', { stdio: 'inherit' });
execSync('rc-cli changelog', { stdio: 'inherit' });
}
}

export default RcCliReleasePlugin;
15 changes: 0 additions & 15 deletions packages/rc-cli/src/compiler/vant-cli-release-plugin.ts

This file was deleted.

Loading