0.1.0 • Published 5 months ago

nx-tsc v0.1.0

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

nx-tsc

Nx plugin for transpiling typescript files.

npm package License

Contents

Introduction

Running the default @nx/tsc plugin can result in issues if your config setup does not perfectly match what is expected.

This plugin is a light wrapper around native typescript's tsc command for type checking, and swc for actual file output.

Usage

Include it as a target in your project.json.

Has a peer dependency on typescript so make sure that is installed as well. This package is generally tested with the latest version.

{
  "name": "my-package",
  "targets": {
    "tsc": {
      "executor": "nx-tsc:build",
      "options": { "tsConfig": "{projectRoot}/tsconfig.json" }
    },
  }
}

This script will load from the specified tsconfig.json, and specified rootDir. It will output to the outDir.

It is highly recommended to take advantage to Nx's inputs and outputs to take advantage of task caching.

API

build

Builds the typescript files in local project, outputting .js files and

Options:

nametyperequireddefaultdescription
tsConfigsringtruePath to tsconfig.json. Respects internal extensions.
0.0.12

8 months ago

0.0.13

8 months ago

0.0.14

6 months ago

0.1.0

5 months ago

0.0.15

6 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

10 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago