0.0.3 • Published 5 years ago

tsautoref v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 years ago

tsautoref

Usage

  1. Install the executable: npm i -g tsautoref
    • For local development: npm i and npm link
  2. tsref [./path/to/monorepo]
  3. tsc -b ./path/to/monoreop/tsconfig.build.json

tsref, given a path (or failing that, the current working directory) will scan for all package.json files within that path. It will then use the name of the located packages and their dependencies (or, failing that, the dependencies derived from the ts files within them) to build tsconfig files with project references for every package located, along with a top-level tsconfig with references to all the component ones. If a root tsconfig is present, it will be used as the base for all component configs. Additionally, it will generally ignore items found within node_modules folders.