nx-tsc

0.0.13 • Public • Published

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:

name type required default description
tsConfig sring true Path to tsconfig.json. Respects internal extensions.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.131latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.131
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i nx-tsc

Weekly Downloads

1

Version

0.0.13

License

MIT

Unpacked Size

28.7 kB

Total Files

23

Last publish

Collaborators

  • jacobley