Commit Graph

27 Commits

Author SHA1 Message Date
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
Zoltan Kochan
691f647137 feat: save the metadata separately from the CAFS (#3578)
ref #2574
2021-07-04 19:35:53 +03:00
Jacob Gillespie
f5ec0a96f2 feat(plugin-commands-store): add store path command (#3571)
Add a `pnpm store path` command to print the location of the pnpm store
as the CLI would resolve it. This allows the user to inspect the current
store location, as well as allows external tooling (like shell scripts)
to locate the pnpm store without needing to make assumptions about its
location or needing to load the `@pnpm/store-path` module.

This command differs from running `pnpm get store`, as `pnpm get store`
prints "undefined" in the case that no custom store path has been set,
which requires external tooling to have knowledge about where pnpm
locates its store in the default case.

close #2575
2021-07-01 16:35:16 +03:00
Zoltan Kochan
a1a03d1457 fix: import only the needed functions from ramda 2021-05-29 01:33:09 +03:00
Zoltan Kochan
91eabf8df4 feat: use .cjs extension for the CLI bundle file (#3305) 2021-04-03 15:44:31 +03:00
Yao Ding
2e2111ae7c fix: use correct path fix for integrity.json with git dependency (#3272)
* fix: use correct path fix for integrity.json with git dependency

* fix: integrity path

Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-03-24 22:51:09 +02:00
Zoltan Kochan
577e25d8de fix: emfile error on pnpm store status (#3212)
close #3185
2021-03-02 15:00:14 +02:00
Zoltan Kochan
d6d091f249 style: use es2015 imports (#3143) 2021-02-15 05:06:10 +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
7b9a7f63c5 refactor: test utils 2020-12-11 02:06:44 +02:00
Zoltan Kochan
a490288dcb test(plugins): migrate to Jest
PR #3011
ref #2858
2020-12-08 03:20:57 +02: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
Yao Ding
1adacd41ee fix: do not scan non-directories in store directory when pruning store
close #2563
PR #2644

Co-authored-by: Zoltan Kochan <zkochan@users.noreply.github.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
2020-06-21 00:38:48 +03:00
Zoltan Kochan
9fbb74ecb5 feat!: reduce nesting in the virtual store
PR #2546
2020-05-11 21:31:21 +03:00
Zoltan Kochan
da091c7114 feat!: remove store state
PR #2542
ref #594
2020-05-10 12:02:46 +03:00
Zoltan Kochan
a2297f01e6 test: fix store plugin tests 2020-05-09 23:17:36 +03:00
Zoltan Kochan
ecf2c6b7d6 feat: pruning of the content-addressable store
ref #2470
PR #2533

Co-authored-by: Aparajita Fishman <aparajita@aparajita.com>
2020-05-08 03:22:25 +03:00
Zoltan Kochan
b5f66c0f2b perf: less dirs in the virtual store directory
Reduce the number of directories in the virtual store directory.
Don't create a subdirectory for the package version. Append the
package version to the package name directory.

close #2521
PR #2531
2020-05-06 02:15:55 +03:00
Zoltan Kochan
7852deea3f perf: use a suffix for exec files in CAFS, not a dir
Instead of creating a separate subdir for executables in the content-addressable storage, use the directory where all the files are stored but suffix the executable files with `-exec`. Also suffix the package index files with `-index.json`.

ref #2521
PR #2530
2020-05-05 18:51:29 +03:00
Zoltan Kochan
9596774f2a perf: reduce directory nesting in the store
Store the package index files in the CAFS.

ref #2521
PR #2527
2020-05-04 23:36:14 +03:00
Zoltan Kochan
0635a970af test: update store version in tests 2020-04-26 15:40:03 +03: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
7e0d04ff09 chore: create updater to normalize manifests 2020-03-11 22:53:39 +02:00
Zoltan Kochan
715610d2c8 refactor: command plugins API 2020-03-09 00:19:08 +02:00
Zoltan Kochan
a6ef2f9661 test: fix @pnpm/plugin-commands-store 2020-02-29 20:18:43 +02:00
Zoltan Kochan
dd772c1f23 refactor: create @pnpm/plugin-commands-store
BREAKING CHANGE: supi API

PR #2230
2019-12-21 01:51:25 +02:00