deepkit / deepkit-framework

A new full-featured and high-performance TypeScript framework
https://deepkit.io/
MIT License
3.24k stars 124 forks source link

feat(type-compiler): inline external library imports #517

Closed marcus-sa closed 10 months ago

marcus-sa commented 12 months ago

Summary of changes

This introduces a new configuration for the type compiler in tsconfig.json.

{
  "compilerOptions": {
    // ...
  },
  "deepkitTypeCompilerOptions": {
    "reflection": true,
    "inlineExternalLibraryImports": {
      "rxjs": true, // mark all imports to be inlined
      // or
      "rxjs": ["Observable", "Subject"] // mark selected imports to be inlined
    }
  }
}

Relinquishment of Rights

Please mark following checkbox to confirm that you relinquish all rights of your changes:

codecov-commenter commented 11 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f67cf73) 83.91% compared to head (debd1d8) 77.38%.

:exclamation: Current head debd1d8 differs from pull request most recent head c926db5. Consider uploading reports for the commit c926db5 to get more accurate results

Files Patch % Lines
packages/injector/src/injector.ts 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #517 +/- ## ========================================== - Coverage 83.91% 77.38% -6.54% ========================================== Files 51 147 +96 Lines 3084 18155 +15071 Branches 667 4821 +4154 ========================================== + Hits 2588 14049 +11461 - Misses 496 4106 +3610 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.