npm pnpm 6.25.0-3
v6.25.0-3

latest releases: 9.1.1, 9.1.0, 8.15.8...
2 years ago

Minor Changes

  • New installation mode added that creates a flat node_modules directory without the usage of symlinks. This is similar to the one created by npm and Yarn Classic.

    To use this new installation mode, set the node-linker setting to hoisted. These are the supported values of node-linker:

    • isolated - the default value.
    • hoisted - flat node_modules without symlinks.
    • pnp - no node_modules. Yarn's Plug'n'Play managed by pnpm.

    Related issue: #4073

  • Add support for token helper, a command line tool to obtain a token.

    A token helper is an executable, set in the user's .npmrc which outputs an auth token. This can be used in situations where the authToken is not a constant value, but is something that refreshes regularly, where a script or other tool can use an existing refresh token to obtain a new access token.

    The configuration for the path to the helper must be an absolute path, with no arguments. In order to be secure, it is only permitted to set this value in the user .npmrc, otherwise a project could place a value in a project local .npmrc and run arbitrary executables.

    Usage example:

    ; Setting a token helper for the default registry
    tokenHelper=/home/ivan/token-generator
    
    ; Setting a token helper for the specified registry
    //registry.corp.com:tokenHelper=/home/ivan/token-generator

    Related PRs:

  • New CLI option: --ignore-workspace. When used, pnpm ignores any workspace configuration found in the current or parent directories.

Don't miss a new pnpm release

NewReleases is sending notifications on new releases.