Skip to content

Commit f4d7f00

Browse files
committed
plugin.ts: Fixes for @wbobeirne
1 parent ef97100 commit f4d7f00

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/node/plugin.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ export class PluginAPI {
150150
if (!packageJSON.version) {
151151
throw new Error("plugin missing version")
152152
}
153-
if (!packageJSON.description) {
154-
throw new Error("plugin missing description")
155-
}
156153

157154
const p = {
158155
name: packageJSON.name,
@@ -181,7 +178,7 @@ interface PackageJSON {
181178
}
182179
}
183180

184-
function q(s: string): string {
181+
function q(s: string | undefined): string {
185182
if (s === undefined) {
186183
s = "undefined"
187184
}

0 commit comments

Comments
 (0)