12 Commits

Author SHA1 Message Date
Zoltan Kochan
4ae1a54751 fix(uninstall): uninstall should not remove version from store.json
close #350
2016-09-06 20:53:31 +03:00
Zoltan Kochan
1c92146e42 fix(bin): binstubs being linked before pkg downloaded
Errors were sometimes happening on NodeJS 4.
On NodeJS >= 6.3.0 there were no errors because chmode was
made on a proxy which was created by link_bins.

PR #345
2016-09-04 17:36:21 +03:00
Zoltan Kochan
862e359c55 fix(scripts): run post install scripts after all deps installed
pnpm currently runs the post install scripts of dependencies
immediately once their resources were downloaded and does that
asynchronously.

npm runs all the post install scripts once all the resources
were downloaded and does that sequentially.

This changes makes pnpm run the scripts similarly to how npm
runs them

close #337
2016-09-04 15:39:41 +03:00
Zoltan Kochan
7890ecc050 fix(install): main post install scripts do not execute when --ignore-scripts 2016-09-04 14:30:26 +03:00
Zoltan Kochan
f3878716c3 refactor: use @zkochan/logger to log progress 2016-09-03 23:36:21 +03:00
Zoltan Kochan
b19369407a fix: don't use ! as a delimiter in the store
! can be part of a valid npm package name. Use + as a
delimiter instead.

close #276, PR #320

BREAKING CHANGE:

Stores created with the ! delimiter are not compatible
with the new version that uses +.

Any store created by older versions of pnpm has to be
removed and reinstalled.
2016-08-28 15:33:07 +03:00
Zoltan Kochan
1f38086088 feat: support the npm fetch-* configs
Use the retry package to support all the different
retry strategy configurations that can be used with npm:

fetch-retries
fetch-retry-factor
fetch-retry-mintimeout
fetch-retry-maxtimeout

More info about the configs: https://docs.npmjs.com/misc/config#fetch-retries

close #317, PR #327
2016-08-27 21:37:00 +03:00
Zoltan Kochan
2e93a1e4c4 refactor: create a separate instance of got for each install 2016-08-27 15:01:29 +03:00
Zoltan Kochan
7baece7f54 fix(scripts): run the main and dependency pkg scripts on the same terms
Use the same set of environment variables when running the main package
scripts and the dependencies package scripts.

close #319, PR #321
2016-08-26 23:46:38 +03:00
Zoltan Kochan
9bc97e76d4 style: use more ES6 syntax
Use lebab to transpile ES5 code to ES6.
Use eslint to fix styling issues afterwards.
Run all js in strict mode to allow let/const
in Node 4.
2016-08-23 21:12:01 +03:00
Zoltan Kochan
83b1e6a34b Implement pnpm link (#302)
close #235
2016-08-19 18:33:55 +03:00
Zoltan Kochan
46bcdac831 Add a public API
No breaking changes. An additional function exposed for package dependencies installation.

close #125
2016-08-16 14:54:56 +03:00