0.1.2 • Published 9 months ago

sort-tsconfig v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

sort-tsconfig - keep your tsconfigs clean and tidy

sort-tsconfig is a CLI app to sort tsconfig files. It also provides a simple programmatic API.

Usage

sort-tsconfig TSCONFIG

Sorts a tsconfig file in place, or check that one is sorted.

USAGE
  $ sort-tsconfig  TSCONFIG [-v | --quiet] [--write] [--config <value>]

ARGUMENTS
  TSCONFIG  Path to the tsconfig file to sort, or a glob path to select multiple tsconfigs.

FLAGS
  --write  Write the sorted contents back to the file. Without this flag, the command only checks that the file is
           sorted.

LOGGING FLAGS
  -v, --verbose  Enable verbose logging.
      --quiet    Disable all logging.

CONFIGURATION FLAGS
  --config=<value>  The path to a configuration file.

DESCRIPTION
  Sorts a tsconfig file in place, or check that one is sorted.

  By default, the command will only check if a tsconfig is sorted. Use the --write flag to write the sorted contents
  back to the file.

ALIASES
  $ sort-tsconfig sort:tsconfigs
  $ sort-tsconfig sort-tsconfigs

EXAMPLES
  Check if the tsconfig.json file in the current working directory is sorted.

    $ sort-tsconfig  .

  Sort the tsconfig.json file in the current working directory.

    $ sort-tsconfig  . --write

  Sort all tsconfig.json files under the packages directory.

    $ sort-tsconfig  'packages/**/tsconfig.json' --write

API

See sort-tsconfig.api.md.