sort-tsconfig
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

Package Sidebar

Install

npm i sort-tsconfig

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

70.8 kB

Total Files

31

Last publish

Collaborators

  • tylerbutler