I am using the library ng2-permission in my project. My project is a authentication library created for generator-angular2-library...
Unfortunately the ng2-permission was publish with .ts files...
The problem is that the NPM package contains *.ts files. This seems to be due to .ts and .d.ts files existing within the same directory and causing the typescript compiler to recompile the module and then getting confused because it is outside of the rootDir.
Can you publish one version without src?
ERROR:
Error File '/opt/projeto/node_modules/angular2-permission/index.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/directives/except-permission.directive.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/directives/has-permission.directive.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/index.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/model/permission-guard.model.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/module/ng2-permission.module.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/services/permission-helper.service.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/services/permission.guard.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
Error File '/opt/projeto/node_modules/angular2-permission/src/services/permission.service.ts' is not under 'rootDir' '/opt/projeto/.tmp'. 'rootDir' is expected to contain all source files.
[19:21:35] 'ngc' errored after 7.28 s
[19:21:35] Error: ngc compilation failed
at ngc.then (/opt/projeto/gulpfile.js:59:15)
I am using the library ng2-permission in my project. My project is a authentication library created for generator-angular2-library...
Unfortunately the ng2-permission was publish with .ts files...
The problem is that the NPM package contains *.ts files. This seems to be due to .ts and .d.ts files existing within the same directory and causing the typescript compiler to recompile the module and then getting confused because it is outside of the rootDir.
Can you publish one version without src?
ERROR:
tsconfig: