Commit Graph

10701 Commits

Author SHA1 Message Date
Zoltan Kochan
c0182b429f chore(release): 8.14.0 v8.14.0 2024-01-02 23:57:01 +01:00
Kirjava
8d7ec24666 fix: skip automatic download/install of Node.js versions in WebContainer (#7478)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-02 21:30:50 +01:00
Nacho Aldama
19be6b7041 fix: fatal error when using CoW in Windows (#7479)
close #7468
2024-01-02 21:08:17 +01:00
Zoltan Kochan
7bef886144 chore(release): libs 2024-01-02 10:31:17 +01:00
Brandon Cheng
064aeb681e feat: accept install command line options as dedupe options (#7473)
* refactor: reuse OPTIONS.ignoreScripts in dedupe help

* feat: accept install command line options as dedupe options

* test: add test to ensure .npmrc is used by pnpm dedupe

* test: add test for "pnpm dedupe --store-dir=..."

* test: ensure pnpm dedupe does not accidentally inherit --frozen-lockfile

* revert: remove newly added e2e tests in dedupe

* test: add unit test to check contents of dedupe cliOptionTypes
2024-01-02 00:47:46 +01:00
Brandon Cheng
a2f5f5c990 test: fix file system race conditions in tests by switching to an IPC server (#7472)
* test: create new @pnpm/test-ipc-server private util package

* test: use @pnpm/test-ipc-server for previously refactored tests

* test: use @pnpm/test-ipc-server for tests using json-append

* test: change how --no-bail is passed to avoid passing it to scripts

This test began failing after the conversion to use
`@pnpm/test-echo-server` since the `--no-bail` script was being passed
to scripts.

Changing how --no-bail is configured to fix this test.

* test: use @pnpm/test-ipc-server in exec/lifecycle fixture tests

* test: use @pnpm/test-ipc-server in pkg-manager/headless fixture tests

* test: use @pnpm/test-ipc-server in exec/prepare-package fixture tests

* test: switch pnpm test from json-append to @pnpm.e2e/hello-world-js-bin

* test: fix and re-enable 'rebuild multiple packages in correct order'

The pnpm-workspace.yaml file didn't contain all packages, causing:

```
2023-12-22T02:24:46.2277155Z FAIL test/recursive.ts
2023-12-22T02:24:46.2277881Z   ● rebuild multiple packages in correct order
2023-12-22T02:24:46.2278348Z
2023-12-22T02:24:46.2278734Z     expect(received).toStrictEqual(expected) // deep equality
2023-12-22T02:24:46.2279302Z
2023-12-22T02:24:46.2279517Z     - Expected  - 1
2023-12-22T02:24:46.2279932Z     + Received  + 0
2023-12-22T02:24:46.2280186Z
2023-12-22T02:24:46.2280791Z       Array [
2023-12-22T02:24:46.2281256Z         "project-1",
2023-12-22T02:24:46.2281733Z     -   "project-2",
2023-12-22T02:24:46.2282135Z       ]
2023-12-22T02:24:46.2282334Z
2023-12-22T02:24:46.2282475Z       216 |   }, [])
2023-12-22T02:24:46.2282870Z       217 |
2023-12-22T02:24:46.2283788Z     > 218 |   expect(server1.getMessages()).toStrictEqual(['project-1', 'project-2'])
2023-12-22T02:24:46.2284725Z           |                                 ^
2023-12-22T02:24:46.2285802Z       219 |   expect(server2.getMessages()).toStrictEqual(['project-1', 'project-3'])
2023-12-22T02:24:46.2286683Z       220 | })
2023-12-22T02:24:46.2287049Z       221 |
2023-12-22T02:24:46.2287269Z
2023-12-22T02:24:46.2287588Z       at Object.<anonymous> (test/recursive.ts:218:33)
```
2024-01-01 16:40:03 +01:00
Zoltan Kochan
0774b0f061 docs(LICENSE): update years 2024-01-01 01:58:26 +01:00
JasonMan34
693944b669 feat(deploy): don't rimraf out directory if it's not empty (#7360)
close #7351

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-30 16:59:52 +01:00
Nacho Aldama
c597f72ec3 feat: add hoist-workspace-packages option (#7451)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-30 13:43:19 +00:00
btea
459945292f feat: sort the message of the cat-index command output (#7458) 2023-12-27 10:43:51 +01:00
Yanzi
fac2ed4241 feat: pnpm i a-module-already-in-dev-deps should show message (#7348)
close #926

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-27 02:01:12 +01:00
Zoltan Kochan
568860daae chore(release): 8.13.1 v8.13.1 2023-12-26 15:39:22 +01:00
Simon He
4e71066ddc feat: new parameter --fail-if-no-match supported (#7409)
close #7403

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-26 13:06:10 +00:00
Hyunbin
4d2923858a fix(env): --global related error messages (#7456) 2023-12-26 12:59:34 +01:00
btea
09f6103490 fix(reviewing): filter the same print message (#7430)
close #7429

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-26 12:54:41 +01:00
Hulk
97b450e1f2 feat: add pnpm store visualization command (#7446)
close #7413
2023-12-26 00:24:38 +00:00
Zoltan Kochan
4a743650d0 chore: change resolution mode 2023-12-25 01:50:53 +01:00
Zoltan Kochan
70ee517a55 chore(deps): update publish-packed 2023-12-25 00:28:57 +01:00
Zoltan Kochan
cbe32d3d19 chore(deps): update symlink-dir 2023-12-25 00:23:03 +01:00
Zoltan Kochan
33313d2fd0 fix: EPERM error in the store (#7455)
close #7213
2023-12-24 10:05:28 +01:00
Andrey Sitnik
619e9ed6f4 fix: update --interactive for light theme (#7454)
close #7439
2023-12-24 01:48:19 +01:00
Khải
8fd4e349a2 fix(outdated): git specificers (#7440)
close #7415
2023-12-23 01:28:24 +01:00
Zoltan Kochan
4fbc593ede chore(deps): update 2023-12-21 11:29:15 +01:00
Brandon Cheng
73b936ff95 test: fix flaking filterProd and monorepo test due to json-append on windows (#7445)
* test: fix flaking filterProd and monorepo test due to json-append

* refactor: use sync fs operations in tests

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-21 10:55:11 +01:00
Zoltan Kochan
7cbfde36a0 docs: add JetBrains to sponsors 2023-12-20 22:49:15 +01:00
Jake Livak
4d34684f1f fix: bundledDependencies field is not always respected (#7411) (#7412)
* fix: check for both bundleDependencies and bundledDependencies (#7411)

update to code that didn't correctly check both bundleDependencies and bundledDependencies

* fix: support boolean value for bundleDependencies (#7411)

fix so that a 'true' value in the bundleDependencies field is correctly interpreted
(as meaning all dependencies are bundled)

close  #7411

* fix: allow saving of boolean bundledDependencies values

updates prior fix to allow saving booleans to bundledDependencies field.

* fix: add test coverage for bundledDependencies fixes (#7411)

add local tarball test and bundledDependencies=true test
update existing tests to confirm that bundled dependencies aren't installed

* fix: update registry-mock

* docs: update changeset

* fix: update bundleDependencies tests

* Revert "fix: update registry-mock"

This reverts commit 0c4b7ede21.

* Revert "Revert "fix: update registry-mock""

This reverts commit 9828dfce91.

* test: update integrities in test lockfiles

* test: retry twice

* test: move bundle deps test to separate file

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-19 23:18:07 +01:00
Zoltan Kochan
ce809f6d91 chore: update registry-mock 2023-12-19 11:24:07 +01:00
Ahmed Abdelbaset
06ac802b04 fix(patch-commit): wrap out patch dir in quotes in the log statement (#7437) 2023-12-18 10:52:06 +01:00
Zoltan Kochan
036afc632c chore: @pnpm/exe should not be published with latest tag by default 2023-12-15 18:43:34 +01:00
Zoltan Kochan
99fd38bf2b style: fix 2023-12-14 20:29:52 +01:00
Zoltan Kochan
74e8f474f3 chore(release): libs 2023-12-14 16:15:57 +01:00
Zoltan Kochan
672c559e49 feat: dedupe injected dependencies (#7416)
A new setting added for symlinking [injected dependencies](https://pnpm.io/package_json#dependenciesmetainjected) from the workspace, if their dependencies use the same peer dependencies as the dependent package. The setting is called `dedupe-injected-deps`
2023-12-14 16:13:22 +01:00
btea
e79ab3847b chore(dep): update @types/node (#7414)
* chore(dep): update @types/node

* chore: update
2023-12-13 14:06:52 +01:00
Zoltan Kochan
0830a73a53 refactor: resolve dependencies (#7408)
Make updates to the lockfile in one place.
2023-12-13 11:50:53 +01:00
Zoltan Kochan
e71c0f17e5 chore(release): 8.12.1 v8.12.1 2023-12-13 11:18:12 +01:00
btea
9a53179e37 fix(plugin-commands-patching): do not create empty patch directory (#7410) 2023-12-13 11:11:02 +01:00
Xc
f3cd0a61d4 fix: no permission to delete empty directories (#7406)
close #7405
2023-12-13 09:54:40 +01:00
Khải
d5a176af77 fix(fix-lockfile): crash on tarballs (#7404)
close  #7368
2023-12-13 00:01:31 +01:00
Nacho Aldama
418866ac07 fix: avoid empty cloned files in Windows (#7313)
* fix: avoid empty cloned files in Windows

* chore: add changesets

* chore: update changesets

* fix: remove duplicate dependency

* fix: try to set workers number to 1 in Windows

* revert: 1 worker in Windows tests

* fix: throw error when current drive does not support CoW
2023-12-12 23:30:29 +01:00
Zoltan Kochan
e3b9832955 fix: reporting of added dependencies (#7396)
close #7384
2023-12-11 10:16:57 +01:00
Zoltan Kochan
49f0027f13 chore(release): 8.12.0 v8.12.0 2023-12-08 23:25:14 +01:00
Khải
1474bfd89a fix(run): stop passing flags as fallback command (#7370)
close #7244

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-06 19:53:32 +01:00
Zoltan Kochan
81a2f249e7 chore(release): libs 2023-12-06 15:48:07 +01:00
Zoltan Kochan
5462cb6d4e fix: dependency deduplication (#7385)
fixes regression introduced via #7359
2023-12-06 15:43:46 +01:00
Zoltan Kochan
8a86facc06 chore(release): libs 2023-12-05 19:44:18 +01:00
Khải
3ac0487b3f feat(network): basic auth header (#7376)
close #7371

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-12-05 18:59:50 +01:00
Zoltan Kochan
6558d1865f fix: dedupe commands of direct dependencies (#7359) 2023-12-05 16:39:52 +01:00
Zoltan Kochan
862b37ac53 docs: add Nx to sponsors 2023-12-05 10:16:57 +01:00
Hyunbin
b9c7fb91f3 fix(env): unify Node.js related expressions (#7356) 2023-12-03 18:34:39 +01:00
Zoltan Kochan
c883f8120c style: remove not needed rule excapes 2023-12-01 19:39:15 +01:00