UNPKG

2.57 kBTypeScriptView Raw
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 */
6export type AssetPattern = {
7 /**
8 * The pattern to match.
9 */
10 glob: string;
11 /**
12 * The input directory path in which to apply 'glob'. Defaults to the project root.
13 */
14 input: string;
15 /**
16 * An array of globs to ignore.
17 */
18 ignore?: string[];
19 /**
20 * Absolute path within the output.
21 */
22 output: string;
23 /**
24 * Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched.
25 */
26 followSymlinks?: boolean;
27} | string;
28/**
29 * JSON Schema for `ng-package.json` description file
30 */
31export interface NgPackageConfig {
32 $schema?: string;
33 /**
34 * Delete output path before build.
35 */
36 deleteDestPath?: boolean;
37 /**
38 * Destination folder where distributable binaries of the Angular library are written (default: `dist`).
39 */
40 dest?: string;
41 /**
42 * 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
43 */
44 keepLifecycleScripts?: boolean;
45 /**
46 * 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.
47 */
48 allowedNonPeerDependencies?: string[];
49 /**
50 * A list of files which are simply copied into the package.
51 */
52 assets?: AssetPattern[];
53 /**
54 * The stylesheet language to use for the library's inline component styles.
55 */
56 inlineStyleLanguage?: "css" | "less" | "sass" | "scss";
57 /**
58 * Description of the library's entry point.
59 */
60 lib?: {
61 /**
62 * Entry file to the public API (default: `src/public_api.ts`).
63 */
64 entryFile?: string;
65 /**
66 * Filename of the auto-generated flat module file (if empty, defaults to the package name as given in `package.json`).
67 */
68 flatModuleFile?: string;
69 /**
70 * Embed assets in css file using data URIs - see https://css-tricks.com/data-uris
71 */
72 cssUrl?: "none" | "inline";
73 /**
74 * Any additional paths that should be used to resolve style imports
75 */
76 styleIncludePaths?: string[];
77 };
78}