@nx/js:tsc
Builds using TypeScript.
Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.
Builds using TypeScript.
Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.
@nx/js:tsc can run the TypeScript Transformers by using the transformers option.
{
  "build": {
    "executor": "@nx/js:tsc",
    "options": {
      "outputPath": "dist/libs/ts-lib",
      "main": "libs/ts-lib/src/index.ts",
      "tsConfig": "libs/ts-lib/tsconfig.lib.json",
      "assets": ["libs/ts-lib/*.md"],
      "transformers": [
        "@nestjs/swagger/plugin",
        {
          "name": "@automapper/classes/transformer-plugin",
          "options": {}
        }
      ]
    }
  }
}
The name of the main entry-point file.
The output path of the generated files.
The path to the Typescript configuration file.
trueRemove previous output before build.
A list projects to be treated as external. This feature is experimental
[build]List of target names that annotate a build target for a project
Sets the rootDir for TypeScript compilation. When not defined, it uses the root of project.
falseEnable re-building when files change.
falseGenerate a lockfile (e.g. package-lock.json) that matches the workspace lockfile to ensure package versions match.
peerDependenciesdependencies, peerDependenciesWhen updateBuildableProjectDepsInPackageJson is true, this adds dependencies to either peerDependencies or dependencies.
Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17.
falseWhether to update the buildable project dependencies in the build output package.json.
Configure the project to use the '@nx/dependency-checks' ESLint rule instead (https://nx.dev/packages/eslint-plugin/documents/dependency-checks). It will be removed in v17.