9.9.14 • Published 3 years ago

@zero-version/tsc-link.cli v9.9.14

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

Update a TypeScript package's tsconfig.json with paths to other packages in a monorepo.

Usage

Usage: tsc-link [options]

Update a TypeScript package's tsconfig.json with paths to other packages in a monorepo.

Options:
  -d, --projectDir <dir>        The project directory (default: `process.cwd()`)
  -w, --wildcard-path <path>    wildcard path (default: "src/*")
  -f, --index-file-path <path>  index file path (default: "src/index.ts")
  -o, --option <option>         option (choices: "index-only", "wildcard-only", "both", default: "index-only")
  -p, --preserve                preserve existing path settings
  -V, --version                 output the version number
  -h, --help                    display help for command

Example

Given the following monorepo structure where project-b has a dependency on project-a:

packages/
├── project-a/
│   ├── src/
│   │   ├── ClassA.ts
│   │   ├── IInterfaceA.ts
│   │   └── index.ts
│   ├── package.json
│   └── tsconfig.json
└── project-b/
    ├── src/
    │   ├── ClassB.ts
    │   └── index.ts
    ├── package.json
    └── tsconfig.json

Running tsc-link with default options will set the paths in the tsconfig.json for project-b to the following:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "project-a": ["../project-a/src/index.ts"],
      "project-a/*": ["../project-a/src/*"]
    }
  }
}

Support ☕

Are you using a package I've developed and finding it useful? Or have you looked at one of my repositories and learnt something new? If so, please consider buying me a coffee. Thanks!

9.9.9

3 years ago

9.9.10

3 years ago

9.9.12

3 years ago

9.9.13

3 years ago

9.9.14

3 years ago

0.1.1-beta

3 years ago

0.0.0-beta

3 years ago

0.0.35-beta

3 years ago

0.0.33-beta

3 years ago

0.0.71-beta

3 years ago

0.0.36-beta

3 years ago

0.0.70-beta

3 years ago

0.0.73-beta

3 years ago

0.0.34-beta

3 years ago

0.0.29-beta

3 years ago

0.0.32-beta

3 years ago

0.0.30-beta

3 years ago

0.0.31-beta

3 years ago

0.0.28-beta

3 years ago

0.0.27-beta

3 years ago

0.0.26-beta

3 years ago

0.0.21-beta

3 years ago

0.0.24-beta

3 years ago

0.0.23-beta

3 years ago

0.0.20-beta

3 years ago

0.0.25-beta

3 years ago

0.0.22-beta

3 years ago

0.0.19-beta

3 years ago

0.0.18-beta

3 years ago

0.0.17-beta

3 years ago