Commit Graph

158 Commits

Author SHA1 Message Date
Zoltan Kochan
4ab87844a9 feat: injecting workspace packages (#3915)
close #3510
2021-11-01 10:14:52 +08:00
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
brightwu
59a4152ceb fix: only hoist packages in the dependencies tree when partial install (#3806)
* fix: only hoist packages in the dependencies tree when partial install

* chore: update test case for sub dependencies lock

* Update packages/hoist/src/index.ts

Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>

* chore: update changeset for @pnpm/hoist

* Update tiny-buttons-call.md

Co-authored-by: wumingliang.0113 <wumingliang.0113@bytedance.com>
Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>
2021-10-02 19:11:21 +03:00
Zoltan Kochan
c7081cbb43 feat: new option - extend-node-path (#3799)
close #2890
2021-09-28 22:36:20 +03:00
Zoltan Kochan
83e23601e7 fix: don't override bins of direct deps with bins of hoisted ones (#3795)
close #3784
2021-09-26 13:43:21 +03:00
Zoltan Kochan
b7e6f4428e fix: frozen install with dir deps that have no manifest (#3793) 2021-09-25 00:14:42 +03:00
Zoltan Kochan
a1a03d1457 fix: import only the needed functions from ramda 2021-05-29 01:33:09 +03:00
Zoltan Kochan
3e3c3ff714 fix: preinstall should run after dependencies are installed (#3395) 2021-04-26 19:06:41 +03:00
Xingcan LAN
cbc1a827ca fix(headless): forward extraBinPaths to runLifecycleHookConcurrently (#3320)
This make value of PATH environment alwasy contains node_modules/.bin of
workspace root, despite whether lockfile is up to date or not.

close #2086
2021-04-08 12:09:52 +03:00
Xingcan LAN
735d2ac792 feat: new command: pnpm fetch (#3294)
Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>

close #3207
2021-04-01 21:18:02 +03:00
Zoltan Kochan
a4f0a74570 style: fix 2021-03-21 02:47:06 +02:00
Zoltan Kochan
0d68aa002e style: fix 2021-03-17 17:27:00 +02:00
Zoltan Kochan
f2c8e95e30 fix(deps): update dependency eslint-config-standard-with-typescript to v20
close #3236
2021-03-13 03:33:30 +02:00
Zoltan Kochan
3f4385b7bb fix: verify the name and version of the package in the store (#3224)
* fix: verify the name and version of the package in the store

ref #3202

* fix: autofix broken lockfile

* docs: add changesets
2021-03-08 21:22:33 +02:00
Zoltan Kochan
048c948719 fix: rename .pnp.js to .pnp.cjs (#3148)
ref #2902
2021-02-17 00:37:17 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +02:00
Zoltan Kochan
3503951d39 perf: don't use graceful-fs and mz/fs (#3129) 2021-02-09 13:44:07 +02:00
Zoltan Kochan
78470a32d3 perf: don't prune the modules directory on each install (#3124)
ref #3115
2021-02-08 02:37:31 +02:00
Zoltan Kochan
1c851f2a6b fix(headless): skip optional dep that cannot be installed (#3091)
close #3090
2021-01-22 11:30:25 +02:00
Zoltan Kochan
d5ef7958ab perf: fix a perf regression shipped in v5.13.7
Fixed a performance regression that was caused by #3032
and shipped in pnpm v5.13.7

The performance of repeat `pnpm install` execution
was in some cases significantly slower.

PR #3061
2021-01-10 14:50:34 +02:00
Zoltan Kochan
f40bc59277 feat: enable-modules-dir=false
PR #3051
2021-01-04 23:37:37 +02:00
Zoltan Kochan
e27dcf0dcc refactor(dependency-path): add depPathToFilename() 2020-12-30 12:12:08 +02:00
Zoltan Kochan
d064b77364 fix(headless): don't create broken symlinks
close #2916
PR #3032
2020-12-19 12:21:45 +02:00
Zoltan Kochan
1309703932 ci: test on Windows
close #3023
2020-12-18 23:32:37 +02:00
Zoltan Kochan
50b360ec1e feat: script-shell
close #2942
PR #2943
2020-10-21 01:16:59 +03:00
Zoltan Kochan
f591fdeeb9 feat: support Plug'n'Play
ref #2902
PR #2908
2020-10-11 13:12:02 +03:00
Zoltan Kochan
fb92e9f887 fix: bins creation of direct deps 2020-10-03 20:30:23 +03:00
Zoltan Kochan
74914c1784 feat: no symlink
This is a continuation of #1874.
Setting `symlink=false` in an `.npmrc` file will allow experimenting
with Plug'n'Play, which for now is only possible by manually
generating the `.pnp.js` file using the `@pnpm/lockfile-to-pnp` package.

This is probably a temporary setting. In the future, there will be
something like `enable-pnp` instead.

PR #2900
2020-09-28 21:46:02 +03:00
Zoltan Kochan
40a9e1f3f9 perf: create module directories before linking start
PR #2875
2020-09-19 00:54:38 +03:00
Zoltan Kochan
86cd72de33 feat(reporter): show the progress of adding pkgs to virtual store
close #2832
PR #2845
2020-09-13 12:12:01 +03:00
Zoltan Kochan
968c26470c fix: report an info log instead of a warning on binary conflicts
Yarn and npm are not printing any info in such cases,
when several dependencies try to create the same binary.
It is better if pnpm will print an info message, not a warning.

close #2823
PR  #2843
2020-09-10 11:46:59 +03:00
Zoltan Kochan
186bcbdd56 style: no unnecessary boolean literal compare 2020-08-26 03:11:26 +03:00
Zoltan Kochan
88e1eaa908 style: use no delimiters in type declarations 2020-08-26 01:42:36 +03:00
Zoltan Kochan
5322cf9b39 style: use nullish coalescing 2020-08-26 01:15:47 +03:00
Zoltan Kochan
1c8a02e996 style: use eslint instead of tslint
PR #2796
close #2300
2020-08-24 02:01:25 +03:00
Zoltan Kochan
400f419765 fix: hoisting in a workspace with no root package
close #2735
PR #2758
2020-08-09 03:22:28 +03:00
Zoltan Kochan
873f08b045 fix: pnpm i --prod --frozen-lockfile with peer deps
close #2711
PR #2717
2020-07-27 19:09:43 +03:00
Zoltan Kochan
76aaead321 fix: run --silent
close #2660
PR #2665
2020-07-05 01:40:42 +03:00
Zoltan Kochan
71a8c8ce38 feat: public-hoist-pattern
close #2628
PR #2631
2020-06-16 00:50:09 +03:00
Zoltan Kochan
cc1b43886f fix(deps): update p-limit to v3.0.1 2020-06-06 19:36:42 +03:00
Zoltan Kochan
9b1b520d99 refactor!: packageId removed from DependenciesGraphNode 2020-05-22 23:09:11 +03:00
Zoltan Kochan
bb59db642e refactor!: peripheralLocation => dir 2020-05-22 22:49:37 +03:00
Zoltan Kochan
802d145fcd feat!: remove independent-leaves=true support
PR #2571
2020-05-22 11:09:05 +03:00
Zoltan Kochan
c25cccdad7 fix: recreation of lockfile 2020-05-20 20:27:41 +03:00
Zoltan Kochan
a5febb9134 feat: add support for side-effects cache in the new content-addressable store
The new content-addressable store should support
side-effects cache.

ref #2470
PR #2562
2020-05-18 10:37:31 +03:00
Zoltan Kochan
c75a921e36 style: no trailing commas in functions 2020-05-12 19:00:16 +03:00
Zoltan Kochan
9fbb74ecb5 feat!: reduce nesting in the virtual store
PR #2546
2020-05-11 21:31:21 +03:00
Zoltan Kochan
3f73eaf0c7 refactor!: rename store to storeDir in .modules.yaml 2020-05-10 00:11:09 +03:00
Zoltan Kochan
e3990787a1 refactor: NodeModules options renamed to Modules 2020-05-09 02:33:54 +00:00
Zoltan Kochan
b6a82072ea feat!: using a content-addressable filesystem
ref #2470

BREAKING CHANGE:

New global store structure
2020-04-26 15:40:03 +03:00