Skip to content

Documentation contradiction: Which tsconfig should lib/spec files extend in Project References? #31704

Closed
@jvskriubakken

Description

@jvskriubakken

Documentation issue

  • Reporting a typo
  • [ x] Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

https://nx.dev/technologies/typescript/recipes/switch-to-workspaces-project-references

https://nx.dev/concepts/typescript-project-linking

Additional context or description

I'm trying to get typescript project linking in place in our monorepo, and I struggle a bit.

I primary use this guide to do the migration:
https://nx.dev/technologies/typescript/recipes/switch-to-workspaces-project-references

which specifies that ts libraries tsconfig.json, tsconfig.lib.json and tsconfig.spec.json should extend the tsconfig.base.json.

However when looking at this page: https://nx.dev/concepts/typescript-project-linking
it says that tsconfig.lib.json and tsconfig.spec.json should extend the project's tsconfig.json instead.

What is correct?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions