Files
pnpm/package.json
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

217 lines
7.7 KiB
JSON

{
"name": "monorepo-root",
"private": true,
"scripts": {
"bump": "changeset version && pnpm update-manifests",
"changeset": "changeset",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"pretest": "pnpm run compile-only && pnpm --dir=__fixtures__ run prepareFixtures",
"lint": "pnpm lint:meta && syncpack list-mismatches --workspace false && pnpm run lint:ts",
"lint:ts": "eslint \"**/src/**/*.ts\" \"**/test/**/*.ts\"",
"test-main": "pnpm pretest && pnpm lint --quiet && pnpm run test-pkgs-main",
"remove-temp-dir": "shx rm -rf ../pnpm_tmp",
"test-pkgs-main": "pnpm remove-temp-dir && pnpm run --no-sort --workspace-concurrency=1 -r _test",
"test-branch": "pnpm pretest && pnpm lint --quiet && git remote set-branches --add origin main && git fetch && pnpm run test-pkgs-branch",
"test-pkgs-branch": "pnpm remove-temp-dir && pnpm --workspace-concurrency=1 --filter=...[origin/main] run --no-sort _test",
"compile-only": "pnpm --workspace-concurrency=1 --filter=pnpm --filter=@pnpm/make-dedicated-lockfile --filter=@pnpm/mount-modules run compile",
"compile": "pnpm compile-only && pnpm run update-manifests",
"watch": "pnpm --filter=@pnpm/fetch run compile && pnpm --filter=pnpm run compile --watch",
"make-lcov": "shx mkdir -p coverage && lcov-result-merger './packages/*/coverage/lcov.info' 'coverage/lcov.info'",
"update-manifests": "pnpm run meta-updater && pnpm install",
"meta-updater": "pnpm --filter=@pnpm-private/updater compile && pnpm --config.use-node-version=16.4.0 exec meta-updater",
"lint:meta": "pnpm run meta-updater --test",
"copy-artifacts": "ts-node __utils__/scripts/src/copy-artifacts.ts",
"make-release-description": "pnpm --filter=@pnpm/get-release-text run write-release-text",
"release": "pnpm --filter=@pnpm/exe publish --tag=next-8 --access=public && pnpm publish --filter=!pnpm --filter=!@pnpm/exe --access=public && pnpm publish --filter=pnpm --tag=next-8 --access=public",
"dev-setup": "pnpm -C=./pnpm/dev link -g"
},
"devDependencies": {
"@babel/core": "^7.22.10",
"@babel/plugin-proposal-dynamic-import": "^7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@babel/types": "^7.22.10",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/prompt-cli": "^17.7.1",
"@pnpm/eslint-config": "workspace:*",
"@pnpm/worker": "workspace:*",
"@pnpm/meta-updater": "1.0.0",
"@pnpm/registry-mock": "3.11.0",
"@pnpm/tsconfig": "workspace:*",
"@types/jest": "^29.5.3",
"@types/node": "^16.18.41",
"c8": "^7.14.0",
"concurrently": "8.2.0",
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
"husky": "^8.0.3",
"jest": "^29.6.2",
"keyv": "4.5.3",
"lcov-result-merger": "^3.3.0",
"publish-packed": "^4.1.1",
"rimraf": "^3.0.2",
"shx": "^0.3.4",
"syncpack": "^8.5.14",
"ts-jest": "29.1.0",
"ts-node": "^10.9.1",
"typescript": "5.2.2",
"verdaccio": "5.20.1"
},
"engines": {
"pnpm": ">=8.6.10"
},
"packageManager": "pnpm@8.6.10",
"pnpm": {
"overrides": {
"@yarnpkg/fslib": "3.0.0-rc.25",
"@yarnpkg/libzip": "3.0.0-rc.25",
"clipanion": "3.2.0-rc.6",
"debug@<3.1.0": ">=3.1.0",
"glob-parent@<5.1.2": ">=5.1.2",
"hosted-git-info@4": "npm:@zkochan/hosted-git-info@^4.0.2",
"istanbul-reports": "npm:@zkochan/istanbul-reports",
"js-yaml@^4.0.0": "npm:@zkochan/js-yaml@0.0.6",
"json5@<2.2.2": ">=2.2.2",
"jsonwebtoken@<=8.5.1": ">=9.0.0",
"nopt@5": "npm:@pnpm/nopt@^0.2.1",
"verdaccio": "5.20.1",
"yaml@<2.2.2": ">=2.2.2",
"semver@<7.5.2": ">=7.5.2",
"@yarnpkg/core": "4.0.0-rc.45",
"@yarnpkg/extensions": "2.0.0-rc.22",
"@yarnpkg/fslib@^3.0.0-rc.45": "3.0.0-rc.45",
"@yarnpkg/libui@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/libzip@^3.0.0-rc.42": "3.0.0-rc.45",
"@yarnpkg/libzip@^3.0.0-rc.45": "3.0.0-rc.45",
"@yarnpkg/nm": "4.0.0-rc.45",
"@yarnpkg/parsers@^3.0.0-rc.45": "3.0.0-rc.45",
"@yarnpkg/plugin-compat@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-compat@^4.0.0-rc.45": "4.0.0-rc.42",
"@yarnpkg/plugin-constraints@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-dlx@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-essentials@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-exec@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/plugin-file@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/plugin-git@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/plugin-github@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/plugin-http@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/plugin-init@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-interactive-tools@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-link@^3.0.0-rc.42": "3.0.0-rc.42",
"@yarnpkg/plugin-nm@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-npm": "3.0.0-rc.42",
"@yarnpkg/plugin-npm-cli@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-pack": "4.0.0-rc.42",
"@yarnpkg/plugin-patch@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-pnp@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-pnpm@^2.0.0-rc.42": "2.0.0-rc.42",
"@yarnpkg/plugin-stage@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-typescript@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-version@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/plugin-workspace-tools@^4.0.0-rc.42": "4.0.0-rc.42",
"@yarnpkg/pnp@^4.0.0-rc.42": "4.0.0-rc.45",
"@yarnpkg/pnp@^4.0.0-rc.45": "4.0.0-rc.45",
"@yarnpkg/shell@^4.0.0-rc.42": "4.0.0-rc.45",
"@yarnpkg/shell@^4.0.0-rc.45": "4.0.0-rc.45",
"tough-cookie@<4.1.3": ">=4.1.3"
},
"packageExtensions": {
"@babel/parser": {
"peerDependencies": {
"@babel/types": "*"
}
},
"@yarnpkg/core": {
"dependencies": {
"@types/lodash": "4.14.197"
}
},
"jest-circus": {
"dependencies": {
"slash": "3"
}
},
"remark-stringify": {
"peerDependencies": {
"unified": "*"
}
},
"remark-parse": {
"peerDependencies": {
"unified": "*"
}
},
"@yarnpkg/nm": {
"dependencies": {
"@yarnpkg/pnp": "^4.0.0-rc.25"
}
}
},
"neverBuiltDependencies": [
"core-js",
"level"
],
"peerDependencyRules": {
"allowedVersions": {
"eslint": "*",
"@yarnpkg/core": "*"
},
"ignoreMissing": [
"@yarnpkg/plugin-patch"
]
},
"patchedDependencies": {
"pkg@5.8.1": "__patches__/pkg.patch",
"graceful-fs@4.2.11": "__patches__/graceful-fs@4.2.11.patch"
},
"updateConfig": {
"ignoreDependencies": [
"boxen",
"camelcase",
"camelcase-keys",
"chalk",
"detect-indent",
"escape-string-regexp",
"filenamify",
"find-up",
"get-port",
"is-port-reachable",
"load-json-file",
"mem",
"node-fetch",
"normalize-newline",
"p-any",
"p-defer",
"p-filter",
"p-limit",
"p-memoize",
"p-queue",
"p-settle",
"parse-json",
"path-exists",
"pretty-bytes",
"pretty-ms",
"process-exists",
"ps-list",
"sort-keys",
"string-length",
"strip-ansi",
"strip-bom",
"tempy",
"unique-string",
"wrap-ansi",
"write-json-file",
"write-pkg"
]
},
"auditConfig": {
"ignoreCves": [
"CVE-2023-28155"
]
}
}
}