Given a nicely-formatted tsconfig.json like this: ```jsonc { "$schema": "https://raw.githubusercontent.com/complete-ts/complete/main/packages/complete-tsconfig/schemas/tsconfig-strict-schema.json", "extends": [ // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.base.json "complete-tsconfig/tsconfig.base.json", // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.bun.json "complete-tsconfig/tsconfig.bun.json", "../../../tsconfig.monorepo.json", "../tsconfig.library.json", ], } ``` The tool will output this: ```jsonc { "$schema": "https://raw.githubusercontent.com/complete-ts/complete/main/packages/complete-tsconfig/schemas/tsconfig-strict-schema.json", "extends": [ // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.base.json "complete-tsconfig/tsconfig.base.json", // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.bun.json "complete-tsconfig/tsconfig.bun.json", "../../../tsconfig.monorepo.json", "../tsconfig.library.json", ], } ``` Ideally, this tool should not mess with the file, other than the references part.
Given a nicely-formatted tsconfig.json like this:
{ "$schema": "https://raw.githubusercontent.com/complete-ts/complete/main/packages/complete-tsconfig/schemas/tsconfig-strict-schema.json", "extends": [ // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.base.json "complete-tsconfig/tsconfig.base.json", // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.bun.json "complete-tsconfig/tsconfig.bun.json", "../../../tsconfig.monorepo.json", "../tsconfig.library.json", ], }The tool will output this:
{ "$schema": "https://raw.githubusercontent.com/complete-ts/complete/main/packages/complete-tsconfig/schemas/tsconfig-strict-schema.json", "extends": [ // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.base.json "complete-tsconfig/tsconfig.base.json", // https://github.com/complete-ts/complete/blob/main/packages/complete-tsconfig/tsconfig.bun.json "complete-tsconfig/tsconfig.bun.json", "../../../tsconfig.monorepo.json", "../tsconfig.library.json", ], }Ideally, this tool should not mess with the file, other than the references part.