Skip to content

Commit

Permalink
- making libraryTarget type consistent in json and typescript files
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 25, 2019
1 parent 721702f commit f04b5c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builders/browser/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { NormalizedBrowserBuilderSchema } from '@angular-devkit/build-angular';

export interface SingleSpaBuilderSchema extends NormalizedBrowserBuilderSchema {
libraryTarget: "var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "amd" | "umd" | "jsonp" | undefined;
libraryTarget: "var" | "assign" | "this" | "window" | "global" | "commonjs" | "commonjs2" | "amd" | "umd" | "jsonp" | undefined;
libraryName: string;
}

Expand Down
17 changes: 16 additions & 1 deletion src/builders/browser/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@
"description": "Library name (maps to WebpackConfig.output.library)"
},
"libraryTarget": {
"type": "string",
"enum": [
"var",
"assign",
"this",
"window",
"self",
"global",
"commonjs",
"commonjs2",
"commonjs-module",
"amd",
"amd-require",
"umd",
"umd2",
"jsonp"
],
"default": "umd",
"description": "How the library will be exposed (maps to WebpackConfig.output.targetLibrary)"
},
Expand Down

0 comments on commit f04b5c9

Please sign in to comment.