Commit Graph

7628 Commits

Author SHA1 Message Date
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
Zoltan Kochan
eb2426cf85 fix: symlink a workspace pkg correctly, when it has a custom publish dir (#5089)
close #3901
2022-07-26 03:07:17 +03:00
Zoltan Kochan
01c5834bff fix(make-dedicated-lockfile): prepublishOnly script is automatically … (#5083)
close #5061
close #5062
2022-07-24 03:19:01 +03:00
Zoltan Kochan
107d01109a fix(deploy): inject all types of deps (#5084)
close #5078
2022-07-24 02:56:08 +03:00
Zoltan Kochan
dcab3140e8 docs(make-dedicated-lockfile): add deprecation notice
ref https://github.com/pnpm/pnpm/issues/5061#issuecomment-1193118204
2022-07-24 01:27:23 +03:00
Zoltan Kochan
2b859a46a5 ci: fix tagging action 2022-07-22 15:51:14 +03:00
Zoltan Kochan
3dcfec9a69 ci: a new action for tagging 2022-07-22 15:48:43 +03:00
Zoltan Kochan
9a35a899b0 chore(release): 7.6.0 v7.6.0 2022-07-21 18:17:01 +03:00
Zoltan Kochan
0569f10227 fix(deploy): don't modify the lockfile and fail in CI (#5074)
close #5071
2022-07-21 18:15:28 +03:00
Zoltan Kochan
e3f4d131cc fix: auto install root peer deps when auto-install-peers=true (#5067)
close #5028
2022-07-21 18:15:16 +03:00
Zoltan Kochan
7334b347b9 fix(deps): update @pnpm/npm-conf 2022-07-21 00:55:19 +03:00
Zoltan Kochan
8aa4e411dc docs: update changelog 2022-07-20 18:02:50 +03:00
Zoltan Kochan
132b83d1d5 chore(release): 7.6.0-0 v7.6.0-0 2022-07-20 17:54:40 +03:00
Michał Belniak
406656f806 feat: add lockfile-include-tarball-url option (#5054)
* feat: add save-tarball-url .npmrc option

- add save-tarball-url option, which saves resolved tarball URL to
pnpm-lock.yaml during install or add command

* feat: add save-tarball-url .npmrc option - remove incorrect change

- remove help section for new option

* feat: add lockfile-include-tarball-url option - change option name, add test

- option is now named lockfile-include-tarball-url as suggested by
@zkochan
- add test covering new feature

* feat: add lockfile-include-tarball-url option - add changeset

- add changeset

* refactor: lockfile-include-tarball-url

Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-07-20 16:57:47 +03:00
ayu
557755e243 chore: update pnpm-workspace.yaml (#5060) 2022-07-20 02:49:57 +03:00
Zoltan Kochan
80707088c2 refactor(env): releaseDir=>releaseChannel 2022-07-20 01:42:32 +03:00
Zoltan Kochan
0b39315cb1 fix(deps): update 2022-07-19 15:24:09 +03:00
Zoltan Kochan
28f0005096 feat: prefer-symlinked-executables (#5048)
A new setting supported: `prefer-symlinked-executables`
When `true`, on Posix systems pnpm will create symlinks to executables in
`node_modules/.bin` instead of command shims.

This setting is `true` by default when `node-linker` is set to
`hoisted`.

close #4782
2022-07-18 17:18:31 +03:00
Simon Schmid
af79b6184c fix(audit): add authentication to pnpm-audit (#5053)
Adds authentication to pnpm-audit for private registries

close #5038
2022-07-18 17:09:25 +03:00
Zoltan Kochan
7cba20498a test(script-runners): fix 2022-07-18 04:16:52 +03:00
Zoltan Kochan
0ee3dfbe07 fix: don't print redundant warnings 2022-07-18 02:21:23 +03:00
MCMXC
9eda410253 chore(deps): upgrade sinon to v14 (#5045)
- upgrade sinon throughout packages to 14.0.0
2022-07-17 18:39:29 +03:00
Zoltan Kochan
348580c3f5 fix: document the -r option (#5044)
close #5019
2022-07-17 18:04:07 +03:00
Zoltan Kochan
e018a8b140 fix: log more info on HTTP error (#4917) 2022-07-17 18:03:57 +03:00
MCMXC
532d5eb79e chore(deps): upgrade nock to v13 (#5043)
- upgrade nock throughout packages to 13.2.8
- remove nock from packageRules in renovate.json
2022-07-17 16:41:46 +03:00
Zoltan Kochan
31e73ba77a fix(deploy): include all deps by default (#5040)
close #5035
2022-07-17 14:58:34 +03:00
Zoltan Kochan
0e9fa30ac5 fix: running exec/run/dlx with --use-node-version
ref #3595
2022-07-16 17:34:55 +03:00
Cheng
13210db3c3 pnpm rebuild accepts --store-dir (#5036)
* feat: pnpm rebuild accepts --store-dir

* chore: add changeset
2022-07-15 20:03:45 +03:00
Zoltan Kochan
776da1ad8e chore(deps): update 2022-07-14 03:14:19 +03:00
Zoltan Kochan
8782bcba7e chore(release): 7.5.2 v7.5.2 2022-07-14 02:24:09 +03:00
Zoltan Kochan
744d47d90e fix: don't print info messages about .pnpmfile.cjs (#5032)
close #5027
2022-07-14 02:22:08 +03:00
Zoltan Kochan
c71215041d fix: summary reporting (#5031) 2022-07-14 02:03:42 +03:00
Zoltan Kochan
701f15819b chore(release): 7.5.1 v7.5.1 2022-07-12 02:44:28 +03:00
William Huang
c0b36bfefa feat(file-reporter): remove file reporter (#5012)
close #4949
2022-07-12 02:41:15 +03:00
webstrand
f0cd8b0f31 feat: use irreversible-delete in pnpm patch-commit (#5008)
Avoid retaining a copy of the contents of files deleted during patching

close #5003
2022-07-11 21:01:47 +03:00
Zoltan Kochan
d89bb43f2d fix: don't symlink the autoinstalled peers to the root of node_modules (#4998)
close #4988
2022-07-09 00:58:23 +03:00
Zoltan Kochan
716a29acc9 chore(deps): update 2022-07-06 03:01:33 +03:00
Zoltan Kochan
6a7b0e2d8e chore: save-workspace-protocol=rolling 2022-07-03 00:20:46 +03:00
Zoltan Kochan
a9dbcb752d docs: fix sponsors section on release page 2022-07-02 23:26:27 +03:00
Zoltan Kochan
7f192f195c docs(contributing): fix global linking instruction 2022-07-02 23:24:45 +03:00
Zoltan Kochan
c1493a4c55 chore(release): 7.5.0 v7.5.0 2022-07-02 16:07:26 +03:00
Zoltan Kochan
2bca856e00 fix(patch): the hash of the patch file should be the same on both Windows and POSIX (#4969)
close #4961
2022-07-02 16:04:42 +03:00
Zoltan Kochan
e9946fcfa7 fix: bundle pnpm with Node.js 14 2022-07-02 14:18:40 +03:00
Zoltan Kochan
ff7061929f fix: don't fail when removing a dep from a workspace that has patches
ref https://github.com/pnpm/pnpm/issues/4954#issuecomment-1172858634
2022-07-02 14:16:25 +03:00
javier-garcia-meteologica
f5621a42c2 feat: use workspace spec alias by default in pnpm add (#4947) 2022-07-02 14:12:08 +03:00
Zoltan Kochan
e5610a579b test(make-dedicated-lockfile): fix 2022-07-01 23:01:11 +03:00
Zoltan Kochan
b2d271d29c chore: use workspace with star to reference workspace dependencies 2022-07-01 03:45:20 +03:00
Zoltan Kochan
a0b855fbce docs: add light versions of sponsor logos for dark theme
close #4959
2022-07-01 02:18:35 +03:00
Zoltan Kochan
59cde17d16 docs: add new gold sponsor 2022-06-30 17:01:34 +03:00
Zoltan Kochan
2105735a0c fix(env): throw an error on a system that uses MUSL libc (#4958) 2022-06-30 16:11:01 +03:00