Skip to content

Commit b7ec22d

Browse files
committed
.
1 parent fbf7a24 commit b7ec22d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

cli/zip-addon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { join, walk, BlobWriter, ZipWriter, TextReader } from "../deps.ts";
2-
import type { LostConfig } from "../lib/config.ts";
2+
import type { AddonType, LostConfig } from "../lib/config.ts";
33
import { Paths } from "../shared/paths.ts";
44

5-
export default async function zipAddon(config: LostConfig) {
5+
export default async function zipAddon(config: LostConfig<AddonType>) {
66
const zipWriter = new ZipWriter(new BlobWriter('application/zip'));
77
const addonFilePath = join(Paths.Main, 'Builds', `${config.addonId}_${config.version}`)
88

deno.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
"build:base": "deno run --watch -A ./.addon_base/main.ts"
1414
},
1515
"compilerOptions": {
16-
"types": ["./types"],
16+
"types": [
17+
"./types/construct.d.ts",
18+
"./types/global.d.ts",
19+
"./types/cli.d.ts"
20+
],
1721
"lib": [
1822
"deno.window",
1923
"dom",

lib/plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export class Plugin<
9999
id.length > 0 &&
100100
name.length > 0
101101
) {
102+
//@ts-ignore
102103
this.addProperty(id, name, { type: Property.Group });
103104
} else if (id.length === 0) {
104105
Logger.Error('build', `Group id can't be empty.`, 'Please specify your group Id.')

0 commit comments

Comments
 (0)