Commit Graph

19 Commits

Author SHA1 Message Date
zkochan
d3c13bdcbb perf: use a separate config for specifying repeat install depth
`repeat-install-depth` is used instead of `depth` when
analyzing the dependency tree during `install`.

Ref #722
2017-04-27 21:08:48 +03:00
Zoltan Kochan
a17a8df50c Perf/fast repeat install (#730)
* perf: validating the node_modules structure to a specified depth

Ref #722

* feat: adding an update boolean property to the install API

BREAKING CHANGE:

Dependencies won't be updated when `update` is `false`.
It doesn't matter what the value of `depth` is.
`depth` is used for specifying how deep should the install
algorithm analize the dependency tree.

Ref #722

* refactor: merge new resolved deps with the previous
2017-04-27 11:04:37 +03:00
zkochan
1b0db8444e test: assign modules to variable m alsways 2017-04-26 21:51:58 +03:00
Zoltan Kochan
5d04767778 fix: peers are resolved similarly during named and general install (#726)
* fix: peers are resolved similarly during named and general install

There is no need to always run a general installation for
creating a predictable `node_modules` structure. If peers are
resolved from top dependencies, the peers are not linked to
the dependent package. The dependent package can see such peers
w/o additional manipulations

Ref #724

* fix: don't print warning when peer is resolved from top dep

* test: verify the peer warning are reported correctly
2017-04-26 14:40:45 +03:00
zkochan
9b08ac4b79 test: installing of private package from shrinkwrap
When resolution is saved in cache and the meta info is on
a different path. Correct auth info should be used for
downloading the tarball.

Close #718
2017-04-25 22:28:47 +03:00
zkochan
33ada9f947 test: when pkg meta is not on the domain on which the tarball 2017-04-25 20:09:12 +03:00
zkochan
c8036fc930 test: add auth tests
Close #432
2017-04-25 19:50:43 +03:00
zkochan
7a9f657acf fix: installation of packages from non-github repos
Close #716
2017-04-23 20:09:37 +03:00
zkochan
b36c9febc0 fix: peer deps are now resolved from preinstalled packages 2017-04-23 17:49:56 +03:00
Zoltan Kochan
2c46333107 fix: global installation always works now (#713)
* fix: global installation always works now

Close #711

* refactor: avoid using `read-pkg-up`

BREAKING CHANGE:

API should be called in the folder that has a package.json file.
pnpm won't search up for a package.json file.

Close #67

* docs(API): update

* refactor: write-pkg created dir on its own

* refactor: rename `globalDir` to `globalPrefix`

* feat: saving the global package in <global prefix>/pnpm-global
2017-04-22 23:11:25 +03:00
zkochan
b94aaff38a feat: use npm's config system
BREAKING CHANGE:

`rc` is not used to get configs.

BREAKING CHANGE:

`.pnpmrc` files are ignored

BREAKING CHANGE:

configs in json format are not supported

BREAKING CHANGE:

`--config` argument renamed to `--userconfig`

Close #696, Close #40
2017-04-20 23:01:14 +03:00
zkochan
646eafef15 fix: installation with custom dist-tag 2017-04-15 21:59:52 +03:00
zkochan
7f426d0cc7 fix: use the new npm-package-arg 2017-04-15 20:51:03 +03:00
zkochan
5c223e0540 fix: the correct spec is saved in package.json
When the package source is not the registry, the correct spec is
saved to `package.json`
2017-04-14 09:38:43 +03:00
zkochan
fa8f2e57db fix(user-agent): set the correct user-agent 2017-04-08 15:39:18 +03:00
zkochan
75d9a3da84 test(lifecycle): installation fails when lifecycle script fails 2017-04-08 14:41:53 +03:00
zkochan
76fc444219 fix(lifecycle): run preinstall before general installation
As well as other lifecycle scripts.
2017-04-08 14:35:35 +03:00
zkochan
ee1b390dfb feat: proper resolving of peer dependencies
BREAKING CHANGE: structure of node_modules changed

Close #678, PR #694
2017-04-04 23:00:48 +03:00
zkochan
8e907023fd test: divide installation tests to separate files 2017-04-02 21:46:37 +03:00