Commit Graph

175 Commits

Author SHA1 Message Date
Zoltan Kochan
7be55be549 chore(deps): update 2023-10-15 13:01:52 +03:00
Zoltan Kochan
ac5abd3ff7 fix(dlx): don't fail when running dlx from project with patched deps (#7201)
close #7198
close #7183
close #7200
2023-10-15 04:44:55 +03:00
Zoltan Kochan
d15606ad1c chore(release): libs 2023-10-11 17:59:52 +03:00
Zoltan Kochan
4aa41ef3a6 perf(rebuild): only link bins if something was built (#7193) 2023-10-11 17:55:54 +03:00
Zoltan Kochan
e467c7df24 chore(release): 8.9.0-1 2023-10-09 13:00:10 +03:00
Zoltan Kochan
201695f166 chore(release): 8.9.0-0 2023-10-08 22:55:35 +03:00
Zoltan Kochan
3ad2ec63eb chore(release): libs 2023-10-08 17:21:51 +03:00
Zoltan Kochan
d774a3196c feat: onlyBuiltDependenciesFile (#7167)
close #7137
2023-10-08 01:50:47 +03:00
Alvis Tang
12f45a83d2 fix: honor never/only-built-dependencies in workspace setup (#7141)
close #7135
close #5407

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-10-03 19:42:13 +03:00
Zoltan Kochan
fd91bdaa85 chore(release): libs 2023-10-01 12:08:32 +03:00
LaicZhang
41b5eb7a5b perf: replace startsWith with === (#7138) 2023-09-27 16:32:05 +03:00
Zoltan Kochan
73ebfc94e0 chore(release): 8.8.0 2023-09-26 15:24:32 +03:00
Chris
ee328fd25e feat(reporter): add --hide-reporter-prefix option (#7086)
close #7061

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-09-23 03:56:36 +03:00
Zoltan Kochan
7173127aa0 chore(release): 8.7.6 2023-09-17 22:18:18 +03:00
Zoltan Kochan
2690115d42 chore(deps): update 2023-09-15 18:28:45 +03:00
Zoltan Kochan
17d2ddb056 fix: don't run prepublishOnly of git-hosted dependencies (#7096)
close #7026
2023-09-15 17:04:28 +03:00
Zoltan Kochan
3ed5a7cd44 chore(release): libs 2023-09-13 12:32:41 +03:00
Zoltan Kochan
9caa33d535 feat: new option for disabling local directory dependencies relinking (#7083)
Removed `disableRelinkFromStore` and `relinkLocalDirDeps`. Replaced them with `disableRelinkLocalDirDeps`.
2023-09-13 12:23:03 +03:00
Zoltan Kochan
e074922652 chore(release): libs 2023-09-11 21:03:20 +03:00
Zoltan Kochan
10cb4b3245 chore(release): 8.7.5 2023-09-11 15:15:09 +03:00
Zoltan Kochan
46cecfc60f chore(release): libs 2023-09-06 21:59:31 +03:00
Zoltan Kochan
d194baeb50 chore(release): 8.7.4 2023-09-06 01:08:56 +03:00
await-ovo
b962c27ae6 fix(plugin-commands-script-runner): allow create scoped package with preferred version (#7055)
close #7053
2023-09-05 18:20:19 +03:00
Zoltan Kochan
89302a4d30 chore(release): 8.7.2 2023-09-04 15:45:36 +03:00
await-ovo
d4ee98f838 fix: remove unused logger.info (#7019)
close #7005
2023-08-31 18:24:45 +03:00
Brandon Cheng
e9aa6f682a chore(deps): update TypeScript 5.1.6 -> 5.2.2 (#7016)
* test: use sha512 integrity in fixtures to fix ci break

* test: update snapshots for sha512 fixture change

* chore(deps): remove unneeded peer dependency exception

The `peerDependencyRules.allowedVersions` exception on
`@typescript-eslint/eslint-plugin` no longer seems to be necessary.
Removing it does not introduce any new peer dependency errors on
`pnpm install`.

I suspect this was needed for the
`eslint-config-standard-with-typescript` dependency in the past, but a
@typescript-eslint/eslint-plugin upgrade made it no longer necessary.

* chore(deps): update @typescript-eslint dependencies 5.62.0 -> 6.5.0

@typescript-eslint 6.5.0 is the first version to introduce support for
TypeScript 5.2.

https://github.com/typescript-eslint/typescript-eslint/releases/tag/v6.5.0

```
=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <5.2.0

YOUR TYPESCRIPT VERSION: 5.2.2

Please only submit bug reports when using the officially supported version.
```

* chore(deps): update eslint-config-standard-with-typescript 37.0.0 -> 39.0.0

Version 38.0.0 is the first version to support @typescript-eslint v6.
https://github.com/standard/eslint-config-standard-with-typescript/releases/tag/v38.0.0

Otherwise the following error appears.

```
> eslint "src/**/*.ts" "test/**/*.ts" "--fix"

Oops! Something went wrong! :(

ESLint: 8.47.0

Error: ../../.eslintrc.json » @pnpm/eslint-config » eslint-config-standard-with-typescript:
        Configuration for rule "@typescript-eslint/restrict-plus-operands" is invalid:
        Value {"checkCompoundAssignments":true} should NOT have additional properties.

    at ConfigValidator.validateRuleOptions (/Users/gluxon/Developer/pnpm/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2039:23)
    at /Users/gluxon/Developer/pnpm/node_modules/.pnpm/@eslint+eslintrc@2.1.2/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2094:18
```

* chore: remove unnecessary disables for restrict-template-expressions

The `@typescript-eslint/restrict-template-expressions` rule relaxed
what types are allowed in template expressions.

c13ce0b4f7 (diff-b852e1e199d2976eee1183fc84ac12a5d42fc61f0ae4b1c290dd54d621546db0)

Many of these disables were for interpolated values that had an `any`
type.

* chore: remove unnecessary disables for restrict-plus-operands

The original error was:

```
Invalid operand for a '+' operation. Operands must each be a number or string. Got `any`. eslint@typescript-eslint/restrict-plus-operands
```

It look like the newer version now allows `any`.

* style: fix errors of prefer-optional-chain and prefer-nullish-coalescing

The `@typescript-eslint/prefer-optional-chain` and
`@typescript-eslint/prefer-nullish-coalescing` rules got a bit
smarter. This commit applies autofixes. I believe the changes should be
equivalent to what existed before.

Example of the new `@typescript-eslint/prefer-optional-chain` lints.

```
pnpm/pkg-manifest/exportable-manifest/src/index.ts
  71:10  error  Prefer using an optional chain expression instead, as it's more concise and easier to read  @typescript-eslint/prefer-optional-chain
  87:10  error  Prefer using an optional chain expression instead, as it's more concise and easier to read  @typescript-eslint/prefer-optional-chain
```

Example of the new `@typescript-eslint/prefer-nullish-coalescing` lints.

```
pnpm/fs/find-packages/src/index.ts
  32:38  error  Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read  @typescript-eslint/prefer-nullish-coalescing
```

* chore(deps): update TypeScript 5.1.6 -> 5.2.2

* chore(deps): update @yarnpkg/core->@types/lodash override to 4.14.197

This fixes a compilation error that appears on TypeScript 5.2.2. This
error was fixed in a later version of `@types/lodash`.

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/66123

```
../node_modules/.pnpm/@types+lodash@4.14.181/node_modules/@types/lodash/index.d.ts:45:15 - error TS2428: All declarations of 'WeakMap' must have identical type parameters.

45     interface WeakMap<K extends object, V> { }
                 ~~~~~~~

Found 4 errors.
```
2023-08-31 16:27:01 +03:00
Zoltan Kochan
9584e5e86d fix(deps): update 2023-08-19 18:13:57 +03:00
Khải
ce3f1712b2 fix: misleading "command not found" error message (#6952)
It was caused by `which` not working correctly

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-08-17 16:44:44 +03:00
Zoltan Kochan
362f41741f chore(release): 8.6.12 2023-08-06 14:10:47 +03:00
Khải
c5fbdb55c2 feat: friendlier error message when command not found (#6887)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-08-04 03:18:34 +03:00
Zoltan Kochan
b454bb07bf fix(dlx): should not print an error stack when dlx fails (#6883)
close #6698
2023-07-30 21:50:48 +03:00
Zoltan Kochan
3dfaf33c98 chore(release): libs 2023-07-30 14:32:08 +03:00
Khải
692197df3e feat: override frozen-lockfile before lifecycle (#6877)
close #6865
2023-07-29 18:28:42 +03:00
Zoltan Kochan
2b3d0b1b3b chore(release): libs 2023-07-26 17:50:12 +03:00
Zoltan Kochan
56564248c5 chore(release): libs 2023-07-24 22:08:46 +03:00
Zoltan Kochan
ee5157d7da chore(release): 8.6.10 2023-07-24 01:43:41 +03:00
Zoltan Kochan
8452bb2d5b fix: don't run postpublish of git-hosted dependency (#6848)
close #6846
2023-07-22 20:35:55 +03:00
Zoltan Kochan
a13a0e8f5c fix: don't fail when a non-optional dep of an optional dep fails (#6847)
close #6822
2023-07-22 16:53:49 +03:00
Zoltan Kochan
cd00a79ab2 chore(release): libs 2023-07-19 02:19:20 +03:00
Zoltan Kochan
5ce333519d refactor: rename cafs to store.cafs 2023-07-19 01:53:42 +03:00
Zoltan Kochan
c570abb192 chore(release): 8.6.9 2023-07-18 13:32:31 +03:00
Zoltan Kochan
a35ec3fd92 chore(release): 8.6.8 2023-07-17 12:19:50 +03:00
Zoltan Kochan
e0fb3913d2 chore: remove redundant scripts 2023-07-15 23:50:24 +03:00
Zoltan Kochan
a70c77ac43 test: use jest global setup/teardown to manage the registry mock (#6813)
close #6787
2023-07-15 23:00:41 +03:00
Zoltan Kochan
75673055f4 chore(deps): update 2023-07-13 18:40:03 +03:00
Zoltan Kochan
791f3cda01 chore(release): libs 2023-07-11 21:13:12 +03:00
Zoltan Kochan
002f6febe4 feat(rebuild): skipIfHasSideEffectsCache (#6796) 2023-07-11 18:48:53 +03:00
Zoltan Kochan
16bbac8d51 fix: rebuild should upload side-effects (#6790) 2023-07-10 22:25:55 +03:00
Zoltan Kochan
e4ef6f46c9 chore(release): 8.6.7 2023-07-10 01:30:28 +03:00
Zoltan Kochan
a362a3ca16 fix(run): output of scripts running concurrently in one project (#6780)
ref #6692
2023-07-09 01:21:47 +03:00