Skip to content

formatFiles modifies the tsconfig.base.json file even when it is unchanged #29043

Closed
@lukebjerring

Description

@lukebjerring

Current Behavior

formatFiles affects tsconfig.base.json even when the Tree has not modified it.

Expected Behavior

tsconfig.base.json should only be prettified if it's been modified in the Tree.

GitHub Repo

No response

Steps to Reproduce

export async function generator(tree: Tree) {
  formatFiles(tree);
}

Nx Report

Node           : 20.12.2
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 4.4.0

nx (global)        : 19.8.0
nx                 : 19.7.4
@nx/js             : 19.7.4
@nx/jest           : 19.7.4
@nx/linter         : 19.7.4
@nx/eslint         : 19.7.4
@nx/workspace      : 19.7.4
@nx/devkit         : 19.7.4
@nx/eslint-plugin  : 19.7.4
@nx/playwright     : 19.7.4
@nx/plugin         : 19.7.4
@nx/react          : 19.7.4
@nrwl/tao          : 19.7.4
@nx/vite           : 19.7.4
@nx/web            : 19.7.4
@nx/webpack        : 19.7.4
typescript         : 5.3.3
---------------------------------------
Registered Plugins:
@faire/executor-dependencies-project-graph-processor
---------------------------------------
Community plugins:
rxjs : 6.6.7
---------------------------------------
Local workspace plugins:
         @faire/assert-package-invariants
         @faire/settings-definitions
         @faire/docker-context-webpack
         @faire/docker-context-nextjs
         @faire/chunk-size-analyzer
         @faire/faire-cli
         @faire/attribution-check
         @faire/package-publisher
         @faire/translation-utils
         @faire/web-api-builder
         @faire/ui-tests-plugin
         @faire/github-utils
         @faire/jest-test-coverage
         @faire/nx-utils
         codegen
         @faire/eslint
         @faire/jest
         @faire/e2e-run

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions