Skip to content

Commit 5a9d3cf

Browse files
committed
fix(scaffold/release): build error
1 parent 7f09602 commit 5a9d3cf

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

packages/scaffold/src/core/linter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ export default class Lint extends Base {
1010
run() {
1111
// webext.cmd.lint({});
1212
}
13+
14+
exit() {}
1315
}

packages/scaffold/src/core/releaser/base.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { Context } from "../../types/index.js";
22
import { isCI } from "std-env";
33
import { globSync } from "tinyglobby";
4-
import { Base } from "../base.js";
54

6-
export abstract class ReleaseBase extends Base {
5+
export abstract class ReleaseBase {
76
isCI: boolean;
7+
ctx: Context;
88
constructor(ctx: Context) {
9-
super(ctx);
9+
this.ctx = ctx;
1010
this.isCI = isCI;
1111
}
1212

@@ -20,5 +20,7 @@ export abstract class ReleaseBase extends Base {
2020
}
2121
}
2222

23-
abstract get remote(): { owner: string; repo: string };
23+
get logger() {
24+
return this.ctx.logger;
25+
}
2426
}

packages/scaffold/src/core/releaser/bump.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { VersionBumpOptions, VersionBumpProgress } from "bumpp";
22
import type { Context } from "../../types/index.js";
33
import { ProgressEvent, versionBump } from "bumpp";
4-
import { Base } from "../base.js";
4+
import { ReleaseBase } from "./base.js";
55

6-
export default class Bump extends Base {
6+
export default class Bump extends ReleaseBase {
77
constructor(ctx: Context) {
88
super(ctx);
99
}

0 commit comments

Comments
 (0)