Skip to content

Commit

Permalink
refactor(concatjs): sync with internal change that exposes `rootDirsR…
Browse files Browse the repository at this point in the history
…elative` (#3517)

Tsickle now requires a `rootDirsRelative` public property on the TS host. This change
has been implemented internally but hasn't been synced upstream, making it difficult
to update to the latest `tsickle` externally.
  • Loading branch information
devversion authored Aug 3, 2022
1 parent 8e510df commit 8f2333c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/concatjs/internal/tsc_wrapped/compiler_host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class CompilerHost implements ts.CompilerHost, tsickle.TsickleHost {
* /build/work/bazel-out/local-fastbuild/bin/path/to/file
* @return the path without any rootDirs, eg. path/to/file
*/
private rootDirsRelative(fileName: string): string {
rootDirsRelative(fileName: string): string {
for (const root of this.options.rootDirs) {
if (fileName.startsWith(root)) {
// rootDirs are sorted longest-first, so short-circuit the iteration
Expand Down

0 comments on commit 8f2333c

Please sign in to comment.