yarnplugin

package
v0.0.71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

Foundation plugin for Yarn

This plugin allows to resolve fn: paths in dependencies, leveraging the Foundation cache to fetch the files.

Implementation

This is an adaptation of the Yarn "file" plugin, with the following changes:

  • Using fn: protocol name instead of file:.
  • File paths are resolved using Foundation's module cache.

Distribution

The plugin content is embedded into the ns binary. ns tidy writes the plugin content to all Yarn roots under .yarn/plugins.

Why not an NPM package?

From the Yarn help:

Plugins cannot be downloaded from the npm registry, and aren't allowed to have
dependencies (they need to be bundled into a single file, possibly thanks to the
`@yarnpkg/builder` package).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginContent

func PluginContent() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL