Commit Graph

20 Commits

Author SHA1 Message Date
zkochan
59cd8cbede fix: packages can require themself
node_modules structure changed
2017-01-11 08:51:01 +02:00
zkochan
6c946ee2cf feat: support preserve-symlinks config
preserve-symlinks is true by default on Node versions that
support it
2017-01-09 17:46:20 +02:00
Zoltan Kochan
38837b131c Pure store (#524)
* feat: drop Node.js <= 6.3 support

BREAKING CHANGE:

drop support of Node.js pre-6.3

* refactor: remove the redundant subfolder in store

* refactor: rename linkPeers

* refactor: remove not used code

* feat: link each file separately

* refactor: change store structure

* refactor: resolve github dependencies to commits

* chore(package.json): pass --preserve-symlinks to ts-node

* test: temporarily skip failing tests

* refactor(git): use more human-friendly Git IDs

* refactor: resolve

* refactor: divide resolution and fetching

* refactor(fetch): better variable naming

* feat: add shrinkwrap.yaml

* test(shrinkwrap): shrinkwrap locks dependencies

* style: fix typing issue

* fix(fetch): properly link node_modules on repeat install

* refactor: comment skipped test with single-line comments

* fix: circular symlinks are avoided

* refactor(fetch): remove redundant type properties

* test: additional check for circular symlinks

* feat: saving dependency graph in node_modules instead of in store

BREAKING CHANGE:

Dependency graph moved out from store

* feat: add store.yaml with info about dependent projects

* refactor: remove name from FetchedPackage

* refactor: change the location of packages from npm in store

BREAKING CHANGE:

Structure of store changed

* refactor: change global store path

BREAKING CHANGE:

Move the store path out of ~/.pnpm

* refactor: remove justFetched from FetchedPackage

* refactor(install): use functional programming to filter deps

* refactor(install): remove redundant node_modules creation

* fix(install): installation of concurent circular dependencies

* feat: copy not link some packages

Packages that have install lifecycle events are copied not linked.

* fix(store.yaml): don't duplicate records

* perf: resolve a package only once per project

* test: concurrent installation of the same dependency

* fix: packages are not removed in the middle of fetch

* fix: dependencies are linked only once

* fix: make linking work on Windows

* fix: installing local dependencies on Windows

* fix: don't reinstall dependencies of the same package

* fix(bin): the run function always returns a Promise

* fix: use hard links to link files to the .resolutions folder

* fix: peers are linked into the correct location

* fix: bundled dependencies are not reinstalled

* refactor: remove unsymlink

It is not used anymore

* chore(CI): test on Node.js v4 as well

* refactor: use UPPER_CASE for constants

* chore(package): return support of Node.js v4

* fix: make pnpm Node.js 4 compatible again

* test: don't run tsnode with --preserve-symlinks

--preserve-symlinks makes tests fail on Node.js 4

* fix(bin): don't use --preserve-symlinks on Node pre-6.3

* test: use global stores in tests

* fix: flat-tree installation should not work on Node 4

* fix: show warning

When trying to install into a node_modules created by older pnpm

* refactor: change the global store location

From `~/.store` to `~/.pnpm-store`

* docs: note that some of the info is out of date

* test: fix typing error

* test: fix frequently failing test
2017-01-08 15:47:50 +02:00
zkochan
36d54b0d46 fix: remove from store the failed optional dependency 2016-11-07 20:38:56 +02:00
zkochan
f4cf6806cf refactor: remove failed optional dependency before it is in store 2016-11-07 20:38:56 +02:00
zkochan
227341ef36 feat: add packages checking
Check packages for OS/Node compatibility.

Close #448
2016-11-07 20:38:56 +02:00
zkochan
2734843172 fix: bin file not found error 2016-11-05 21:45:05 +02:00
zkochan
11db3b876d fix: reinstall broken packages in the store
Close #462
2016-11-04 02:47:41 +02:00
zkochan
420a496b82 style: fixing issues found during CR 2016-11-03 21:18:05 +02:00
zkochan
2b6f08993d refactor: revert not needed object shallow copying 2016-11-03 15:32:12 +02:00
zkochan
e0a5552eea fix: linking to parent package only once it is fetched 2016-11-03 14:29:02 +02:00
zkochan
120ae5e516 perf(install): start fetching of subdeps sooner
Close #453
2016-11-03 14:29:02 +02:00
zkochan
6548e8a771 refactor: move install dependencies to separate function 2016-11-03 14:29:02 +02:00
zkochan
4938812ff6 refactor: remove the firstFetch hack 2016-11-03 14:29:02 +02:00
zkochan
a3939e0414 perf: fix performance issue caused by refactoring 2016-10-31 22:22:44 +02:00
zkochan
a840c662e4 feat(update): implement
Close #300
2016-10-31 19:50:55 +02:00
Zoltan Kochan
b6327c9812 fix: skip optional dependencies 2016-10-31 14:56:47 +02:00
zkochan
0f9ff595e0 refactor: pass to fetch() only what is needed 2016-10-29 16:26:00 +03:00
zkochan
0632510b61 refactor: better naming
Rename the install method to fetch. Move a method out of installMultiple
and call it install instead.
2016-10-29 15:04:22 +03:00
zkochan
46cd1e6bf3 refactor: move installMultiple to install/ 2016-10-29 15:04:22 +03:00