From 77c754b10a30d9fb5b2e94238ecd146c0f93be82 Mon Sep 17 00:00:00 2001 From: await-ovo <13152410380@163.com> Date: Thu, 23 Feb 2023 18:12:32 +0800 Subject: [PATCH] chore: eslint issues (#6123) --- .meta-updater/src/index.ts | 4 ++-- cli/cli-meta/package.json | 2 +- cli/cli-utils/package.json | 2 +- cli/command/package.json | 2 +- cli/common-cli-options-help/package.json | 2 +- cli/default-reporter/package.json | 2 +- cli/parse-cli-args/package.json | 2 +- config/config/package.json | 2 +- config/matcher/package.json | 2 +- config/normalize-registries/package.json | 2 +- config/package-is-installable/package.json | 2 +- config/parse-overrides/package.json | 2 +- config/pick-registry-for-package/package.json | 2 +- config/plugin-commands-config/package.json | 2 +- env/node.fetcher/package.json | 2 +- env/node.resolver/package.json | 2 +- env/plugin-commands-env/package.json | 2 +- exec/build-modules/package.json | 2 +- exec/lifecycle/package.json | 2 +- exec/plugin-commands-rebuild/package.json | 2 +- exec/plugin-commands-script-runners/package.json | 2 +- exec/prepare-package/package.json | 2 +- exec/run-npm/package.json | 2 +- fetching/directory-fetcher/package.json | 2 +- fetching/fetcher-base/package.json | 2 +- fetching/git-fetcher/package.json | 2 +- fetching/pick-fetcher/package.json | 2 +- fetching/tarball-fetcher/package.json | 2 +- fs/find-packages/package.json | 2 +- fs/graceful-fs/package.json | 2 +- fs/hard-link-dir/package.json | 3 +-- fs/indexed-pkg-importer/package.json | 2 +- fs/read-modules-dir/package.json | 2 +- fs/symlink-dependency/package.json | 2 +- hooks/pnpmfile/package.json | 2 +- hooks/read-package-hook/package.json | 2 +- lockfile/audit/package.json | 2 +- lockfile/filter-lockfile/package.json | 4 ++-- lockfile/lockfile-file/package.json | 2 +- lockfile/lockfile-to-pnp/package.json | 4 ++-- lockfile/lockfile-types/package.json | 2 +- lockfile/lockfile-utils/package.json | 4 ++-- lockfile/lockfile-walker/package.json | 4 ++-- lockfile/merge-lockfile-changes/package.json | 2 +- lockfile/plugin-commands-audit/package.json | 2 +- lockfile/prune-lockfile/package.json | 4 ++-- network/auth-header/package.json | 2 +- network/fetch/package.json | 2 +- network/fetching-types/package.json | 2 +- package.json | 2 +- packages/calc-dep-state/package.json | 2 +- packages/constants/package.json | 2 +- packages/core-loggers/package.json | 2 +- packages/crypto.base32-hash/package.json | 2 +- packages/dependency-path/package.json | 6 +++--- packages/error/package.json | 2 +- packages/git-utils/package.json | 2 +- packages/make-dedicated-lockfile/package.json | 2 +- packages/mount-modules/package.json | 4 ++-- packages/parse-wanted-dependency/package.json | 2 +- packages/plugin-commands-doctor/package.json | 2 +- packages/plugin-commands-init/package.json | 2 +- packages/plugin-commands-setup/package.json | 2 +- packages/render-peer-issues/package.json | 2 +- packages/types/package.json | 2 +- packages/which-version-is-pinned/package.json | 2 +- patching/apply-patch/package.json | 2 +- patching/plugin-commands-patching/package.json | 2 +- pkg-manager/client/package.json | 2 +- pkg-manager/core/package.json | 2 +- pkg-manager/direct-dep-linker/package.json | 2 +- pkg-manager/get-context/package.json | 2 +- pkg-manager/headless/package.json | 2 +- pkg-manager/hoist/package.json | 2 +- pkg-manager/link-bins/package.json | 2 +- pkg-manager/modules-cleaner/package.json | 4 ++-- pkg-manager/modules-yaml/package.json | 2 +- pkg-manager/package-bins/package.json | 2 +- pkg-manager/package-requester/package.json | 2 +- pkg-manager/plugin-commands-installation/package.json | 2 +- pkg-manager/read-projects-context/package.json | 2 +- pkg-manager/real-hoist/package.json | 6 +++--- pkg-manager/remove-bins/package.json | 2 +- pkg-manager/resolve-dependencies/package.json | 4 ++-- pkg-manifest/exportable-manifest/package.json | 2 +- pkg-manifest/manifest-utils/package.json | 2 +- pkg-manifest/read-package-json/package.json | 2 +- pkg-manifest/read-project-manifest/package.json | 2 +- pkg-manifest/write-project-manifest/package.json | 2 +- pnpm/package.json | 2 +- pnpm/src/main.ts | 4 +++- pnpm/test/server.ts | 8 ++++++-- releasing/plugin-commands-deploy/package.json | 2 +- releasing/plugin-commands-publishing/package.json | 2 +- resolving/default-resolver/package.json | 2 +- resolving/git-resolver/package.json | 2 +- resolving/local-resolver/package.json | 2 +- resolving/npm-resolver/package.json | 2 +- resolving/resolver-base/package.json | 2 +- resolving/tarball-resolver/package.json | 2 +- reviewing/dependencies-hierarchy/package.json | 8 ++++---- reviewing/license-scanner/package.json | 4 ++-- reviewing/list/package.json | 4 ++-- reviewing/outdated/package.json | 4 ++-- reviewing/plugin-commands-licenses/package.json | 2 +- reviewing/plugin-commands-listing/package.json | 2 +- reviewing/plugin-commands-outdated/package.json | 2 +- store/cafs-types/package.json | 2 +- store/cafs/package.json | 2 +- store/create-cafs-store/package.json | 2 +- store/package-store/package.json | 2 +- store/plugin-commands-server/package.json | 2 +- store/plugin-commands-store/package.json | 2 +- store/server/package.json | 2 +- store/store-connection-manager/package.json | 2 +- store/store-controller-types/package.json | 2 +- store/store-path/package.json | 2 +- text/comments-parser/package.json | 2 +- workspace/filter-workspace-packages/package.json | 2 +- workspace/find-workspace-dir/package.json | 2 +- workspace/find-workspace-packages/package.json | 4 ++-- workspace/pkgs-graph/package.json | 6 +++--- workspace/resolve-workspace-range/package.json | 2 +- workspace/sort-packages/package.json | 2 +- 124 files changed, 153 insertions(+), 148 deletions(-) diff --git a/.meta-updater/src/index.ts b/.meta-updater/src/index.ts index 6177100e1..53b553c62 100644 --- a/.meta-updater/src/index.ts +++ b/.meta-updater/src/index.ts @@ -207,9 +207,9 @@ async function updateManifest (workspaceDir: string, manifest: ProjectManifest, } if (scripts.lint) { if (fs.existsSync(path.join(dir, 'test'))) { - scripts.lint = 'eslint src/**/*.ts test/**/*.ts' + scripts.lint = 'eslint "src/**/*.ts" "test/**/*.ts"' } else { - scripts.lint = 'eslint src/**/*.ts' + scripts.lint = 'eslint "src/**/*.ts"' } } const files: string[] = [] diff --git a/cli/cli-meta/package.json b/cli/cli-meta/package.json index 8b5f6c4fb..b6397c684 100644 --- a/cli/cli-meta/package.json +++ b/cli/cli-meta/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/cli/cli-utils/package.json b/cli/cli-utils/package.json index adc7077ca..3244dc1eb 100644 --- a/cli/cli-utils/package.json +++ b/cli/cli-utils/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", "test": "pnpm run compile" diff --git a/cli/command/package.json b/cli/command/package.json index 85e899356..ae1cd9ed2 100644 --- a/cli/command/package.json +++ b/cli/command/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/cli/common-cli-options-help/package.json b/cli/common-cli-options-help/package.json index 5aa7fb8e7..ecec5d3f4 100644 --- a/cli/common-cli-options-help/package.json +++ b/cli/common-cli-options-help/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/cli/default-reporter/package.json b/cli/default-reporter/package.json index 5137e7242..37621b5e1 100644 --- a/cli/default-reporter/package.json +++ b/cli/default-reporter/package.json @@ -10,7 +10,7 @@ ], "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "just-test-preview": "ts-node test --type-check", "_test": "jest", "test": "pnpm run compile && pnpm run _test", diff --git a/cli/parse-cli-args/package.json b/cli/parse-cli-args/package.json index 1d3434dc1..1f2d5d774 100644 --- a/cli/parse-cli-args/package.json +++ b/cli/parse-cli-args/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/config/config/package.json b/config/config/package.json index fa569b99a..714df5504 100644 --- a/config/config/package.json +++ b/config/config/package.json @@ -10,7 +10,7 @@ ], "scripts": { "prepublishOnly": "pnpm run compile", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "test-with-preview": "ts-node test", "_test": "jest", "test": "pnpm run compile && pnpm run _test", diff --git a/config/matcher/package.json b/config/matcher/package.json index 648e7c778..ca597cc9c 100644 --- a/config/matcher/package.json +++ b/config/matcher/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/config/normalize-registries/package.json b/config/normalize-registries/package.json index e3ce7a543..5ec20240a 100644 --- a/config/normalize-registries/package.json +++ b/config/normalize-registries/package.json @@ -21,7 +21,7 @@ "repository": "https://github.com/pnpm/pnpm/blob/main/config/normalize-registries", "scripts": { "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/config/package-is-installable/package.json b/config/package-is-installable/package.json index c8863304e..d9704c4e1 100644 --- a/config/package-is-installable/package.json +++ b/config/package-is-installable/package.json @@ -24,7 +24,7 @@ "start": "tsc --watch", "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/config/parse-overrides/package.json b/config/parse-overrides/package.json index 353bdc706..75e92e5a3 100644 --- a/config/parse-overrides/package.json +++ b/config/parse-overrides/package.json @@ -22,7 +22,7 @@ "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/config/pick-registry-for-package/package.json b/config/pick-registry-for-package/package.json index 87bccdcf0..27b0cbdde 100644 --- a/config/pick-registry-for-package/package.json +++ b/config/pick-registry-for-package/package.json @@ -22,7 +22,7 @@ "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/config/plugin-commands-config/package.json b/config/plugin-commands-config/package.json index 3b2d2e62f..e14573299 100644 --- a/config/plugin-commands-config/package.json +++ b/config/plugin-commands-config/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/env/node.fetcher/package.json b/env/node.fetcher/package.json index 3670fca6b..da88f49bd 100644 --- a/env/node.fetcher/package.json +++ b/env/node.fetcher/package.json @@ -16,7 +16,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/env/node.resolver/package.json b/env/node.resolver/package.json index 9b050b3c0..a78660096 100644 --- a/env/node.resolver/package.json +++ b/env/node.resolver/package.json @@ -16,7 +16,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/env/plugin-commands-env/package.json b/env/plugin-commands-env/package.json index ceb0da7e5..99c949fda 100644 --- a/env/plugin-commands-env/package.json +++ b/env/plugin-commands-env/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/exec/build-modules/package.json b/exec/build-modules/package.json index d0854ce90..b17698193 100644 --- a/exec/build-modules/package.json +++ b/exec/build-modules/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", diff --git a/exec/lifecycle/package.json b/exec/lifecycle/package.json index 7cc82fffc..5c241d007 100644 --- a/exec/lifecycle/package.json +++ b/exec/lifecycle/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/exec/plugin-commands-rebuild/package.json b/exec/plugin-commands-rebuild/package.json index b6a3b154c..b0700ed4f 100644 --- a/exec/plugin-commands-rebuild/package.json +++ b/exec/plugin-commands-rebuild/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/exec/plugin-commands-script-runners/package.json b/exec/plugin-commands-script-runners/package.json index c8b5cc304..c51479aa1 100644 --- a/exec/plugin-commands-script-runners/package.json +++ b/exec/plugin-commands-script-runners/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/exec/prepare-package/package.json b/exec/prepare-package/package.json index 625dc8dc7..42d9bcc8c 100644 --- a/exec/prepare-package/package.json +++ b/exec/prepare-package/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", diff --git a/exec/run-npm/package.json b/exec/run-npm/package.json index 053a1bca2..3ece0707d 100644 --- a/exec/run-npm/package.json +++ b/exec/run-npm/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/fetching/directory-fetcher/package.json b/fetching/directory-fetcher/package.json index 7d07bc282..551c9cafb 100644 --- a/fetching/directory-fetcher/package.json +++ b/fetching/directory-fetcher/package.json @@ -12,7 +12,7 @@ "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/fetching/fetcher-base/package.json b/fetching/fetcher-base/package.json index c459c1f21..8860d8c91 100644 --- a/fetching/fetcher-base/package.json +++ b/fetching/fetcher-base/package.json @@ -10,7 +10,7 @@ ], "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/fetching/git-fetcher/package.json b/fetching/git-fetcher/package.json index 340881baa..d67b47c11 100644 --- a/fetching/git-fetcher/package.json +++ b/fetching/git-fetcher/package.json @@ -11,7 +11,7 @@ "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/fetching/pick-fetcher/package.json b/fetching/pick-fetcher/package.json index 4c6ba8fd6..295475f84 100644 --- a/fetching/pick-fetcher/package.json +++ b/fetching/pick-fetcher/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/fetching/tarball-fetcher/package.json b/fetching/tarball-fetcher/package.json index e45b8ae4e..6adc26e08 100644 --- a/fetching/tarball-fetcher/package.json +++ b/fetching/tarball-fetcher/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "_test": "jest", "test": "pnpm run compile && pnpm run _test", diff --git a/fs/find-packages/package.json b/fs/find-packages/package.json index 938682d02..b5bbdfbff 100644 --- a/fs/find-packages/package.json +++ b/fs/find-packages/package.json @@ -9,7 +9,7 @@ ], "types": "lib/index.d.ts", "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/fs/graceful-fs/package.json b/fs/graceful-fs/package.json index 3d1266e30..1fd622c4a 100644 --- a/fs/graceful-fs/package.json +++ b/fs/graceful-fs/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/fs/hard-link-dir/package.json b/fs/hard-link-dir/package.json index fb11a3092..328fc9080 100644 --- a/fs/hard-link-dir/package.json +++ b/fs/hard-link-dir/package.json @@ -9,7 +9,7 @@ ], "types": "lib/index.d.ts", "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -29,7 +29,6 @@ "url": "https://github.com/pnpm/pnpm/issues" }, "homepage": "https://github.com/pnpm/pnpm/blob/main/fs/hard-link-dir#readme", - "dependencies": {}, "funding": "https://opencollective.com/pnpm", "devDependencies": { "@pnpm/fs.hard-link-dir": "workspace:*", diff --git a/fs/indexed-pkg-importer/package.json b/fs/indexed-pkg-importer/package.json index caace0ed8..252429e3c 100644 --- a/fs/indexed-pkg-importer/package.json +++ b/fs/indexed-pkg-importer/package.json @@ -53,7 +53,7 @@ "scripts": { "start": "tsc --watch", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "pretest": "rimraf .tmp", "_test": "pnpm pretest && jest", "test": "pnpm run compile && pnpm run _test", diff --git a/fs/read-modules-dir/package.json b/fs/read-modules-dir/package.json index ac77b2fce..5c2f0ea64 100644 --- a/fs/read-modules-dir/package.json +++ b/fs/read-modules-dir/package.json @@ -20,7 +20,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/fs/symlink-dependency/package.json b/fs/symlink-dependency/package.json index a71f98f63..da6790f8e 100644 --- a/fs/symlink-dependency/package.json +++ b/fs/symlink-dependency/package.json @@ -34,7 +34,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", "_test": "jest" diff --git a/hooks/pnpmfile/package.json b/hooks/pnpmfile/package.json index d6e4417de..3402e843d 100644 --- a/hooks/pnpmfile/package.json +++ b/hooks/pnpmfile/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/hooks/read-package-hook/package.json b/hooks/read-package-hook/package.json index 54edd7980..ecf9853db 100644 --- a/hooks/read-package-hook/package.json +++ b/hooks/read-package-hook/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/lockfile/audit/package.json b/lockfile/audit/package.json index 8ec1d4778..6e5d84fcf 100644 --- a/lockfile/audit/package.json +++ b/lockfile/audit/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/lockfile/filter-lockfile/package.json b/lockfile/filter-lockfile/package.json index 39d1aff9d..489bcfcec 100644 --- a/lockfile/filter-lockfile/package.json +++ b/lockfile/filter-lockfile/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -43,13 +43,13 @@ }, "dependencies": { "@pnpm/constants": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/error": "workspace:*", "@pnpm/lockfile-types": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", "@pnpm/lockfile-walker": "workspace:*", "@pnpm/package-is-installable": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "ramda": "npm:@pnpm/ramda@0.28.1" }, "funding": "https://opencollective.com/pnpm", diff --git a/lockfile/lockfile-file/package.json b/lockfile/lockfile-file/package.json index 0b2e4b9f7..44d55a816 100644 --- a/lockfile/lockfile-file/package.json +++ b/lockfile/lockfile-file/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/lockfile/lockfile-to-pnp/package.json b/lockfile/lockfile-to-pnp/package.json index 773f49148..84c5bee1a 100644 --- a/lockfile/lockfile-to-pnp/package.json +++ b/lockfile/lockfile-to-pnp/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "_test": "jest", @@ -40,11 +40,11 @@ "rimraf": "^3.0.2" }, "dependencies": { + "@pnpm/dependency-path": "workspace:*", "@pnpm/lockfile-file": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", "@pnpm/types": "workspace:*", "@yarnpkg/pnp": "^2.3.2", - "@pnpm/dependency-path": "workspace:*", "normalize-path": "^3.0.0", "ramda": "npm:@pnpm/ramda@0.28.1" }, diff --git a/lockfile/lockfile-types/package.json b/lockfile/lockfile-types/package.json index 7cf9db768..d7f49bd38 100644 --- a/lockfile/lockfile-types/package.json +++ b/lockfile/lockfile-types/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-types#readme", "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "compile": "tsc --build && pnpm run lint --fix", "prepublishOnly": "pnpm run compile" }, diff --git a/lockfile/lockfile-utils/package.json b/lockfile/lockfile-utils/package.json index 33894707e..8a61e9bf5 100644 --- a/lockfile/lockfile-utils/package.json +++ b/lockfile/lockfile-utils/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -39,10 +39,10 @@ "yaml-tag": "1.1.0" }, "dependencies": { + "@pnpm/dependency-path": "workspace:*", "@pnpm/lockfile-types": "workspace:*", "@pnpm/resolver-base": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "get-npm-tarball-url": "^2.0.3", "ramda": "npm:@pnpm/ramda@0.28.1" }, diff --git a/lockfile/lockfile-walker/package.json b/lockfile/lockfile-walker/package.json index 5ec1c8f76..e91640709 100644 --- a/lockfile/lockfile-walker/package.json +++ b/lockfile/lockfile-walker/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" @@ -35,9 +35,9 @@ "tempy": "^1.0.1" }, "dependencies": { + "@pnpm/dependency-path": "workspace:*", "@pnpm/lockfile-types": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "ramda": "npm:@pnpm/ramda@0.28.1" }, "funding": "https://opencollective.com/pnpm", diff --git a/lockfile/merge-lockfile-changes/package.json b/lockfile/merge-lockfile-changes/package.json index 3c468b6a3..ec736d866 100644 --- a/lockfile/merge-lockfile-changes/package.json +++ b/lockfile/merge-lockfile-changes/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/lockfile/plugin-commands-audit/package.json b/lockfile/plugin-commands-audit/package.json index ac380dbab..fce71ed8f 100644 --- a/lockfile/plugin-commands-audit/package.json +++ b/lockfile/plugin-commands-audit/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/lockfile/prune-lockfile/package.json b/lockfile/prune-lockfile/package.json index c5d21ad3f..442b01ca4 100644 --- a/lockfile/prune-lockfile/package.json +++ b/lockfile/prune-lockfile/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -37,9 +37,9 @@ }, "dependencies": { "@pnpm/constants": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/lockfile-types": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "ramda": "npm:@pnpm/ramda@0.28.1" }, "funding": "https://opencollective.com/pnpm", diff --git a/network/auth-header/package.json b/network/auth-header/package.json index 1f024be07..04f92cecb 100644 --- a/network/auth-header/package.json +++ b/network/auth-header/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/network/fetch/package.json b/network/fetch/package.json index 0ed3ef77e..12cb5100c 100644 --- a/network/fetch/package.json +++ b/network/fetch/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/network/fetching-types/package.json b/network/fetching-types/package.json index 840d5ea04..70c62919e 100644 --- a/network/fetching-types/package.json +++ b/network/fetching-types/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/network/fetching-types#readme", "scripts": { "compile": "tsc --build && pnpm run lint --fix", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "test": "pnpm run compile" }, diff --git a/package.json b/package.json index 70f0b44fe..b1fdf646a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "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", + "lint:ts": "eslint \"**/src/**/*.ts\" \"**/test/**/*.ts\"", "test-main": "pnpm pretest && pnpm lint --quiet && run-p -r verdaccio test-pkgs-main", "remove-temp-dir": "shx rm -rf ../pnpm_tmp", "test-pkgs-main": "pnpm remove-temp-dir && cross-env PNPM_REGISTRY_MOCK_UPLINK=http://localhost:7348 pnpm run --no-sort --workspace-concurrency=2 -r _test", diff --git a/packages/calc-dep-state/package.json b/packages/calc-dep-state/package.json index 33deccde5..6269788eb 100644 --- a/packages/calc-dep-state/package.json +++ b/packages/calc-dep-state/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/constants/package.json b/packages/constants/package.json index fbbb65fb3..3b797aded 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -14,7 +14,7 @@ "scripts": { "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "compile": "tsc --build && pnpm run lint --fix" }, "repository": "https://github.com/pnpm/pnpm/blob/main/packages/constants", diff --git a/packages/core-loggers/package.json b/packages/core-loggers/package.json index 70907207a..17e0b0b2e 100644 --- a/packages/core-loggers/package.json +++ b/packages/core-loggers/package.json @@ -31,7 +31,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/packages/crypto.base32-hash/package.json b/packages/crypto.base32-hash/package.json index 7c40ee487..0fd3f024e 100644 --- a/packages/crypto.base32-hash/package.json +++ b/packages/crypto.base32-hash/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/dependency-path/package.json b/packages/dependency-path/package.json index 5ca8077a2..1c021f954 100644 --- a/packages/dependency-path/package.json +++ b/packages/dependency-path/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -37,8 +37,8 @@ "semver": "^7.3.8" }, "devDependencies": { - "@types/semver": "7.3.13", - "@pnpm/dependency-path": "workspace:*" + "@pnpm/dependency-path": "workspace:*", + "@types/semver": "7.3.13" }, "funding": "https://opencollective.com/pnpm", "exports": { diff --git a/packages/error/package.json b/packages/error/package.json index 34db13815..5910f010d 100644 --- a/packages/error/package.json +++ b/packages/error/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/packages/git-utils/package.json b/packages/git-utils/package.json index 92c8fc393..600707d65 100644 --- a/packages/git-utils/package.json +++ b/packages/git-utils/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/make-dedicated-lockfile/package.json b/packages/make-dedicated-lockfile/package.json index f0120a0c9..e4f576442 100644 --- a/packages/make-dedicated-lockfile/package.json +++ b/packages/make-dedicated-lockfile/package.json @@ -14,7 +14,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/mount-modules/package.json b/packages/mount-modules/package.json index 0dbdf43c9..5af7d8599 100644 --- a/packages/mount-modules/package.json +++ b/packages/mount-modules/package.json @@ -14,7 +14,7 @@ "bin" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "pretest": "pnpm install --dir=test/__fixtures__/simple", @@ -44,12 +44,12 @@ "dependencies": { "@pnpm/cafs": "workspace:*", "@pnpm/config": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/lockfile-file": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", "@pnpm/logger": "^5.0.0", "@pnpm/store-path": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "hyperdrive-schemas": "^2.0.0", "load-json-file": "^6.2.0", "normalize-path": "^3.0.0" diff --git a/packages/parse-wanted-dependency/package.json b/packages/parse-wanted-dependency/package.json index 732b8238c..0b4ee0a80 100644 --- a/packages/parse-wanted-dependency/package.json +++ b/packages/parse-wanted-dependency/package.json @@ -25,7 +25,7 @@ "repository": "https://github.com/pnpm/pnpm/blob/main/packages/parse-wanted-dependency", "scripts": { "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/packages/plugin-commands-doctor/package.json b/packages/plugin-commands-doctor/package.json index cba5f2b8d..7b39672ad 100644 --- a/packages/plugin-commands-doctor/package.json +++ b/packages/plugin-commands-doctor/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/plugin-commands-init/package.json b/packages/plugin-commands-init/package.json index e3bd9511f..f93852883 100644 --- a/packages/plugin-commands-init/package.json +++ b/packages/plugin-commands-init/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/plugin-commands-setup/package.json b/packages/plugin-commands-setup/package.json index e1b2afc14..526eb4729 100644 --- a/packages/plugin-commands-setup/package.json +++ b/packages/plugin-commands-setup/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/packages/render-peer-issues/package.json b/packages/render-peer-issues/package.json index 69ca01a4b..e8144216d 100644 --- a/packages/render-peer-issues/package.json +++ b/packages/render-peer-issues/package.json @@ -22,7 +22,7 @@ "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/packages/types/package.json b/packages/types/package.json index 405693324..c2825ffa7 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -15,7 +15,7 @@ "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", - "lint": "eslint src/**/*.ts" + "lint": "eslint \"src/**/*.ts\"" }, "repository": "https://github.com/pnpm/pnpm/blob/main/packages/types", "keywords": [ diff --git a/packages/which-version-is-pinned/package.json b/packages/which-version-is-pinned/package.json index a656e404f..9c652c5d8 100644 --- a/packages/which-version-is-pinned/package.json +++ b/packages/which-version-is-pinned/package.json @@ -22,7 +22,7 @@ "scripts": { "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/patching/apply-patch/package.json b/patching/apply-patch/package.json index 832b4cbcc..821fbfff8 100644 --- a/patching/apply-patch/package.json +++ b/patching/apply-patch/package.json @@ -15,7 +15,7 @@ "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", - "lint": "eslint src/**/*.ts" + "lint": "eslint \"src/**/*.ts\"" }, "repository": "https://github.com/pnpm/pnpm/blob/main/patching/apply-patch", "keywords": [ diff --git a/patching/plugin-commands-patching/package.json b/patching/plugin-commands-patching/package.json index 04edd777e..9d0483983 100644 --- a/patching/plugin-commands-patching/package.json +++ b/patching/plugin-commands-patching/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/pkg-manager/client/package.json b/pkg-manager/client/package.json index 47952854b..1a7ee11ad 100644 --- a/pkg-manager/client/package.json +++ b/pkg-manager/client/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manager/core/package.json b/pkg-manager/core/package.json index faa291fc1..2d8555df7 100644 --- a/pkg-manager/core/package.json +++ b/pkg-manager/core/package.json @@ -138,7 +138,7 @@ "?commit": "echo 'Run Git commit wizard'", "commit": "commit", "commitmsg": "commitlint -e", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/pkg-manager/direct-dep-linker/package.json b/pkg-manager/direct-dep-linker/package.json index c5ba5d337..91cafc229 100644 --- a/pkg-manager/direct-dep-linker/package.json +++ b/pkg-manager/direct-dep-linker/package.json @@ -29,7 +29,7 @@ }, "repository": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/direct-dep-linker", "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/pkg-manager/get-context/package.json b/pkg-manager/get-context/package.json index e95b9be5a..1dd1d8216 100644 --- a/pkg-manager/get-context/package.json +++ b/pkg-manager/get-context/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manager/headless/package.json b/pkg-manager/headless/package.json index 6431b3111..5fe6a665a 100644 --- a/pkg-manager/headless/package.json +++ b/pkg-manager/headless/package.json @@ -55,7 +55,7 @@ "start": "tsc --watch", "commit": "commit", "commitmsg": "commitlint -e", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/pkg-manager/hoist/package.json b/pkg-manager/hoist/package.json index df602b0db..877606daf 100644 --- a/pkg-manager/hoist/package.json +++ b/pkg-manager/hoist/package.json @@ -34,7 +34,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/pkg-manager/link-bins/package.json b/pkg-manager/link-bins/package.json index 74a97b8e3..77adfc639 100644 --- a/pkg-manager/link-bins/package.json +++ b/pkg-manager/link-bins/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manager/modules-cleaner/package.json b/pkg-manager/modules-cleaner/package.json index 2f40a38c0..23b0b4c74 100644 --- a/pkg-manager/modules-cleaner/package.json +++ b/pkg-manager/modules-cleaner/package.json @@ -23,12 +23,13 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, "dependencies": { "@pnpm/core-loggers": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/filter-lockfile": "workspace:*", "@pnpm/lockfile-types": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", @@ -37,7 +38,6 @@ "@pnpm/store-controller-types": "workspace:*", "@pnpm/types": "workspace:*", "@zkochan/rimraf": "^2.1.2", - "@pnpm/dependency-path": "workspace:*", "ramda": "npm:@pnpm/ramda@0.28.1" }, "devDependencies": { diff --git a/pkg-manager/modules-yaml/package.json b/pkg-manager/modules-yaml/package.json index 4c32a2fa9..e828de7cc 100644 --- a/pkg-manager/modules-yaml/package.json +++ b/pkg-manager/modules-yaml/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manager/package-bins/package.json b/pkg-manager/package-bins/package.json index 76ac390cd..4e907967f 100644 --- a/pkg-manager/package-bins/package.json +++ b/pkg-manager/package-bins/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manager/package-requester/package.json b/pkg-manager/package-requester/package.json index 26e08e07a..2291de083 100644 --- a/pkg-manager/package-requester/package.json +++ b/pkg-manager/package-requester/package.json @@ -13,7 +13,7 @@ }, "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7774 pnpm run test:e2e", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manager/plugin-commands-installation/package.json b/pkg-manager/plugin-commands-installation/package.json index a851d8b25..246d65c98 100644 --- a/pkg-manager/plugin-commands-installation/package.json +++ b/pkg-manager/plugin-commands-installation/package.json @@ -13,7 +13,7 @@ }, "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/pkg-manager/read-projects-context/package.json b/pkg-manager/read-projects-context/package.json index 95ebf7309..569cb000e 100644 --- a/pkg-manager/read-projects-context/package.json +++ b/pkg-manager/read-projects-context/package.json @@ -23,7 +23,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/pkg-manager/real-hoist/package.json b/pkg-manager/real-hoist/package.json index ca8e4788f..081ce8724 100644 --- a/pkg-manager/real-hoist/package.json +++ b/pkg-manager/real-hoist/package.json @@ -25,15 +25,15 @@ "start": "tsc --watch", "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, "dependencies": { + "@pnpm/dependency-path": "workspace:*", "@pnpm/error": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", - "@yarnpkg/nm": "4.0.0-rc.27", - "@pnpm/dependency-path": "workspace:*" + "@yarnpkg/nm": "4.0.0-rc.27" }, "funding": "https://opencollective.com/pnpm", "devDependencies": { diff --git a/pkg-manager/remove-bins/package.json b/pkg-manager/remove-bins/package.json index af3d9302e..980ef66b3 100644 --- a/pkg-manager/remove-bins/package.json +++ b/pkg-manager/remove-bins/package.json @@ -23,7 +23,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/pkg-manager/resolve-dependencies/package.json b/pkg-manager/resolve-dependencies/package.json index 7dbfc3546..fe631a972 100644 --- a/pkg-manager/resolve-dependencies/package.json +++ b/pkg-manager/resolve-dependencies/package.json @@ -23,7 +23,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", "_test": "jest" @@ -31,6 +31,7 @@ "dependencies": { "@pnpm/constants": "workspace:*", "@pnpm/core-loggers": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/error": "workspace:*", "@pnpm/lockfile-types": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", @@ -44,7 +45,6 @@ "@pnpm/types": "workspace:*", "@pnpm/which-version-is-pinned": "workspace:*", "@yarnpkg/core": "4.0.0-rc.27", - "@pnpm/dependency-path": "workspace:*", "encode-registry": "^3.0.0", "filenamify": "^4.3.0", "get-npm-tarball-url": "^2.0.3", diff --git a/pkg-manifest/exportable-manifest/package.json b/pkg-manifest/exportable-manifest/package.json index 35e62febd..ea801812a 100644 --- a/pkg-manifest/exportable-manifest/package.json +++ b/pkg-manifest/exportable-manifest/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", diff --git a/pkg-manifest/manifest-utils/package.json b/pkg-manifest/manifest-utils/package.json index 769dc0d18..2883f7548 100644 --- a/pkg-manifest/manifest-utils/package.json +++ b/pkg-manifest/manifest-utils/package.json @@ -23,7 +23,7 @@ "start": "tsc --watch", "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/pkg-manifest/read-package-json/package.json b/pkg-manifest/read-package-json/package.json index 58af900a7..78f5303a8 100644 --- a/pkg-manifest/read-package-json/package.json +++ b/pkg-manifest/read-package-json/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manifest/read-project-manifest/package.json b/pkg-manifest/read-project-manifest/package.json index 9a047db3f..9b203a141 100644 --- a/pkg-manifest/read-project-manifest/package.json +++ b/pkg-manifest/read-project-manifest/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pkg-manifest/write-project-manifest/package.json b/pkg-manifest/write-project-manifest/package.json index 372277826..29f31a8b2 100644 --- a/pkg-manifest/write-project-manifest/package.json +++ b/pkg-manifest/write-project-manifest/package.json @@ -12,7 +12,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/pnpm/package.json b/pnpm/package.json index 2a8cd76c8..98ff4c32f 100644 --- a/pnpm/package.json +++ b/pnpm/package.json @@ -151,7 +151,7 @@ "scripts": { "bundle": "cross-var esbuild lib/pnpm.js --bundle --platform=node --outfile=dist/pnpm.cjs --external:node-gyp --define:process.env.npm_package_name=\\\"$npm_package_name\\\" --define:process.env.npm_package_version=\\\"$npm_package_version\\\"", "start": "tsc --watch", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "pretest:e2e": "rimraf node_modules/.bin/pnpm", diff --git a/pnpm/src/main.ts b/pnpm/src/main.ts index 56df3030f..e90ff5694 100644 --- a/pnpm/src/main.ts +++ b/pnpm/src/main.ts @@ -232,7 +232,9 @@ export async function main (inputArgv: string[]) { let { output, exitCode }: { output: string | null, exitCode: number } = await (async () => { // NOTE: we defer the next stage, otherwise reporter might not catch all the logs - await new Promise((resolve) => setTimeout(() => resolve(), 0)) + await new Promise((resolve) => setTimeout(() => { + resolve() + }, 0)) if ( config.updateNotifier !== false && diff --git a/pnpm/test/server.ts b/pnpm/test/server.ts index e7dd413aa..0e2f3795b 100644 --- a/pnpm/test/server.ts +++ b/pnpm/test/server.ts @@ -230,8 +230,12 @@ async function testParallelServerStart ( } serverProcessList.push(item) - byline(item.childProcess.stderr as Readable).on('data', (line: Buffer) => console.log(`${item.childProcess.pid?.toString() ?? ''}: ${line.toString()}`)) - byline(item.childProcess.stdout as Readable).on('data', (line: Buffer) => console.log(`${item.childProcess.pid?.toString() ?? ''}: ${line.toString()}`)) + byline(item.childProcess.stderr as Readable).on('data', (line: Buffer) => { + console.log(`${item.childProcess.pid?.toString() ?? ''}: ${line.toString()}`) + }) + byline(item.childProcess.stdout as Readable).on('data', (line: Buffer) => { + console.log(`${item.childProcess.pid?.toString() ?? ''}: ${line.toString()}`) + }) item.childProcess.on('exit', async (code: number | null, signal: string | null) => { options.onProcessClosed(item.childProcess, item.attemptedToKill) diff --git a/releasing/plugin-commands-deploy/package.json b/releasing/plugin-commands-deploy/package.json index 209e88a0e..8c499a1e4 100644 --- a/releasing/plugin-commands-deploy/package.json +++ b/releasing/plugin-commands-deploy/package.json @@ -17,7 +17,7 @@ }, "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/releasing/plugin-commands-publishing/package.json b/releasing/plugin-commands-publishing/package.json index 9d6890fd0..778d8e69f 100644 --- a/releasing/plugin-commands-publishing/package.json +++ b/releasing/plugin-commands-publishing/package.json @@ -13,7 +13,7 @@ }, "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/resolving/default-resolver/package.json b/resolving/default-resolver/package.json index 843772561..f590e4dc2 100644 --- a/resolving/default-resolver/package.json +++ b/resolving/default-resolver/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/resolving/git-resolver/package.json b/resolving/git-resolver/package.json index 68502a7a0..49c527020 100644 --- a/resolving/git-resolver/package.json +++ b/resolving/git-resolver/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/resolving/local-resolver/package.json b/resolving/local-resolver/package.json index 3fd475748..47855f5e5 100644 --- a/resolving/local-resolver/package.json +++ b/resolving/local-resolver/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/resolving/npm-resolver/package.json b/resolving/npm-resolver/package.json index e0e706f01..3f9247029 100644 --- a/resolving/npm-resolver/package.json +++ b/resolving/npm-resolver/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/resolving/resolver-base/package.json b/resolving/resolver-base/package.json index e5852dba5..2404fd5b1 100644 --- a/resolving/resolver-base/package.json +++ b/resolving/resolver-base/package.json @@ -10,7 +10,7 @@ ], "scripts": { "start": "tsc --watch", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/resolving/tarball-resolver/package.json b/resolving/tarball-resolver/package.json index a99309331..f78048648 100644 --- a/resolving/tarball-resolver/package.json +++ b/resolving/tarball-resolver/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "_test": "jest", "test": "pnpm run compile && pnpm run _test", diff --git a/reviewing/dependencies-hierarchy/package.json b/reviewing/dependencies-hierarchy/package.json index 219ada0e8..b70003878 100644 --- a/reviewing/dependencies-hierarchy/package.json +++ b/reviewing/dependencies-hierarchy/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -32,6 +32,7 @@ }, "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/dependencies-hierarchy#readme", "dependencies": { + "@pnpm/dependency-path": "workspace:*", "@pnpm/lockfile-file": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", "@pnpm/modules-yaml": "workspace:*", @@ -39,16 +40,15 @@ "@pnpm/read-modules-dir": "workspace:*", "@pnpm/read-package-json": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "normalize-path": "^3.0.0", "realpath-missing": "^1.1.0", "resolve-link-target": "^2.0.0" }, "devDependencies": { "@pnpm/constants": "workspace:*", + "@pnpm/reviewing.dependencies-hierarchy": "workspace:*", "@pnpm/test-fixtures": "workspace:*", - "@types/normalize-path": "^3.0.0", - "@pnpm/reviewing.dependencies-hierarchy": "workspace:*" + "@types/normalize-path": "^3.0.0" }, "funding": "https://opencollective.com/pnpm", "exports": { diff --git a/reviewing/license-scanner/package.json b/reviewing/license-scanner/package.json index 7a60a5066..1273bb190 100644 --- a/reviewing/license-scanner/package.json +++ b/reviewing/license-scanner/package.json @@ -13,7 +13,7 @@ ], "scripts": { "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "registry-mock": "registry-mock", "test:jest": "jest", @@ -37,6 +37,7 @@ }, "dependencies": { "@pnpm/cafs": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/directory-fetcher": "workspace:*", "@pnpm/error": "workspace:*", "@pnpm/lockfile-file": "workspace:*", @@ -46,7 +47,6 @@ "@pnpm/package-is-installable": "workspace:*", "@pnpm/read-package-json": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "load-json-file": "^6.2.0", "p-limit": "^3.1.0", "path-absolute": "^1.0.1", diff --git a/reviewing/list/package.json b/reviewing/list/package.json index 4a2ba8a31..80582825d 100644 --- a/reviewing/list/package.json +++ b/reviewing/list/package.json @@ -10,7 +10,7 @@ ], "scripts": { "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepareFixtures": "cd test && node ../../pnpm recursive install --no-link-workspace-packages --no-shared-workspace-lockfile -f && cd ..", "prepublishOnly": "pnpm run compile", "pretest": "pnpm run --filter dependencies-hierarchy pretest", @@ -34,11 +34,11 @@ }, "homepage": "https://github.com/pnpm/pnpm/blob/main/reviewing/list#readme", "dependencies": { - "@pnpm/reviewing.dependencies-hierarchy": "workspace:*", "@pnpm/matcher": "workspace:*", "@pnpm/npm-package-arg": "^1.0.0", "@pnpm/read-package-json": "workspace:*", "@pnpm/read-project-manifest": "workspace:*", + "@pnpm/reviewing.dependencies-hierarchy": "workspace:*", "@pnpm/types": "workspace:*", "archy": "^1.0.0", "chalk": "^4.1.2", diff --git a/reviewing/outdated/package.json b/reviewing/outdated/package.json index 726bfac08..d0edfcb1c 100644 --- a/reviewing/outdated/package.json +++ b/reviewing/outdated/package.json @@ -13,7 +13,7 @@ ], "scripts": { "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "registry-mock": "registry-mock", "test:jest": "jest", @@ -38,6 +38,7 @@ "dependencies": { "@pnpm/client": "workspace:*", "@pnpm/constants": "workspace:*", + "@pnpm/dependency-path": "workspace:*", "@pnpm/error": "workspace:*", "@pnpm/lockfile-file": "workspace:*", "@pnpm/lockfile-utils": "workspace:*", @@ -47,7 +48,6 @@ "@pnpm/npm-resolver": "workspace:*", "@pnpm/pick-registry-for-package": "workspace:*", "@pnpm/types": "workspace:*", - "@pnpm/dependency-path": "workspace:*", "ramda": "npm:@pnpm/ramda@0.28.1", "semver": "^7.3.8" }, diff --git a/reviewing/plugin-commands-licenses/package.json b/reviewing/plugin-commands-licenses/package.json index 4772d5aea..5a7615809 100644 --- a/reviewing/plugin-commands-licenses/package.json +++ b/reviewing/plugin-commands-licenses/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/reviewing/plugin-commands-listing/package.json b/reviewing/plugin-commands-listing/package.json index 9c5baa548..0e8b7f0e4 100644 --- a/reviewing/plugin-commands-listing/package.json +++ b/reviewing/plugin-commands-listing/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/reviewing/plugin-commands-outdated/package.json b/reviewing/plugin-commands-outdated/package.json index 7f9240039..9c44dc8c9 100644 --- a/reviewing/plugin-commands-outdated/package.json +++ b/reviewing/plugin-commands-outdated/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/store/cafs-types/package.json b/store/cafs-types/package.json index 4636afe3e..e951d4b93 100644 --- a/store/cafs-types/package.json +++ b/store/cafs-types/package.json @@ -15,7 +15,7 @@ "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", - "lint": "eslint src/**/*.ts" + "lint": "eslint \"src/**/*.ts\"" }, "repository": "https://github.com/pnpm/pnpm/blob/main/store/cafs-types", "keywords": [ diff --git a/store/cafs/package.json b/store/cafs/package.json index 6f2282c62..d08396f27 100644 --- a/store/cafs/package.json +++ b/store/cafs/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "compile": "tsc --build && pnpm run lint --fix", diff --git a/store/create-cafs-store/package.json b/store/create-cafs-store/package.json index 9e521b228..07bda45e3 100644 --- a/store/create-cafs-store/package.json +++ b/store/create-cafs-store/package.json @@ -51,7 +51,7 @@ "scripts": { "start": "tsc --watch", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/store/package-store/package.json b/store/package-store/package.json index 72e9ab486..822530d54 100644 --- a/store/package-store/package.json +++ b/store/package-store/package.json @@ -58,7 +58,7 @@ "scripts": { "start": "tsc --watch", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "pretest": "rimraf .tmp", "_test": "pnpm pretest && jest", "test": "pnpm run compile && pnpm run _test", diff --git a/store/plugin-commands-server/package.json b/store/plugin-commands-server/package.json index b4445770a..6d3f411d1 100644 --- a/store/plugin-commands-server/package.json +++ b/store/plugin-commands-server/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" diff --git a/store/plugin-commands-store/package.json b/store/plugin-commands-store/package.json index 3acd93a70..f1e7b64d8 100644 --- a/store/plugin-commands-store/package.json +++ b/store/plugin-commands-store/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "registry-mock": "registry-mock", "test:jest": "jest", "test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest", diff --git a/store/server/package.json b/store/server/package.json index 76f854295..d18f7f88c 100644 --- a/store/server/package.json +++ b/store/server/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest --detectOpenHandles", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/store/store-connection-manager/package.json b/store/store-connection-manager/package.json index a47c0e115..fcae17a81 100644 --- a/store/store-connection-manager/package.json +++ b/store/store-connection-manager/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "pretest": "rimraf node_modules/.bin/pnpm", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", diff --git a/store/store-controller-types/package.json b/store/store-controller-types/package.json index 188ad128f..4379d3d3b 100644 --- a/store/store-controller-types/package.json +++ b/store/store-controller-types/package.json @@ -15,7 +15,7 @@ "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix", - "lint": "eslint src/**/*.ts" + "lint": "eslint \"src/**/*.ts\"" }, "repository": "https://github.com/pnpm/pnpm/blob/main/store/store-controller-types", "keywords": [ diff --git a/store/store-path/package.json b/store/store-path/package.json index a720f802b..57a2d72ed 100644 --- a/store/store-path/package.json +++ b/store/store-path/package.json @@ -10,7 +10,7 @@ ], "scripts": { "prepublishOnly": "pnpm run compile", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "compile": "tsc --build && pnpm run lint --fix" diff --git a/text/comments-parser/package.json b/text/comments-parser/package.json index d85b59d9e..1b041ccc0 100644 --- a/text/comments-parser/package.json +++ b/text/comments-parser/package.json @@ -23,7 +23,7 @@ "start": "tsc --watch", "_test": "jest", "test": "pnpm run compile && pnpm run _test", - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/workspace/filter-workspace-packages/package.json b/workspace/filter-workspace-packages/package.json index d3efd6d02..0468c231a 100644 --- a/workspace/filter-workspace-packages/package.json +++ b/workspace/filter-workspace-packages/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/workspace/find-workspace-dir/package.json b/workspace/find-workspace-dir/package.json index 8f39442b1..9f18e7eb5 100644 --- a/workspace/find-workspace-dir/package.json +++ b/workspace/find-workspace-dir/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", diff --git a/workspace/find-workspace-packages/package.json b/workspace/find-workspace-packages/package.json index e8059f131..4108868f8 100644 --- a/workspace/find-workspace-packages/package.json +++ b/workspace/find-workspace-packages/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -31,9 +31,9 @@ "dependencies": { "@pnpm/cli-utils": "workspace:*", "@pnpm/constants": "workspace:*", + "@pnpm/fs.find-packages": "workspace:*", "@pnpm/types": "workspace:*", "@pnpm/util.lex-comparator": "1.0.0", - "@pnpm/fs.find-packages": "workspace:*", "read-yaml-file": "^2.1.0" }, "funding": "https://opencollective.com/pnpm", diff --git a/workspace/pkgs-graph/package.json b/workspace/pkgs-graph/package.json index 7ca58b746..46fc9b890 100644 --- a/workspace/pkgs-graph/package.json +++ b/workspace/pkgs-graph/package.json @@ -9,7 +9,7 @@ "!*.map" ], "scripts": { - "lint": "eslint src/**/*.ts test/**/*.ts", + "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"", "_test": "jest", "test": "pnpm run compile && pnpm run _test", "prepublishOnly": "pnpm run compile", @@ -25,9 +25,9 @@ }, "homepage": "https://github.com/pnpm/pnpm/blob/main/workspace/pkgs-graph#readme", "devDependencies": { + "@pnpm/workspace.pkgs-graph": "workspace:*", "@types/ramda": "0.28.20", - "better-path-resolve": "1.0.0", - "@pnpm/workspace.pkgs-graph": "workspace:*" + "better-path-resolve": "1.0.0" }, "dependencies": { "@pnpm/npm-package-arg": "^1.0.0", diff --git a/workspace/resolve-workspace-range/package.json b/workspace/resolve-workspace-range/package.json index ec8d1bda3..7ba1d6dd9 100644 --- a/workspace/resolve-workspace-range/package.json +++ b/workspace/resolve-workspace-range/package.json @@ -20,7 +20,7 @@ "scripts": { "start": "tsc --watch", "test": "pnpm run compile", - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix" }, diff --git a/workspace/sort-packages/package.json b/workspace/sort-packages/package.json index 537e9cef6..d039347c0 100644 --- a/workspace/sort-packages/package.json +++ b/workspace/sort-packages/package.json @@ -12,7 +12,7 @@ "node": ">=14.6" }, "scripts": { - "lint": "eslint src/**/*.ts", + "lint": "eslint \"src/**/*.ts\"", "test": "pnpm run compile", "prepublishOnly": "pnpm run compile", "compile": "tsc --build && pnpm run lint --fix"