Run a command with a virtual node_modules folder.
$ yarn pnpify run <commandName> ...
Run Angular using PnPify :
pnpify ng build
When a non-PnP-compliant project tries to access the
(for example through
readFile), PnPify intercepts those calls and
converts them into calls to the PnP API. Then, based on the result, it simulates
the existence of a virtual
node_modules folder that the underlying tool will
then consume - still unaware that the files are extracted from a virtual
run keyword can be omitted if the executed command doesn't conflict with
For more details on PnPify, please consult the dedicated page from our website: https://yarnpkg.com/advanced/pnpify.
|The directory to run the command in|