Commit Graph

679 Commits

Author SHA1 Message Date
khai96_
1b37a10b38 feat: add dedupeInjectedDeps to InstallCommandOptions 2024-12-26 13:53:56 +07:00
Zoltan Kochan
4771813309 feat: store ignored dependencies list in modules state file (#8903) 2024-12-24 03:01:35 +01:00
Zoltan Kochan
512465c4ce refactor: remove allowBuild from options of resolveDependencies() (#8902) 2024-12-23 01:24:50 +01:00
Zoltan Kochan
3bc9d5c50e fix: hoisted install with dependency that is a peer of itself (#8892)
close #8854
2024-12-20 01:05:54 +01:00
Fotis Papadogeorgopoulos
f685565f92 fix(remove): ensure that link-workspace-packages=false is respected in single project runs in a workspace (#8881) 2024-12-19 01:39:21 +01:00
Zoltan Kochan
38eb97a8b3 chore(release): libs 2024-12-18 13:40:41 +01:00
Zoltan Kochan
7ec017e13f chore: move all tarball files out from Git LFS to a package dependency (#8885) 2024-12-18 03:06:51 +01:00
Zoltan Kochan
3278c588cd chore(release): 10.0.0-rc.0 2024-12-16 02:31:45 +01:00
martinkors
c0895e8b12 feat(add): pnpm add should use the default catalog (#8870)
close #8640
2024-12-16 02:10:24 +01:00
Zoltan Kochan
ac5b9d8e16 feat!: ignore the NODE_ENV env variable (#8839)
close #8827
2024-12-15 20:24:51 +01:00
Zoltan Kochan
fb9e3b4ee0 feat!: drop lockfile v6 support 2024-12-15 15:38:20 +01:00
Zoltan Kochan
a76da0c53c feat!: remove conversion of lockfile v6 to v9 (#8866) 2024-12-15 14:39:19 +01:00
btea
b0f3c71b7b fix: get the final address by installing package through links (#8842)
close #8833

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-12-11 13:22:15 +01:00
Zoltan Kochan
31911f103e fix: dependency status check should never throw an exception (#8852) (#8857) 2024-12-10 17:16:08 +01:00
Zoltan Kochan
d47c4266db perf: faster repeat install (#8838) 2024-12-08 23:42:33 +01:00
Zoltan Kochan
6483b646fe feat: a new setting for injecting workspace packages (#8836) 2024-12-05 17:37:15 +01:00
Zoltan Kochan
b8bda0ac40 fix: global update should not fail if no packages are found (#8829)
ref #7898
2024-12-04 10:47:38 +01:00
Zoltan Kochan
d2e83b0f3e feat: bump metadata cache version 2024-12-01 10:40:09 +01:00
Zoltan Kochan
3fe70e7897 refactor!: all lib versions should start with pnpm major version 2024-11-29 01:04:45 +01:00
Zoltan Kochan
9fcc7e808e chore(release): 10.0.0-beta.0 2024-11-28 12:35:01 +01:00
Zoltan Kochan
4b80c2c648 fix: do not fail if the active store directory was created by pnpm v9 (#8814)
* fix: do not fail if the active store directory was created by pnpm v9

* test: checkCompatibility
2024-11-28 08:55:19 +01:00
Nikita Skovoroda
2ae5eaf95e fix: ~7% smaller bundle size by not packing unneeded yarnpkg/nm subdeps (#8809)
* chore: use node16 ts moduleResolution in real-hoist

* fix: 7% smaller bundle size
2024-11-26 13:16:17 +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
52d2965429 fix: don't hang during peer dependencies resolution when there are cycles (#8755)
close #8720
2024-11-14 17:15:14 +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
Jordan
7cd0d20bb2 fix: headless install crash when modules dir disabled and patches listed (#8727)
close #8726
2024-11-04 02:14:00 +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
26a910cbf8 chore(release): 10.0.0-alpha.0 2024-10-28 04:16:49 +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 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
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
9335a45c2d style: fix lint errors (#8699)
close #8698
2024-10-26 12:56:26 +02:00
Zoltan Kochan
8108680794 refactor!: changed the format of the side-effects cache key (#8694) 2024-10-26 12:26:30 +02:00
Zoltan Kochan
790ce1e869 Merge branch 'main' into v10 2024-10-25 22:24:10 +02:00
Zoltan Kochan
1dd419cbb4 test: fix killing the registry mock server on teardown (#8695) 2024-10-25 21:24:08 +02:00
Jordan
9ea8fa457b fix: only validate modules directory if required (e.g. for install) (#8657) 2024-10-24 17:45:49 +02:00
Zoltan Kochan
477e0c1f74 feat!: the link command should add overrides (#8653) 2024-10-24 16:59:55 +02:00
Zoltan Kochan
50c3aaf46f Merge branch 'main' into v10 2024-10-23 14:08:15 +02:00
Zoltan Kochan
5841454901 test: update Bit registry URL 2024-10-21 11:30:42 +02:00
btea
222d10ac79 perf: use hash to replace createHash (#8629)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-10-21 10:51:33 +02:00
Jordan
f9a095c7c6 fix: properly check modules purge confirmation answer (#8655) 2024-10-17 02:11:32 +02:00
Zoltan Kochan
744711c8b3 chore(release): 9.12.2 2024-10-16 16:09:10 +02:00
Zoltan Kochan
f35274f47f Merge branch 'main' into v10 2024-10-14 11:02:15 +02:00
Zoltan Kochan
099e6af9e1 feat!: don't duplicate all file entries in the side effects section of the index file (#8636) 2024-10-14 11:01:23 +02:00