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
e1abc46bd1
feat: create a pnpm-debug.log file on fail
...
close #336
2016-09-03 23:57:34 +03:00
Zoltan Kochan
05d389c11e
refactor: use @zkochan/logger for logging debug info
2016-09-03 23:55:23 +03:00
Zoltan Kochan
f3878716c3
refactor: use @zkochan/logger to log progress
2016-09-03 23:36:21 +03:00
Zoltan Kochan
577b7d0315
refactor: remove debug message duplication when linking binstubs
2016-09-03 20:33:47 +03:00
Zoltan Kochan
b988837c80
fix: add missing space to debug message in run script
2016-09-03 20:27:06 +03:00
Zoltan Kochan
4882c614dd
refactor: use templates instead of %s in debug
2016-09-03 20:21:41 +03:00
Zoltan Kochan
6724c62fae
refactor: decrease the number of mkdirp in logs
...
create the .bin folder only once
create .store only once
2016-09-03 13:05:24 +03:00
Zoltan Kochan
5fdddd172e
fix(install): global install
...
Global package now has a default location.
Not sure if it was broken by some changes or it never
actually worked without explicitly setting the `global-path`
config value.
2016-09-03 11:21:10 +03:00
Zoltan Kochan
13661864a8
fix: temp dir locking
...
This was broken by commit 0c247a1f4c
The fix is just reverting the unnecessary changes that have broken
the tmp dir locking.
PR #339
2016-08-31 22:59:59 +03:00
Zoltan Kochan
bfb76a5caf
feat(install): use the spec for temp dir name
...
It is easier to debug when the directory names are
meaningful in the `.tmp` dir.
PR #335
2016-08-31 11:26:11 +03:00
Zoltan Kochan
1b82eecc67
fix: installation should not fail when peer has no version
...
Expose the version when possible, but the installation shouldn't
fail even when one of the peer dependencies have no version.
close #293 , PR #333
2016-08-31 11:02:02 +03:00
Zoltan Kochan
d89b35c6e8
feat(install): install from local packages
...
close #301 , PR #331
2016-08-31 10:55:44 +03:00
Zoltan Kochan
1f37f18ab4
fix(install): local subdependencies are installed
...
PR #332
2016-08-30 21:36:13 +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
1d4a84d7fe
refactor: remove js file that is not used
2016-08-27 15:01:29 +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
Andrey Popp
549ebe0cd3
fix(install): fix installing local scoped pkgs
...
Previously name of the archive created by `npm pack` was guessed incorrectly for
scoped packages.
Now we instead parse output from `npm pack` which prints tarball filename.
Closes #325 , PR #326
2016-08-26 23:01:32 +03:00
Kostya Esmukov
6a766a9771
fix: use the correct protocol via http_proxy
...
Pass a protocol to caw. Before this change, always HTTP was passed
even when HTTPS was needed.
fix #322
2016-08-26 11:13:05 +03:00
DaveJ
3f33cef9f5
fix(post-install): prefer current node interpreter in child scripts
...
fix #296
2016-08-25 00:38:17 +01: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
84d9aa508d
fix(install): bin files are used once they were created
...
link_bins was not returning a Promise. As a consequence the
linking step was being completed too early and the next step
was trying to use the bin files which were not yet created.
2016-08-23 17:56:00 +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
Zoltan Kochan
a45a3fbdd9
Support global install ( #288 )
...
close #283
2016-08-14 18:19:09 +03:00
Zoltan Kochan
aea94fdde0
Use cross-spawn instead of child_process in all places
...
cross-spawn has better Windows support
2016-08-13 14:56:29 +03:00
Zoltan Kochan
b38b65db49
Remove unnecessary polyfills
...
Promises and Object.assign are available in Node >= 4, so there is no need to have the bluebird and object-assign dependencies.
2016-08-11 01:08:21 +03:00
Zoltan Kochan
5a9e972ed6
Make the locking tests more reliable, cover the CLI with tests
2016-08-11 00:50:55 +03:00
Zoltan Kochan
5e34ee61e5
Covering preserved symlinks with tests
...
Test only on NodeJS >= 6.3.0
Fix preserved symlinkg on Windows
2016-08-09 19:45:35 +03:00
Zoltan Kochan
a9afddacfd
Read package.json before updating ( #284 )
...
* Read package.json before updating
Using the cached version of package.json can cause ovewriting of changes
close #280
* Skip GitHub test on CI
The GitHub test fails frequently with 403 error with no good no reason
2016-08-09 20:33:39 +03:00
Zoltan Kochan
ce8ef2c9a8
Assign dependents/dependencies to ctx before uninstall
2016-08-07 14:31:33 +03:00
Zoltan Kochan
5c2b31017d
Revert "Use cmd-shim to shim executables on Windows"
...
This reverts commit 1504d9c394849f3eb0256f703ba9fb392530c7a6.
2016-08-07 14:31:33 +03:00
Zoltan Kochan
36d62770e5
Add the possibility to use a global store
...
Start the store-path field value with ~/ in order to make the store in the HOME directory
close #214
2016-08-07 14:31:33 +03:00
Zoltan Kochan
70434c5c72
Fix default options overriding passed in ones
2016-08-07 14:31:33 +03:00
Zoltan Kochan
8675c7f641
Remove bin files when uninstalling package
2016-08-07 14:31:33 +03:00
Zoltan Kochan
2910b6746c
Change opts.store_path to opts.storePath
2016-08-07 14:31:33 +03:00
Zoltan Kochan
86054af367
Use cmd-shim to shim executables on Windows
2016-08-07 14:31:33 +03:00
Zoltan Kochan
0c247a1f4c
Lock store when running commands
...
close #82
2016-08-07 14:31:33 +03:00
Zoltan Kochan
0b1264a372
Uninstall support
...
close #144
2016-08-07 14:31:33 +03:00
Zoltan Kochan
a750d3f78f
Fix postinstall script execution, cover with unit test
2016-08-07 14:26:11 +03:00
Lukas Eipert
1aedec2d53
add support for registry-auth-token ( #278 )
...
resolves #270 #277
2016-08-07 14:09:46 +03:00
Zoltan Kochan
12e87455fc
Fix store-path property usage from the configs
...
During implementation of #166 `camelcase-keys` was used to convert configs to camelcase function options and the underscored store_path option was not updated.
2016-08-05 20:38:16 +03:00
Zoltan Kochan
eedcc846e2
Use junctions on Windows ( #269 )
...
close #6
2016-07-30 11:33:23 +03:00
Zoltan Kochan
18dc3b5cfb
Respect configuration settings from .npmrc
...
close #166
2016-07-23 04:07:46 +08:00
Zoltan Kochan
6a0f680fb9
Run install scripts via npm
...
npm is setting a bunch of environment variables that might be used by the installed packages. Therefore the package scripts have to be always executed by the npm CLI.
fix #168
2016-07-23 04:07:05 +08:00
Zoltan Kochan
d09d106af4
Add Windows CI via AppVeyor
...
close #258
2016-07-23 04:07:05 +08:00
Zoltan Kochan
32ef49b76b
Support installing from files
...
close #21
2016-07-17 13:53:44 +03:00
Zoltan Kochan
19c3c4338f
Support optional dependencies
...
close #39
2016-07-16 21:36:06 +03:00