Skip to content

Commit

Permalink
fix(types) - update plugins configuration interface
Browse files Browse the repository at this point in the history
JSON Schema validation fails for nest-cli.json if an item in CompilerOptions.plugins[] uses the object notation.
  • Loading branch information
Rob Taylor committed Jul 20, 2021
1 parent 46b2d2c commit 14a5cd8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/configuration/configuration.ts
Expand Up @@ -20,11 +20,16 @@ interface CompilerOptions {
tsConfigPath?: string;
webpack?: boolean;
webpackConfigPath?: string;
plugins?: string[];
plugins?: string[] | PluginOptions[];
assets?: string[];
deleteOutDir?: boolean;
}

interface PluginOptions {
name: string;
options: object;
}

interface GenerateOptions {
spec?: boolean | Record<string, boolean>;
}
Expand Down

0 comments on commit 14a5cd8

Please sign in to comment.