Files
pnpm/packages
Brandon Cheng 4fa1091c80 feat: add experimental use-inline-specifiers-lockfile-format (#5091)
* feat: add experimental use-inline-specifiers-lockfile-format

* fix(lockfile-file): check importers key for shared lockfile format

The `convertFromLockfileFileMutable` function reverts changes from
`normalizeLockfile` when not using the shared lockfile format.

  - The non-shared lockfile format puts fields like `specifiers`,
    `dependencies`, `devDependencies`, `optionalDependencies`, and
    `dependenciesMeta` on the root of the lockfile. This is typically
    the case for a repo not using pnpm workspaces.
  - The shared lockfile format puts these under a `importers` block
    scoped by a path.

The `use-inline-specifiers-lockfile-format` feature flag removes the
`specifiers` block in favor of putting each specifier next to the
resolved version within each `dependencies`, `devDependencies`, etc
block.

This means the `convertFromLockfileFileMutable` function can no longer
check for `specifiers` to detect the whether the "shared" format is
used. @zkochan suggested checking for `importers` instead, which should
have the same effect.
https://github.com/pnpm/pnpm/pull/5091#discussion_r929326835

* test(lockfile-file): add read & write test for useInlineSpecifiersFormat
2022-07-27 12:27:41 +03:00
..
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-14 03:14:19 +03:00
2022-07-21 18:17:01 +03:00
2022-07-20 17:54:40 +03:00
2022-07-06 03:01:33 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-20 17:54:40 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-20 17:54:40 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-06 03:01:33 +03:00
2022-07-18 04:16:52 +03:00
2022-07-20 17:54:40 +03:00
2022-07-18 04:16:52 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-14 03:14:19 +03:00
2022-07-06 03:01:33 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-21 18:17:01 +03:00
2022-07-14 02:24:09 +03:00
2022-07-18 04:16:52 +03:00
2022-07-02 16:07:26 +03:00
2022-07-06 03:01:33 +03:00
2022-07-06 03:01:33 +03:00
2022-07-21 18:17:01 +03:00
2022-07-06 03:01:33 +03:00
2022-07-20 17:54:40 +03:00
2022-07-14 03:14:19 +03:00
2022-07-06 03:01:33 +03:00