Releases: eBayClassifiedsGroup/update-ts-references
Ignore Paths mappings for packages
You can now configure (via the config yaml) which packages shouldn't be mapped under compiler options paths. To have a path mapping could be an issue for packages that rely on exports for different environments and a fallback to index.ts isn't working.
Improve paths resolution by using the rootDir from tsconfig
What's Changed
- feat: use rootDir for paths resolution
- fix: fix for applying paths to the root tsconfig
#45
Full Changelog: 3.4.0...3.5.0
3.4.0
Support different configuration files for different usecases
3.3.0 feat: support different configuration files for different usecases (#39)
Create path mappings under compilerOptions for non-ts packages
Path mappings for packages without tsconfig will be added to the root tsconfig to leverage your IDE resolution support more (during your migration phase). Please also note that with that release the --check
option also respects compilerOptions.paths
differences but only in combination with --createPathMappings
.
Create path mappings under compilerOptions
It's now also possible to write path mappings under compilerOptions. This is beneficial in combination with your IDE to resolve usages better.
introduced --rootConfigName
You can now configure separately a different name for the tsconfig in the root directory. This is kinda a breaking change because --configName
was used before also for the tsconfig in the root. In order to archive the same behaviour you would need to adjust the cmd-line from something like
npx update-ts-references --configName tsconfig.dev.json
to
npx update-ts-references --configName tsconfig.dev.json --rootConfigName tsconfig.dev.json
Introduce update-ts-references.yaml
You can configure paths via the update-ts-references.yaml file. This is useful if your repo is having no package.json or pnp-workspace.yaml in the root folder. Additional to that it can also being used to extend the paths config next to the normal workspace setup via npm, pnpm, yarn and lerna so you can include or exclude some packages.
Create TS config files for packages
This new feature should help to setup project references in your repository by adding TS config files to your packages. For more please have a look on the Readme.md
Comments in TS-Configurations will be preserved now
We could happily removed the flag --discardComments
🎉