UNPKG

3.91 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "$id": "https://github.com/ng-packagr/ng-packagr/blob/master/src/ng-package.schema.json",
4 "title": "NgPackageConfig",
5 "description": "JSON Schema for `ng-package.json` description file",
6 "type": "object",
7 "properties": {
8 "$schema": {
9 "type": "string"
10 },
11 "deleteDestPath": {
12 "description": "Delete output path before build.",
13 "type": "boolean",
14 "default": true
15 },
16 "dest": {
17 "description": "Destination folder where distributable binaries of the Angular library are written (default: `dist`).",
18 "type": "string",
19 "default": "dist"
20 },
21 "keepLifecycleScripts": {
22 "description": "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",
23 "type": "boolean",
24 "default": false
25 },
26 "allowedNonPeerDependencies": {
27 "description": "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.",
28 "type": "array",
29 "items": {
30 "type": "string"
31 },
32 "default": []
33 },
34 "whitelistedNonPeerDependencies": {
35 "x-deprecated": "Use \"allowedNonPeerDependencies\" instead.",
36 "description": "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.",
37 "type": "array",
38 "items": {
39 "type": "string"
40 }
41 },
42 "assets": {
43 "type": "array",
44 "description": "A list of files which are simply copied into the package.",
45 "items": {
46 "type": "string"
47 },
48 "default": []
49 },
50 "lib": {
51 "description": "Description of the library's entry point.",
52 "type": "object",
53 "additionalProperties": false,
54 "default": {},
55 "properties": {
56 "entryFile": {
57 "description": "Entry file to the public API (default: `src/public_api.ts`).",
58 "type": "string",
59 "default": "src/public_api.ts"
60 },
61 "flatModuleFile": {
62 "description": "Filename of the auto-generated flat module file (if empty, defaults to the package name as given in `package.json`).",
63 "type": "string"
64 },
65 "umdModuleIds": {
66 "description": "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.",
67 "type": "object",
68 "additionalProperties": true
69 },
70 "cssUrl": {
71 "description": "Embed assets in css file using data URIs - see https://css-tricks.com/data-uris",
72 "type": "string",
73 "enum": ["none", "inline"],
74 "default": "inline"
75 },
76 "styleIncludePaths": {
77 "description": "Any additional paths that should be used to resolve style imports",
78 "type": "array",
79 "items": {
80 "type": "string"
81 }
82 },
83 "amdId": {
84 "description": "ID for AMD module. By default, uses a value derived from the entry point's module ID (i.e., name property in package.json)",
85 "type": "string"
86 },
87 "umdId": {
88 "description": "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)",
89 "type": "string"
90 }
91 }
92 }
93 },
94 "required": [],
95 "additionalProperties": false
96}