Commit Graph

5664 Commits

Author SHA1 Message Date
Zoltan Kochan
c63fac43c3 chore: don't compile when running the _test script 2020-05-06 00:55:20 +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
5bc033c434 perf: keep all the metadata files in the same dir
Reduce the number of directories in the store by keeping all the metadata json
files in the same directory.

Previously the metadata file of express would be stored at:

<store>/registry.npmjs.org/express/index.json

Now it will be stored at:

<store>/metadata/registry.npmjs.org/express.json

ref #2521
PR #2529
2020-05-05 18:18:57 +03:00
Zoltan Kochan
b90d7652c2 refactor: types in @pnpm/cafs 2020-05-05 01:58:38 +03:00
Zoltan Kochan
8701d79f6b chore: add @pnpm/cafs to changeset 2020-05-04 23:39:57 +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
c02cf034e1 test(server): making an actual result deterministic 2020-05-04 02:58:02 +03:00
Zoltan Kochan
1ae66a0dc7 fix(tarball-fetcher): don't create a dir for the tarball 2020-05-04 02:53:28 +03:00
Zoltan Kochan
fea69ffa99 refactor: packageRequester.ts 2020-05-03 18:25:41 +03:00
Zoltan Kochan
b40af1c07c chore(release): v5.0.0-alpha.3 v5.0.0-alpha.3 2020-05-03 17:44:30 +03:00
Zoltan Kochan
42e6490d18 perf: read the package manifests from the memory, when possible
When a new package is being added to the store, its manifest is streamed
in the memory. So instead of reading the manifest from the filesystem,
we can parse the stream from the memory.

PR #2525
2020-05-03 17:38:10 +03:00
Zoltan Kochan
64bae33c4a fix(deps): update p-queue to v6.4.0 2020-05-03 17:19:42 +03:00
Zoltan Kochan
c7ca6ef3da chore(npmrc): remove save-exact 2020-05-03 14:49:36 +03:00
Zoltan Kochan
31d18bafb3 refactor(package-requester): use p-defer 2020-05-03 14:48:57 +03:00
Zoltan Kochan
f453a5f46d fix(deps): update version-selector-type to v3 2020-05-02 23:32:58 +03:00
Zoltan Kochan
7db36dcb34 perf: tarballs are not written to the disk
There is no reason to keep the tarballs on the disk.
All the files are unpacked and their checksums are stored.
So the tarball is only used if someone modifies the content of
the unpacked package. In that rare case, it is fine if we
redownload the tarball from the registry.

PR #2523
2020-05-02 22:00:37 +03:00
Zoltan Kochan
7fe6fc8c1a refactor: cafs 2020-05-02 18:23:03 +03:00
Zoltan Kochan
c207d994f4 fix(deps): update rename-overwrite to v3 2020-05-02 17:57:58 +03:00
Zoltan Kochan
b4fc49b7a0 chore: require pnpm v5 for development 2020-05-02 13:19:04 +03:00
Zoltan Kochan
2b8c3cd353 Revert "chore: require the usage of pnpm v4"
This reverts commit 312ff84bdc.
2020-05-02 13:18:39 +03:00
Zoltan Kochan
200adb5a22 Merge branch 'v4' 2020-05-02 13:16:22 +03:00
Zoltan Kochan
6a4f575f38 chore: update lockfile 2020-05-02 13:02:14 +03:00
Zoltan Kochan
57539729e1 chore(release): 4.14.2 v4.14.2 2020-05-02 12:54:22 +03:00
Zoltan Kochan
8ddd51fda3 chore(deps): update 2020-05-02 12:51:30 +03:00
Zoltan Kochan
312ff84bdc chore: require the usage of pnpm v4 2020-05-02 12:47:55 +03:00
Zoltan Kochan
2ec4c4eb9a feat: skip scripts that use "npx only-allow pnpm"
ref #2517
PR #2518
2020-05-02 12:37:08 +03:00
Jonathan Morley
c80d4ba3c3 feat: have if-present apply to recursive runs
PR #2520
2020-05-02 12:36:58 +03:00
Zoltan Kochan
f8d6a07fed fix: print a meaningful error on unsupported Node.js versions
close #2508
PR #2519
2020-05-02 12:36:48 +03:00
Zoltan Kochan
2e536326c7 chore: add a funding link to every package.json 2020-05-02 12:36:31 +03:00
Zoltan Kochan
37a9439d0e chore: add versions to all private packages
In order to make changesets work, all private packages should be
versioned.
2020-05-02 12:34:58 +03:00
Zoltan Kochan
760cc66641 fix: prefer headless installation when aliases are used
PR #2510
2020-05-02 12:34:42 +03:00
Zoltan Kochan
49f0b3e2e8 docs(README): capitalize items in the list 2020-05-02 12:30:22 +03:00
Zoltan Kochan
f35a3ec1cd feat: skip scripts that use "npx only-allow pnpm"
ref #2517
PR #2518
2020-05-02 12:24:41 +03:00
Jonathan Morley
7300eba86e feat: have if-present apply to recursive runs
PR #2520
2020-05-01 23:39:41 +03:00
Zoltan Kochan
3919db0faf docs(README): highlight the usage of content-addressable storage 2020-05-01 20:26:27 +03:00
Zoltan Kochan
26c34c4f3d fix: print a meaningful error on unsupported Node.js versions
close #2508
PR #2519
2020-05-01 20:12:52 +03:00
Zoltan Kochan
9191034712 fix(deps): update uuid to v8 2020-05-01 15:27:14 +03:00
Zoltan Kochan
1d9516dbf5 chore: update deps 2020-05-01 15:26:39 +03:00
Zoltan Kochan
f9c54efe3d chore: add a funding link to every package.json 2020-05-01 14:53:31 +03:00
Zoltan Kochan
18ccffaf29 chore(release): 5.0.0-alpha.2 v5.0.0-alpha.2 2020-04-30 13:50:30 +03:00
Zoltan Kochan
879f49d2b2 chore(deps): update 2020-04-30 13:47:27 +03:00
Zoltan Kochan
6dee919e85 chore: add versions to all private packages
In order to make changesets work, all private packages should be
versioned.
2020-04-30 13:45:47 +03:00
Zoltan Kochan
4063f1bee7 feat(publish)!: git checks are on by default
ref #2329
2020-04-30 02:14:22 +03:00
Zoltan Kochan
9e2a5b827e feat!: "pnpm r" is not an alias of "pnpm remove"
ref #2329
2020-04-30 02:14:22 +03:00
Zoltan Kochan
2e8ebabb20 fix: prefer headless installation when aliases are used
PR #2510
2020-04-29 11:19:46 +03:00
Zoltan Kochan
70f4df60f6 chore(deps): remove @types/mkdirp 2020-04-28 02:40:15 +03:00
Zoltan Kochan
385d1fa2be chore(release): 5.0.0-alpha.1 2020-04-27 22:14:12 +03:00
Zoltan Kochan
f516d266c9 feat: executable are saved into a separate dir
Executables are saved into a separate subdirectory
inside the content-addressable filesystem.

ref #2470
2020-04-27 22:14:12 +03:00
Zoltan Kochan
f93583d52f fix: use fs.mkdir instead of make-dir 2020-04-26 18:25:37 +03:00
Zoltan Kochan
fbc7c35528 test: fix store server test 2020-04-26 15:40:03 +03:00