GithubHelp home page GithubHelp logo

pnpm-better-pack's Introduction

A CLI to extract pnpm package from workspace with local dependencies

Features

  • Hard copying the codebase without symlinks.
  • Support npm install format.
  • Exclude packages.

Usage

# pnpm
cd <workspace root>
pnpm dlx pnpm-better-pack @app/foo ./out

# npm
cd <workspace root>
npx pnpm-better-pack @app/foo ./out

Options

The command line utility has several options.

Usage: pnpm-better-pack [options] <package name> <target directory>

Extract a package from workspace with local dependencies

Arguments:
  package name          The name of the package to extract from workspace
  target directory      Target path where the package will be extracted

Options:
  -V, --version         output the version number
  --prod, -P            Packages in `devDependencies` won't be installed (default: false)
  --dev, -D             Only `devDependencies` are installed (default: false)
  --out-local <folder>  A place where workspace dependencies be located (default: "packages")
  --no-optional         `optionalDependencies` are not installed
  --exclude <items>     Comma separated package name list (default: "")
  -h, --help            display help for command

pnpm-better-pack's People

Contributors

men232 avatar

Watchers

 avatar

pnpm-better-pack's Issues

Not copying symlinks correctly

On MacOS, we're using a native node module that outputs a framework to the dist directory. When this package runs, the copy step does not appear to be be copying the symlinks over. This is causing our signing process for our Electron app to fail.

To reproduce, add an Xcode .framework to a node package and run pnpm-better-pack.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.