opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
23 stars 0 forks source link

`@inlang/paraglide-js init` does not properly resolve `tsconfig` #99

Closed hmnd closed 1 month ago

hmnd commented 2 months ago

Description

The check for "moduleResolution": "Bundler" does not properly resolve the extends field of the project's tsconfig.json, thus reporting an error if the user already has that setting set in a tsconfig that the project extends.

Example

tsconfig.base.json

{
  "compilerOptions": {
    "moduleResolution": "Bundler"
  }
}

tsconfig.json

{
  "extends": ["./tsconfig.base.json"]
}
LorisSigrist commented 2 months ago

Thanks!

Which behavior would you prefer from the init CLI?