Commit Graph

140 Commits

Author SHA1 Message Date
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
Zoltan Kochan
f70e817fef feat: custom modules directory
close #2471
PR #2474
2020-04-12 23:40:43 +03:00
Zoltan Kochan
0462fbc501 refactor: remove realNodeModulesDir from utils 2020-04-03 02:29:14 +03:00
Zoltan Kochan
bb5d41f337 style: add missing trailing commas and fix the linting rule 2020-01-01 19:18:25 +02:00
Zoltan Kochan
f8b927391e refactor: rename importers & workspace pkgs to projects
WsPkg=>Project
WorkspacePackage=>Project
mporterManifest=>ProjectManifest
importers=>projects
importerDir=>projectDir
LockfileImporter=>ProjectSnapshot

PR #2242
2020-01-01 18:57:14 +02:00
Zoltan Kochan
8fc6fc4ad7 refactor: rename prefix options to dir options
BREAKING CHANGE:

- @pnpm/build-modules
- @pnpm/filter-lockfile
- @pnpm/headless
- @pnpm/lifecycle
- @pnpm/modules-cleaner
- @pnpm/package-is-installable
- @pnpm/read-importers-context
- @pnpm/resolve-dependencies
- supi
2019-11-03 17:08:57 +02:00
Zoltan Kochan
ace67aa4bf refactor: remove prefix from store-controller-types 2019-11-03 14:05:51 +02:00
Zoltan Kochan
8cff292476 refactor: directory=>dir
BREAKING CHANGE:
- @pnpm/store-controller-types
2019-11-01 21:48:14 +02:00
Zoltan Kochan
4fc917ebbb feat: rename lockfile-directory to lockfile-dir
ref #2088
PR #2120
2019-10-27 16:18:00 +02:00
Zoltan Kochan
76c737d70b feat: rename store config to store-dir
BREAKING CHANGE:
- @pnpm/config
- @pnpm/default-reporter
- @pnpm/default-resolver
- @pnpm/headless
- @pnpm/npm-resolver
- @pnpm/package-requester
- @pnpm/package-store
- supi

PR #2118
ref #2088
2019-10-27 13:18:24 +02:00
Zoltan Kochan
d67575a0f2 refactor(modules-cleaner): lockfileDirectories=>lockfileDir
ref #2088
2019-10-23 23:01:57 +03:00
Zoltan Kochan
742a6b71c4 fix: virtual-store-dir with not shared lockfile 2019-10-20 16:52:54 +03:00
Zoltan Kochan
35a702c6e0 feat: configurable virtual store directory
New config setting: virtual-store-dir

Breaking changes in: @pnpm/lockfile-file, @pnpm/constants

close  #2078
PR #2091
2019-10-19 03:18:41 +03:00
Zoltan Kochan
7e0563e3b4 refactor: use optional chaining 2019-10-14 21:44:54 +03:00
Zoltan Kochan
05c22a0413 refactor: packageJson=>manifest 2019-10-06 01:03:17 +03:00
Zoltan Kochan
59759f7c6f feat: new matching pattern
BREAKING CHANGE:

new wildcard matcher used

close #2048
PR #2052
2019-10-05 20:54:07 +03:00
Zoltan Kochan
fc0fe15938 refactor: rawNpmConfig=>rawConfig 2019-10-04 01:29:26 +03:00
Zoltan Kochan
202f0eee8b feat: only local configs or flags can cause a fatal error
As of pnpm v3, pnpm fails if the configs that were used when creating node_modules differ from the present ones. For instance, if independent-leaves is set to false globally but installation was done using pnpm install --independent-leaves. Running pnpm add foo will fail. Only pnpm add foo --independent-leaves will work

These changes are making this less strict. If node_modues was created using some configs, installation will only fail if the present configs are set locally (or via CLI flags) and they have incompatible values.

So if pnpm install --independent-leaves was used, then pnpm add foo will work. But pnpm add foo --no-independent-leaves will fail.

PR #2034
2019-09-28 22:14:52 +03:00
Zoltan Kochan
b456a26f01 refactor: rename fields in fetch response
BREAKING CHANGE: @pnpm/package-requester

PR #2011
2019-09-15 01:04:05 +03:00