1.1.4 • Published 11 months ago

@werk/command-tsc v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Werk TSC Command

Build using the TypeScript compiler.

npm werk

Install

npm i -D @werk/command-version

Build

werk tsc

This will run the TypeScript compiler for all build configurations found in each workspace root. Build configurations can be tsconfig.*build*.json files, or partial configurations in the workspace package.json file.

Note: A simple package.json file will also be written to each output directory, as long as it's not the workspace root. This package file contains only the type directive, set to the value which matches the TypeScript configuration (module or commonjs).

Package Config

In addition to (or instead of) tsconfig.*build*.json files, you can also add partial TypeScript build configurations to the package.json file in each workspace.

{
  "werk": {
    "tsc": {
      "config": [
        {
          "compilerOptions": {
            "target": "es2015",
            "module": "es2015",
            "moduleResolution": "node",
            "declaration": true,
            "outDir": "dist"
          }
        }
      ]
    }
  }
}

These configurations implicitly extend the tsconfig.json file in their individual workspace root, or at the workspaces root, unless they explicitly extend another configuration. The command will generate temporary tsconfig.build-*.json files for each configuration, and then delete them when the command is finished.

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago