-
-
Notifications
You must be signed in to change notification settings - Fork 987
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
Pure store #524
Pure store #524
Conversation
cf7e41f
to
cd33ab8
Compare
Yeah... in hindsight this seems like a good idea now. |
@@ -27,21 +27,37 @@ Follow the [pnpm Twitter account](https://twitter.com/pnpmjs) for updates. | |||
|
|||
## Background | |||
|
|||
`pnpm` maintains a flat storage of all your dependencies in `node_modules/.store`. They are then symlinked wherever they're needed. | |||
`pnpm` maintains a flat storage of all your dependencies in `~/.store`. They are then symlinked wherever they're needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not ~/.pnpm/store or ~/.pnpm-store?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because hopefully we will use the same store structure as ied. Though maybe .pnpm-store
is a good idea till the specs are not finished
@@ -1,2 +1,2 @@ | |||
export const GlobalPath = '~/.pnpm' | |||
export const GlobalStorePath = GlobalPath + '/.store' | |||
export const GlobalStorePath = '~/.store' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I think usual custom conventions are more like GLOBAL_PATH = '~/.pnpm'
but thats just a preference for me :)
I thought there would be problems with long directory names but I came up with this idea of "node_modules/.resolutions" folder which is kinda the old store with the node_modules included. So flat trees can be avoided in this PR. |
a4409ab
to
0529082
Compare
BREAKING CHANGE: drop support of Node.js pre-6.3
It is not used anymore
--preserve-symlinks makes tests fail on Node.js 4
When trying to install into a node_modules created by older pnpm
From `~/.store` to `~/.pnpm-store`
oh, shi~ thats a huge pr. good job, @zkochan! |
Details here: #519
Additional notes:
Should solve: #400, #397, #315
Should allow implementing of: #508 (Offline support)