Skip to content

Commit

Permalink
fix(@angular/cli): add ng-packagr builder schema in IDE schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and filipesilva committed Mar 8, 2021
1 parent d26be39 commit 5f8155d
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion packages/angular/cli/lib/config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@
"@angular-devkit/build-angular:karma",
"@angular-devkit/build-angular:protractor",
"@angular-devkit/build-angular:server",
"@angular-devkit/build-angular:tslint"
"@angular-devkit/build-angular:tslint",
"@angular-devkit/build-angular:ng-packagr"
]
}
},
Expand Down Expand Up @@ -634,6 +635,17 @@
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }
}
}
},
{
"type": "object",
"properties": {
"builder": { "const": "@angular-devkit/build-angular:ng-packagr" },
"options": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" },
"configurations": {
"type": "object",
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/ngPackagr" }
}
}
}
]
}
Expand Down Expand Up @@ -2132,6 +2144,29 @@
}
},
"additionalProperties": false
},
"ngPackagr": {
"description": "ng-packagr target options for Build Architect. Use to build library projects.",
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "The file path for the ng-packagr configuration file, relative to the current workspace."
},
"tsConfig": {
"type": "string",
"description": "The full path for the TypeScript configuration file, relative to the current workspace."
},
"watch": {
"type": "boolean",
"description": "Run build when files change.",
"default": false
}
},
"additionalProperties": false,
"required": [
"project"
]
}
}
},
Expand Down

0 comments on commit 5f8155d

Please sign in to comment.