Skip to content

Commit 5f8155d

Browse files
alan-agius4filipesilva
authored andcommitted
fix(@angular/cli): add ng-packagr builder schema in IDE schema
1 parent d26be39 commit 5f8155d

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
},
@@ -634,6 +635,17 @@
634635
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }
635636
}
636637
}
638+
},
639+
{
640+
"type": "object",
641+
"properties": {
642+
"builder": { "const": "@angular-devkit/build-angular:ng-packagr" },
643+
"options": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" },
644+
"configurations": {
645+
"type": "object",
646+
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" }
647+
}
648+
}
637649
}
638650
]
639651
}
@@ -2132,6 +2144,29 @@
21322144
}
21332145
},
21342146
"additionalProperties": false
2147+
},
2148+
"ngPackagr": {
2149+
"description": "ng-packagr target options for Build Architect. Use to build library projects.",
2150+
"type": "object",
2151+
"properties": {
2152+
"project": {
2153+
"type": "string",
2154+
"description": "The file path for the ng-packagr configuration file, relative to the current workspace."
2155+
},
2156+
"tsConfig": {
2157+
"type": "string",
2158+
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
2159+
},
2160+
"watch": {
2161+
"type": "boolean",
2162+
"description": "Run build when files change.",
2163+
"default": false
2164+
}
2165+
},
2166+
"additionalProperties": false,
2167+
"required": [
2168+
"project"
2169+
]
21352170
}
21362171
}
21372172
},

0 commit comments

Comments
 (0)