Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@altack/nx-bundlefy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altack/nx-bundlefy

Nx executor to ensure that all the buildable dependencies of the publishable library are bundled together with the library

  • 0.15.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

nx-bundlefy

Nx executor to ensure that all the buildable dependencies of a publishable library are part of the final bundle.

Installation

npm install -D @altack/nx-bundlefy

Also make sure to install the required peer dependencies:

npm install -D @nrwl/js @nrwl/devkit @nrwl/workspace validate-npm-package-name

Configuration

To use the executor, make sure to adjust your publishable library's project.json:

{
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "libs/publishable-library/src",
  "targets": {
    "bundlefy": {
      "executor": "@altack/nx-bundlefy:run",
      "configurations": {},
      "dependsOn": ["build"],
      "outputs": ["{options.outputFile}"]
    },
    "build": {
      ...
    }
  }
}

Also make sure that buildable & publishable libraries are created using the --import-path modifier.

nx g lib my-library --buildable --import-path @org/my-library

Run the executor

This will ensure that all the buildable libraries are bundled as part of the library build

nx run publishable-library:bundlefy

Further reading

For a more detailed explanation, see this Stack Overflow question and the open issue in the Nx's repository

Keywords

FAQs

Package last updated on 10 Oct 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc