New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@lg-tools/build

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lg-tools/build

Build config for LeafyGreen repositories

latest
npmnpm
Version
0.9.0
Version published
Weekly downloads
2.1K
70.9%
Maintainers
5
Weekly downloads
 
Created
Source

lg-tools/build

Shared build config & scripts for LeafyGreen repositories

Building all packages

We rely on turbo to handle all package builds. Run turbo run <scripts> to build packages in a monorepo.

Building individual packages

Turbo requires a script to be defined on each package that is run for each job defined in turbo. We provide 3 such scripts to easily drop into each package.

For each package you want turbo to build, add the following scripts to package.json:

  "scripts": {
    "build": "lg-build bundle",
    "tsc": "lg-build tsc",
    "docs": "lg-build docs"
  }

Internal build script

The lg command is defined in @lg-tools/cli. In order to build a package that cli depends on, we won't be able to use the lg command. To get around this, @lg-tools/build defines an internal command to be used in this special case.

For a package that cli depends on, define the following scripts in its package.json:

  "scripts": {
    "build": "lg-build bundle",
    "tsc": "lg-build tsc"
  }

FAQs

Package last updated on 17 Dec 2025

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