Commit Graph

10667 Commits

Author SHA1 Message Date
btea
e5d0063b42 fix: remove link to X from update notifier (#8773)
close #8770
2024-11-19 13:05:11 +01:00
Eric Long
cebe493d12 feat: add linux-riscv64 build (#8779)
close #7582
2024-11-19 02:07:03 +01:00
Zoltan Kochan
c64d36c90e fix: ETXTBSY error on running setup (#8780)
close #8173
2024-11-18 22:24:43 +01:00
Zoltan Kochan
4f5c1714fa fix: the CLI should fail if a different package manager is required by the project (#8777)
ref #8685
2024-11-18 03:29:48 +01:00
IceOfSummer
3be45b740b fix: ERR_PNPM_TARBALL_EXTRACT when the URL's hash contains a slash (#8761)
close #7697
2024-11-18 03:02:42 +01:00
Zoltan Kochan
e200728e0b fix: parameters should be passed down to the executed script when running pnpm t (#8776) 2024-11-17 22:55:04 +01:00
Zoltan Kochan
1dbc56a977 fix: proper types of settings in local .npmrc files (#8775)
close #5075
close #8758
2024-11-17 17:15:29 +01:00
btea
ef7c10221c fix: pnpm exec should specify command (#8774) 2024-11-17 17:07:32 +01:00
chlorine
2f210d9d58 feat: support json format output in pnpm pack (#8765)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-11-17 14:55:16 +01:00
chlorine
8ad6ee67a6 fix(init): --dir option should be respected (#8768) 2024-11-17 13:36:43 +01:00
yb6b
1a24296c7e perf: use enableCompileCache in node.js 22 (#8771) 2024-11-17 02:41:26 +01:00
Zoltan Kochan
a303f5b43e chore: use verify-deps-before-run 2024-11-15 12:57:10 +01:00
Zoltan Kochan
5f7729e121 chore(release): 10.0.0-alpha.2 v10.0.0-alpha.2 2024-11-15 12:37:31 +01:00
Zoltan Kochan
d1a47eeb42 docs: only show gold and platinum sponsors on the release page 2024-11-15 12:36:42 +01:00
Zoltan Kochan
c4b8e88656 fix: add verify-deps-before-run to settings (#8763) 2024-11-15 12:35:10 +01:00
Zoltan Kochan
95ed9619c9 chore(release): 10.0.0-alpha.1 v10.0.0-alpha.1 2024-11-15 12:06:38 +01:00
Zoltan Kochan
260279caeb refactor: resolve peers 2024-11-15 02:57:31 +01:00
Zoltan Kochan
bd01a2a5a9 fix: crash during peers resolution (#8760)
close #8759
2024-11-15 02:56:12 +01:00
Khải
19d5b51558 feat(exec): check dependencies before running scripts (#8645)
* refactor: break a long line into multiple lines

* feat: cache that tracks workspace structures

* feat: handle hash collisions

* docs(changeset): packages-list-cache

* feat(packages-list-cache): store mtime

* fix(packages-list-cache): JSON5 and YAML manifests

* feat(packages-list-cache): add catalogs

* style: sort fields alphabetically

* fix: actually fix it

* lint: fix

* lint: fix

* test(packages-list-cache): test

* feat(exec): check deps before run scripts

Resolves https://github.com/pnpm/pnpm/issues/8585

* style: fix eslint

* feat: use a single lastValidatedTimestamp

* refactor: rearrange

* perf: don't do pointless comparisons

* perf: optimize non-workspace

* perf: optimize sharedWorkspaceLockfile=false

* perf: remove unnecessary fs reads

* refactor: statManifestFile

* perf: skip comparing manifest to lockfile by stats

* feat: add wantedLockfileDir to error message

* refactor: shorten a function name

* refactor: rename a function

* docs: improve wordings

* feat: export `linkedPackagesAreUpToDate`

* feat: make sure lockfile specs satisfy manifest (wip)

* docs: todo

* fix: projectId

* feat: skip install-related scripts

* fix: type errors

* refactor: use tagged union

* refactor: remove unnecessary type expression

* docs: todo

* feat: add linkedPackagesAreUpToDate (wip)

* refactor: rearrange fields

* refactor: remove a temporary variable

* feat: export `getWorkspacePackagesByDirectory`

* feat: make workspacePackages optional

* feat: complete `linkedPackagesAreUpToDate`

* docs: remove unapplicable todo

* docs: explain why check is skipped

* feat: load allProjects and try again

* refactor: remove unused dependencies

* refactor: remove commented-out code

* refactor: replace `else if` with `return`

* feat: use-case without workspace manifest

* perf: skip unnecessary work

* feat: add a guard

* fix: eslint

* refactor: move code to new package

* refactor: sort dependencies

* test: outline

* refactor: extract assertLockfilesEqual for testing

* test: skip failing tests for now

* fix: eslint

* test: assertLockfilesEqual

* refactor: extract statManifestFile for testing

* test: todo

* test: statManifestFile

* test: shouldRunCheck

* refactor: rename a test file

* test: add

* test: todo

* docs: remove a commented-out code

* test: create groups

* test: todo

* test: add

* test: platform agnostic

* test: remove unnecessary scripts

* test: use `assert.strictEqual` instead

* test: export bin locations

* test: nested `pnpm run`

* test: todo

* test: add `cwd` option to `execPnpmSync`

* test: add

* fix: recursive

* test: add

* test: fix package names

* fix: catalogs comparison

* test: add

* refactor: just use ramda filter

* test: add

* test: mutations

* fix: package.json

* fix: jest

* feat(packages-list): debug logs

* feat: add debug messages

* fix: eslint

* test: check debug messages in other case

* docs: add next step

* test: mtime updates without modification

* docs: correct test description

* test: mtime changes

* test: check should be skipped

* docs: remove fulfilled todos

* fix: remove `.only`

* docs: todo

* docs: correct test names

* test: workspace structure changes

* test: packages list cache

* test: add

* refactor: divide a test file into 2

* docs: consistent wordings

* refactor: clearer error messages

* fix: ignore check in recursive nested scripts

* test: no dependencies

* test: print error messages on failures

* test: improve stdout/stderr in error messages

* docs: consistent wordings

* docs: clarify what did what

* test: nested script

* docs: consistent test descriptions

* docs(changeset): correction

* fix: save catalogs to packages list

* test: catalogs

* test: fix

* test: fix windows

* refactor: remove unused option field

* refactor: prefer `!= null`

* feat: use `node_modules` instead

* refactor: rename a package

* refactor: apply suggestion

* refactor: remove workspaceDir

* refactor: move `shouldRunCheck` to `exec`

* feat: rename config key

* refactor: rename a test dir

* refactor: correct grammar

* refactor: make loadPackagesList sync

* test: multiple lockfiles

* feat: prevent deletion of `node_modules`

* feat: skip checking on filtered install

* fix: accidentally dropping catalogs

* refactor: remove unnecessary `Promise.all`

* refactor: use `virtualStoreDir` from config

* refactor: split `opts` into `ctx` and `opts`

* test: fix

* style: fix eslint

* test: fix windows

* feat(exec): add `verifyDepsBeforeRun` to `exec`

* refactor: sync stat

* feat: stop ignoring filtered install

* test: filtered install

* refactor: rearrange imports

* feat: rename "packages list" to "workspace state"

* test: fix

* fix: workspace state on failed install
2024-11-15 01:01:09 +01:00
Zoltan Kochan
5967839796 docs: add new sponsors 2024-11-14 22:59:11 +01:00
Zoltan Kochan
52d2965429 fix: don't hang during peer dependencies resolution when there are cycles (#8755)
close #8720
2024-11-14 17:15:14 +01:00
JuanoD
4ee8822930 fix: output compatibility error to stderr instead of stdout (#8754) 2024-11-14 15:25:11 +01:00
Zoltan Kochan
5b91ec49ba perf: don't duplicate leaf nodes in dependenciesTree (#8751) 2024-11-13 01:35:29 +01:00
Zoltan Kochan
ee5dde3894 fix: rendering of missing peer dependencies output (#8745)
close #8538
2024-11-11 10:16:09 +01:00
Jonathan Hefner
8c3de19fc1 fix(dlx): ENOENT when symlink=false (#8732) (#8733)
Prior to this commit, if `symlink` was set to `false` (such as in an RC
file), `dlx` would throw `ENOENT` because it expected the
`node_modules/the-package` symlink to exist:

  ```console
  $ pnpm config get symlink
  false

  $ rm -rf ~/.cache/pnpm/

  $ pnpm dlx the-package
  Packages: +1
  +
  Progress: resolved 1, reused 1, downloaded 0, added 1, done
   ENOENT  ENOENT: no such file or directory, open '/home/${USER}/.cache/pnpm/dlx/.../
                                                    node_modules/the-package/package.json'
  ```

This commit filters the `symlink` option before installing the package,
allowing the symlink to be created, preventing the error.

Fixes #8732.
2024-11-06 10:43:35 +01:00
chlorine
b3333fb205 feat: display packed files list in pnpm pack (#8707) 2024-11-05 02:02:58 +01:00
Jordan
7cd0d20bb2 fix: headless install crash when modules dir disabled and patches listed (#8727)
close #8726
2024-11-04 02:14:00 +01:00
btea
934f1836f1 fix: script command regular parameters do not support the v flag (#8711) 2024-11-03 21:32:40 +01:00
Zoltan Kochan
6b27c811e7 fix!: do not allow to install pnpm globally via pnpm add (#8728) 2024-11-03 20:47:45 +01:00
Zoltan Kochan
ab041d648d chore: add words to cspell.json 2024-11-03 14:25:53 +01:00
k-utsumi
2dd8f25df5 docs: improve the image tags (#8721)
* ️ Add alternate text to logo

Selecting the logo image enables us to copy the alt text.

* ♻️ Remove logo link

ref: https://stackoverflow.com/a/73422089

* 🐛 Fix invisible logo

* 🐛 Fix invisible Route4Me logo

Changed to the same format as the Vite logo.

* ️ Add alternate text to images

* ♻️ Standardize {,pnpm/}README

* ♻️ Standardize get-release-text.ts sponsors

* ♻️ Standardize get-release-text.ts heading

* ♻️ Remove h1
2024-11-03 12:45:51 +01:00
Zoltan Kochan
b8cdd8c2b1 ci: change the if conditions for branch checks 2024-11-03 02:32:37 +01:00
Zoltan Kochan
6104a2c965 ci: specifying timeouts for steps 2024-11-02 12:26:54 +01:00
Zoltan Kochan
b53084054a feat: self-update should accept a version specifier (#8725) 2024-11-02 11:58:05 +01:00
Zoltan Kochan
e4023c6b9c fix(deps): update symlink-dir 2024-10-30 01:01:43 +01:00
Khải
f76ff6389b fix(dlx): race condition (#8712) 2024-10-29 12:15:00 +01:00
Zoltan Kochan
537b7909e9 chore: use pnpm v10 2024-10-28 04:38:40 +01:00
Zoltan Kochan
26a910cbf8 chore(release): 10.0.0-alpha.0 v10.0.0-alpha.0 2024-10-28 04:16:49 +01:00
Zoltan Kochan
45c30348d8 feat: v10, merge pull request #8499 2024-10-28 04:10:26 +01:00
Zoltan Kochan
32613a05af Merge remote-tracking branch 'origin/main' into v10 2024-10-28 04:01:43 +01:00
Zoltan Kochan
c4f5231761 feat!: bump store version to v10 (#8709) 2024-10-28 03:54:58 +01:00
Zoltan Kochan
0309365fda chore(release): 9.12.3 v9.12.3 2024-10-28 03:11:09 +01:00
chlorine
6014522ddb fix: print ERR_PNPM_NO_GLOBAL_BIN_DIR error when global bin directory is not found (#8710) 2024-10-28 03:08:16 +01:00
Vladimir Turov
a1f4df297d fix(cafs): avoid race on extracting files from tarballs (#8703)
* fix(cafs): avoid race on extracting files from tarballs

On running addFilesFromTarball with many workers in the pool there were sometimes
race conditions on moving files having same content.
It resulted in ERR_PNPM_ENOENT and ERR_PNPM_TARBALL_EXTRACT exceptions during install.
The issue was introduced in v8.7.0 and generated many defect reports.

close #7676, potentially #7607, #7697 and others

* refactor: add comment, release notes and decrease length of temp file

---------

Co-authored-by: VladimirNT1 <vladimir.nikolaich@gmail.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-10-28 03:04:49 +01:00
Zoltan Kochan
30b1fabd26 refactor: move store version to constants 2024-10-27 22:19:19 +01:00
Zoltan Kochan
298e5dcafd feat!: create a separate directory in the store for index files (#8700) 2024-10-27 21:00:28 +01:00
Zoltan Kochan
284d5e9baf Merge remote-tracking branch 'origin/main' into v10 2024-10-26 13:33:00 +02:00
Shion Ichikawa
5e98817eaf fix: handles "packageManager": "pnpm" in package.json (#8697)
close #8696
2024-10-26 12:58:14 +02:00
Shion Ichikawa
9335a45c2d style: fix lint errors (#8699)
close #8698
2024-10-26 12:56:26 +02:00
Zoltan Kochan
4d18ac7a4b ci: rename audit job 2024-10-26 12:40:44 +02:00