Skip to content

computas/nx-yarn

Folders and files

NameName
Last commit message
Last commit date
May 30, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 25, 2022
May 30, 2022
Jul 7, 2022
May 25, 2022
May 25, 2022
May 25, 2022
Mar 21, 2023

Repository files navigation

@computas/nx-yarn

A plugin to help make nx with yarn a pleasant experience.

Install

yarn add @computas/nx-yarn

Executors

@computas/nx-yarn:publish

Modifies the yarn workspace to point to the dist folder and runs yarn followed by yarn npm publish. Cleanup points the workspace back to what it was originally and then runs yarn again.

These steps are required because you cannot publish a folder that is not a part of your yarn workspace.

Example usage for project.json:

{
  "root": "packages/my-package",
  "sourceRoot": "packages/my-package/src",
  "projectType": "library",
  "targets": {
    "publish": {
      "executor": "@computas/nx-yarn:publish",
      "options": {
        "outputPath": "dist/packages/my-package",
        "publishTag": "alpha",
        "access": "restricted"
      }
    }
  }
}