Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ts-morph): use .d.ts files for ts-morph discovery #616

Merged
merged 1 commit into from Jun 21, 2020
Merged

Conversation

B4nan
Copy link
Member

@B4nan B4nan commented Jun 21, 2020

This allows to analyse .d.ts files instead of the actual entity source files. Also
instead of analysing the whole project based on tsconfig.json, we now use the list
of paths to actual entities (we know them from the decorators), changing the extension
from .js to .d.ts.

BREAKING CHANGE:
Removed discovery.tsConfigPath option as it is no longer needed, it was used only
for TsMorphMetadataProvider, when the entitiesDirsTs were not explicitly provided.
In v4, this is no longer needed, as ts-morph discovery will use d.ts files instead,
that should be located next to the compiled entities.

This allows to analyse `.d.ts` files instead of the actual entity source files. Also
instead of analysing the whole project based on `tsconfig.json`, we now use the list
of paths to actual entities (we know them from the decorators), changing the extension
from `.js` to `.d.ts`.

BREAKING CHANGE:
Removed `discovery.tsConfigPath` option as it is no longer needed, it was used only
for `TsMorphMetadataProvider`, when the `entitiesDirsTs` were not explicitly provided.
In v4, this is no longer needed, as ts-morph discovery will use `d.ts` files instead,
that should be located next to the compiled entities.
@B4nan B4nan mentioned this pull request Jun 21, 2020
46 tasks
@B4nan B4nan merged commit 765019f into dev Jun 21, 2020
@B4nan B4nan deleted the ts-morph-dts branch June 21, 2020 16:34
B4nan added a commit that referenced this pull request Aug 2, 2020
This allows to analyse `.d.ts` files instead of the actual entity source files. Also
instead of analysing the whole project based on `tsconfig.json`, we now use the list
of paths to actual entities (we know them from the decorators), changing the extension
from `.js` to `.d.ts`.

BREAKING CHANGE:
Removed `discovery.tsConfigPath` option as it is no longer needed, it was used only
for `TsMorphMetadataProvider`, when the `entitiesDirsTs` were not explicitly provided.
In v4, this is no longer needed, as ts-morph discovery will use `d.ts` files instead,
that should be located next to the compiled entities.
B4nan added a commit that referenced this pull request Aug 9, 2020
This allows to analyse `.d.ts` files instead of the actual entity source files. Also
instead of analysing the whole project based on `tsconfig.json`, we now use the list
of paths to actual entities (we know them from the decorators), changing the extension
from `.js` to `.d.ts`.

BREAKING CHANGE:
Removed `discovery.tsConfigPath` option as it is no longer needed, it was used only
for `TsMorphMetadataProvider`, when the `entitiesDirsTs` were not explicitly provided.
In v4, this is no longer needed, as ts-morph discovery will use `d.ts` files instead,
that should be located next to the compiled entities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant