File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ import { escapeRegExp } from "es-toolkit";
66import { isCI } from "std-env" ;
77import { Base } from "../base.js" ;
88import Bump from "./bump.js" ;
9- import Gitee from "./gitee.js" ;
10- import GitHub from "./github.js" ;
119
1210export default class Release extends Base {
1311 constructor ( ctx : Context ) {
@@ -60,11 +58,15 @@ export default class Release extends Base {
6058 this . ctx . release . changelog = this . getChangelog ( ) ;
6159
6260 // Publish to GitHub, Gitee
63- if ( isGitHubEnabled )
61+ if ( isGitHubEnabled ) {
62+ const { default : GitHub } = await import ( "./github.js" ) ;
6463 await new GitHub ( this . ctx ) . run ( ) ;
64+ }
6565
66- if ( isGiteeEnabled )
66+ if ( isGiteeEnabled ) {
67+ const { default : Gitee } = await import ( "./gitee.js" ) ;
6768 await new Gitee ( this . ctx ) . run ( ) ;
69+ }
6870
6971 // TODO: Publish to Zotero's official market
7072
You can’t perform that action at this time.
0 commit comments