🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More

@computas/nx-yarn

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@computas/nx-yarn

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

1.0.0
latest
Version published
Maintainers
3
Created

@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"
      }
    }
  }
}

FAQs

Package last updated on 30 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts