Ng-packagr: Subpackage not generate metadata

Created on 9 Apr 2018  Â·  4Comments  Â·  Source: ng-packagr/ng-packagr

Bug Report

Description

I generate a library with some submodules, all entry points was recognized but the metadata is still missing.

How To Reproduce

Library with submodules that some sub package.json for each module.

command line

ng-packagr -p ng-package.json

Building Angular Package
Building entry point '@PROJECT/framework'
Cleaning build directory
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc
Bundling to FESM15
'QueryList' is imported from external module '@angular/core' but never used
'Observable' is imported from external module 'rxjs' but never used
'MatButtonToggleGroup' is imported from external module '@angular/material' but never used
Bundling to FESM5
Bundling to UMD
No name was provided for external module 'rxjs' in options.globals – guessing 'rxjs'
No name was provided for external module 'ng2-charts' in options.globals – guessing 'ng2Charts'
No name was provided for external module 'ng2-charts/ng2-charts' in options.globals – guessing 'ng2Charts$1'
Minifying UMD bundle
Dropping unreachable code [0:153,0]
Declarations in unreachable code! [0:153,0]
Relocating source maps
Copying staged files
Writing package metadata
Removing scripts section in package.json as it's considered a potential security vulnerability.
Creating package .tgz
Built @PROJECT/framework
Building entry point '@PROJECT/framework/src/PROJECT-ui/cards' < thats the submodule
Cleaning build directory
Rendering Stylesheets
Rendering Templates
Compiling TypeScript sources through ngc
Bundling to FESM15
Bundling to FESM5
Bundling to UMD
Minifying UMD bundle
Relocating source maps
Copying staged files
Writing package metadata
Removing scripts section in package.json as it's considered a potential security vulnerability.
Creating package .tgz
Built @PROJECT/app-framework/src/PROJECT-ui/cards
Built Angular Package!

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr: 2.4.1

Most helpful comment

Now i get a result with some submodules but i have an other problem in transpile time.

error TS6059: File 'framework/core/utilities/strings/index.ts' is not under 'rootDir' 'framework/ui/submoduleB\avatars'. 'rootDir' is expected to contain all source files.

In my case i have framework as module with all submodules
the ui module require has core module as requirement

Who can I define it as external resource?

All 4 comments

Now i get a result with some submodules but i have an other problem in transpile time.

error TS6059: File 'framework/core/utilities/strings/index.ts' is not under 'rootDir' 'framework/ui/submoduleB\avatars'. 'rootDir' is expected to contain all source files.

In my case i have framework as module with all submodules
the ui module require has core module as requirement

Who can I define it as external resource?

any solution?

Closing as it's without a reproduction.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings