Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn-Lock - Fixes yarn.lock for local directory package dependencies #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

meghfossa
Copy link

This PR aims to fix, case where yarn.lock is created by using local directory package.

For reproduction:

  1. touch package.json
{
    "name": "name",
    "description": "description",
    "version": "0.1.0",
    "private": true,
    "author": "example",
    "license": "UNLICENSED",
    "scripts": {
      "ci:format": "prettier --check './**/*.js{,x}'"
    },
    "dependencies": {
      "custom-plugin": "file:./custom-plugin/"
  }
}
  1. Install dependencies with yarn install
  2. It should create following yarn.lock file:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"custom-plugin@file:./custom-plugin":
  version "0.0.0"

What happens currently?

When above yarn.lock file is parsed, it leads to: File.UnknownRemoteType Error.

What this PR does?

It creates new Remote type for DirectoryLocal. This allows for successful parsing.

@meghfossa
Copy link
Author

Tagging you @Profpatsch for PR review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant