ng-packagr / ng-packagr

Compile and package Angular libraries in Angular Package Format (APF)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data path "" must NOT have additional properties (dest)

fanbous 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:

  1. Create an Angular package with sub entries.
  2. Within the nested ng-package.json files, include a property named "dest".
  3. Attempt to build the package.
  4. 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.

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

Closing as duplicate of #2806