1 | /**
|
2 | * This file was automatically generated by json-schema-to-typescript.
|
3 | * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
4 | * and run json-schema-to-typescript to regenerate this file.
|
5 | */
|
6 | /**
|
7 | * JSON Schema for `ng-package.json` description file
|
8 | */
|
9 | export interface NgPackageConfig {
|
10 | $schema?: string;
|
11 | /**
|
12 | * Delete output path before build.
|
13 | */
|
14 | deleteDestPath?: boolean;
|
15 | /**
|
16 | * Destination folder where distributable binaries of the Angular library are written (default: `dist`).
|
17 | */
|
18 | dest?: string;
|
19 | /**
|
20 | * Enable this to keep the 'scripts' section in package.json. Read the NPM Blog on 'Package install scripts vulnerability' – http://blog.npmjs.org/post/141702881055/package-install-scripts-vulnerability
|
21 | */
|
22 | keepLifecycleScripts?: boolean;
|
23 | /**
|
24 | * A list of dependencies that are allowed in the 'dependencies' and 'devDependencies' section of package.json. Values in the list are regular expressions matched against npm package names.
|
25 | */
|
26 | allowedNonPeerDependencies?: string[];
|
27 | /**
|
28 | * A list of dependencies that are allowed in the 'dependencies' and 'devDependencies' section of package.json. Values in the list are regular expressions matched against npm package names.
|
29 | */
|
30 | whitelistedNonPeerDependencies?: string[];
|
31 | /**
|
32 | * A list of files which are simply copied into the package.
|
33 | */
|
34 | assets?: string[];
|
35 | /**
|
36 | * Description of the library's entry point.
|
37 | */
|
38 | lib?: {
|
39 | /**
|
40 | * Entry file to the public API (default: `src/public_api.ts`).
|
41 | */
|
42 | entryFile?: string;
|
43 | /**
|
44 | * Filename of the auto-generated flat module file (if empty, defaults to the package name as given in `package.json`).
|
45 | */
|
46 | flatModuleFile?: string;
|
47 | /**
|
48 | * A map of external dependencies and their correspondent UMD module identifiers. Map keys are TypeScript / EcmaScript module identifiers. Map values are UMD module ids. The purpose of this map is to correctly bundle an UMD module file (with `rollup`). By default, `rxjs`, `tslib` and `@angular/*` dependency symbols are supported.
|
49 | */
|
50 | umdModuleIds?: {
|
51 | [k: string]: unknown;
|
52 | };
|
53 | /**
|
54 | * Embed assets in css file using data URIs - see https://css-tricks.com/data-uris
|
55 | */
|
56 | cssUrl?: "none" | "inline";
|
57 | /**
|
58 | * Any additional paths that should be used to resolve style imports
|
59 | */
|
60 | styleIncludePaths?: string[];
|
61 | /**
|
62 | * ID for AMD module. By default, uses a value derived from the entry point's module ID (i.e., name property in package.json)
|
63 | */
|
64 | amdId?: string;
|
65 | /**
|
66 | * ID for the UMD bundle. By default, uses a value derived from the entry point's module ID (i.e., name property in package.json)
|
67 | */
|
68 | umdId?: string;
|
69 | };
|
70 | }
|