Commit Graph

40 Commits

Author SHA1 Message Date
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
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
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
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
5c2b31017d Revert "Use cmd-shim to shim executables on Windows"
This reverts commit 1504d9c394849f3eb0256f703ba9fb392530c7a6.
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
86054af367 Use cmd-shim to shim executables on Windows 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
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
Rico Sta. Cruz
b03002da5c Merge pull request #245 from zkochan/issue244
Preserve symlinks on Node.js >=v6.3.0
2016-07-12 11:39:55 +08:00
Rico Sta. Cruz
bbc96b1f8e Merge pull request #243 from zkochan/issue242
Always link package bins
2016-07-12 11:35:02 +08:00
Zoltan Kochan
a33869e441 create command and sh files on windows to link bin files 2016-07-11 23:28:12 +03:00
Zoltan Kochan
7e12f30188 Preserve symlinks on Node.js>=v6.3.0
close #244
2016-07-10 18:40:45 +03:00
Zoltan Kochan
4dc308873f Always link package bins
Link package bins to node_modules/.bin even if the packages were cached

close #242
2016-07-09 16:47:49 +03:00
Zoltan Kochan
7e4a13e021 Fix issue with installing nested scoped packages
close #219
2016-07-06 23:19:08 +03:00
Rico Sta. Cruz
528c102980 Fix bundle deps 2016-02-12 06:42:49 +08:00
Rico Sta. Cruz
3bcdcb1489 Fix promise 2016-02-05 03:32:01 +08:00
Rico Sta. Cruz
0afe27aed0 Refactor isAvailable() 2016-02-05 03:32:01 +08:00
Rico Sta. Cruz
a0ff75dcd3 Store fs utilities in lib/fs 2016-02-02 01:23:22 +08:00
Rico Sta. Cruz
5107ea7f65 Fix peer symlinking 2016-02-01 02:11:36 +08:00
Rico Sta. Cruz
a0a698a104 Implement flattening 2016-02-01 01:53:15 +08:00
Rico Sta. Cruz
3599a65e75 Fix errors when package.json is invalid 2016-01-31 02:04:09 +08:00
Rico Sta. Cruz
92e5cb9b0b Fix binstubs for bundled dependencies 2016-01-31 01:52:21 +08:00
Rico Sta. Cruz
b4c116285d Increase compatibility with npm ls 2016-01-31 01:36:39 +08:00
Rico Sta. Cruz
311b933175 Make --debug logging a little less verbose 2016-01-30 22:31:51 +08:00
Rico Sta. Cruz
ca9a118018 Update node-gyp implementation to mirror npm's 2016-01-30 05:59:46 +08:00
Rico Sta. Cruz
9d6581e6d3 Only support node-gyp when scripts.install isn't available 2016-01-30 05:29:15 +08:00
Rico Sta. Cruz
c9789cf5ee Add node-gyp support 2016-01-30 05:24:26 +08:00
Rico Sta. Cruz
ec0e365fa9 Add tests for lifecycle hooks 2016-01-30 04:45:11 +08:00
Rico Sta. Cruz
550080f778 Support lifecycle hooks 2016-01-30 04:42:55 +08:00
Rico Sta. Cruz
91b6f8d6e2 Link bundled deps 2016-01-30 02:31:12 +08:00
Rico Sta. Cruz
b6b2b28b93 Fix link_bins to be more versatile 2016-01-30 02:31:00 +08:00
Rico Sta. Cruz
a851388eaa Move store to .pnpm/store 2016-01-29 08:06:03 +08:00
Rico Sta. Cruz
320d5ab421 Clean up arrow parens 2016-01-28 23:41:10 +08:00
Rico Sta. Cruz
5cedc4089f Refactor linkBins() 2016-01-28 22:05:39 +08:00