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

feat: move .pnpm-lock.yaml to .pnpm/ #2018

Merged
merged 1 commit into from
Sep 20, 2019
Merged

feat: move .pnpm-lock.yaml to .pnpm/ #2018

merged 1 commit into from
Sep 20, 2019

Conversation

zkochan
Copy link
Member

@zkochan zkochan commented Sep 18, 2019

BREAKING CHANGE:

node_modules/.pnpm-lock.yaml => node_modules/.pnpm/pnpm-lock.yaml
node_modules/.modules.yaml => node_modules/.pnpm/modules.yaml


It is pretty safe to move .pnpm-lock.yaml to .pnpm/pnpm-lock.yaml.

I am not sure about .modules.yaml though. There are two issues with moving .modules.yaml:

1. previous versions of pnpm are reading this file and they can tell users that a newer version of pnpm was used to install the node_modules
2. if we decide to make the virtual store location configurable (the node_modules/.pnpm dir), .modules.yaml may be used to store its custom location (related #1636)

@zkochan
Copy link
Member Author

zkochan commented Sep 18, 2019

@aparajita @ExE-Boss I think now that there'll be a .pnpm directory under node_modules, it makes sense to move its metadat files there. What do you think?

@zkochan zkochan changed the title feat: move .pnpm-lock.yaml and .modules.yaml to .pnpm/ feat: move .pnpm-lock.yaml to .pnpm/ Sep 19, 2019
zkochan added a commit that referenced this pull request Sep 19, 2019
PR #2018

BREAKING CHANGE:

node_modules/.pnpm-lock.yaml => node_modules/.pnpm/pnpm-lock.yaml
zkochan added a commit that referenced this pull request Sep 19, 2019
PR #2018

BREAKING CHANGE:

node_modules/.pnpm-lock.yaml => node_modules/.pnpm/pnpm-lock.yaml
PR #2018

BREAKING CHANGE:

node_modules/.pnpm-lock.yaml => node_modules/.pnpm/pnpm-lock.yaml
Copy link
Member

@ExE-Boss ExE-Boss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think doing this is a good idea, but I’ll wait for @aparajita.

@zkochan zkochan merged commit 187a018 into master Sep 20, 2019
@zkochan zkochan deleted the move-meta-files branch September 20, 2019 21:10
@ExE-Boss
Copy link
Member

A thought occurs, why is pnpm’s name duplicated in the file hierarchy, shouldn’t it just be:

node_modules/.pnpm/lock.yaml

@zkochan
Copy link
Member Author

zkochan commented Sep 21, 2019

I guess

zkochan added a commit that referenced this pull request Sep 21, 2019
zkochan added a commit that referenced this pull request Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants