Skip to content

Incorrectly deletes newlines #55

@Zamiell

Description

@Zamiell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions