Data path "" must NOT have additional properties (dest).
Rambou opened this issue · comments
Type of Issue
[x] Bug Report
[ ] Feature Request
Description
There's a bug occurring when attempting to build an Angular package using the latest version of ng-packagr (17.2.1).
How To Reproduce
To reproduce the bug:
- Create an Angular package with sub entries.
- Within the nested ng-package.json files, include a property named "dest".
- Attempt to build the package.
- Error occurs during the build process.
It seems that a schema validation error for nested sub entries has surfaced after version 17.0.3. Attached is a reproducible example.
ng-cli-app.zip
Expected Behaviour
The package should build successfully even when the "dest" property is present in ng-package.json for packages with sub entries.
Version Information
$ node_modules/.bin/ng-packagr --version
ng-packagr: 17.2.1
@angular/*: 17.2.4
typescript: 5.2.2
rxjs: 7.8.1
node: 20.0.9
npm/yarn: 10.0.3/1.22.21
@JoostK could you add the bug label?
This is expected as in the nested configuration files dest
is not a valid option.
The validation previously didn’t surface this error.
@alan-agius4 is there a specific JSON schema for sub-entries we could point to?