
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
@yarnpkg/shell
Advanced tools
@yarnpkg/shell
A JavaScript implementation of a bash-like shell (we use it in Yarn 2 to provide cross-platform scripting). This package exposes an API that abstracts both the parser and the interpreter; should you only need the parser you can check out @yarnpkg/parsers
, but you probably won't need it.
import {execute} from '@yarnpkg/shell';
process.exitCode = await execute(`ls "$1" | wc -l`, [process.cwd()]);
ls *.txt
)mv build/{index.js,index.build.js}
, echo {foo,bar}
, FOO=a,b echo {$FOO,x}
)2.3.0
yarn set version 2.3.0
yarn tag
set of commands has been ported over from Yarn Classic as yarn npm tag
.yarn info
will now print many information about your dependencies. Various options are available to tweak the output, including --json
. Plugin authors can provide their own information sections via the fetchPackageInfo
hook.yarn stage
with the -r,--reset
flag will now unstage all changes that seem related to Yarn.yarn add -h
to see an example).Terminate batch job (Y/N)?
prompts when invoking dependency binaries.The following changes only apply to the pnp
linker (which is the default install strategy):
pnpapi
module now exposes a new function called getAllLocators
allow you to access the list of all locators in the map without having to traverse the dependency tree. This method is considered a Yarn extension, so you should check for its existence if you plan to use it in your code.The following changes only apply to the node-modules
linker:
node_modules/.bin
folder as their corresponding dependencies are removed.nmHoistingLimits
has appeared. It replaces what was previously known as nohoist
in Yarn 1.node-modules
linker, and that the strictly correct behavior can only be obtained by using the default Plug'n'Play linker.$$
and $PPID
yarn constraints --fix
command will now properly persist the changes on disk.yarn unplug
command will now work when used on packages with peer dependencies.yarn stage
command will now allow to stage files when called without the -c,--commit
flag.yarnPath
setting.FAQs
Unknown package
The npm package @yarnpkg/shell receives a total of 376,882 weekly downloads. As such, @yarnpkg/shell popularity was classified as popular.
We found that @yarnpkg/shell demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.