Skip to content

Commit 5fdd092

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular/cli): add ng-packagr builder schema in IDE schema
(cherry picked from commit 5f8155d)
1 parent 99ea6ad commit 5fdd092

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

packages/angular/cli/lib/config/schema.json

+36-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@
492492
"@angular-devkit/build-angular:karma",
493493
"@angular-devkit/build-angular:protractor",
494494
"@angular-devkit/build-angular:server",
495-
"@angular-devkit/build-angular:tslint"
495+
"@angular-devkit/build-angular:tslint",
496+
"@angular-devkit/build-angular:ng-packagr"
496497
]
497498
}
498499
},
@@ -598,6 +599,17 @@
598599
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }
599600
}
600601
}
602+
},
603+
{
604+
"type": "object",
605+
"properties": {
606+
"builder": { "const": "@angular-devkit/build-angular:ng-packagr" },
607+
"options": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" },
608+
"configurations": {
609+
"type": "object",
610+
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" }
611+
}
612+
}
601613
}
602614
]
603615
}
@@ -2101,6 +2113,29 @@
21012113
}
21022114
},
21032115
"additionalProperties": false
2116+
},
2117+
"ngPackagr": {
2118+
"description": "ng-packagr target options for Build Architect. Use to build library projects.",
2119+
"type": "object",
2120+
"properties": {
2121+
"project": {
2122+
"type": "string",
2123+
"description": "The file path for the ng-packagr configuration file, relative to the current workspace."
2124+
},
2125+
"tsConfig": {
2126+
"type": "string",
2127+
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
2128+
},
2129+
"watch": {
2130+
"type": "boolean",
2131+
"description": "Run build when files change.",
2132+
"default": false
2133+
}
2134+
},
2135+
"additionalProperties": false,
2136+
"required": [
2137+
"project"
2138+
]
21042139
}
21052140
}
21062141
},

0 commit comments

Comments
 (0)