ci: use pnpm v7 (#4307)

This commit is contained in:
Zoltan Kochan 2022-02-08 02:33:55 +02:00 committed by GitHub
parent b9fdc3104c
commit 25a0b58d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
107 changed files with 140 additions and 117 deletions

View File

@ -27,16 +27,16 @@ jobs:
- name: Checkout Commit
uses: actions/checkout@v1
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@pnpm-v7
with:
version: next
version: next-7
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install npm@7
run: pnpm add --global npm@7
run: npm add --global npm@7
- name: pnpm install
run: pnpm install
# - name: Audit

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
pnpm run lint -- --quiet
pnpm run lint --quiet

View File

@ -171,7 +171,7 @@ async function updateManifest (workspaceDir: string, manifest: ProjectManifest,
scripts._test += ' --detectOpenHandles'
}
}
scripts.compile = 'tsc --build && pnpm run lint -- --fix'
scripts.compile = 'tsc --build && pnpm run lint --fix'
delete scripts.tsc
let homepage: string
let repository: string | { type: 'git', url: string }

View File

@ -7,19 +7,19 @@
"prepare": "pnpm --dir=verdaccio install && husky install",
"pretest": "pnpm run compile-only && pnpm --dir=fixtures run prepareFixtures",
"lint": "pnpm lint:meta && syncpack list-mismatches && eslint **/src/**/*.ts **/test/**/*.ts",
"test-main": "pnpm pretest && pnpm lint -- --quiet && run-p -r verdaccio test-pkgs-main",
"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 --filter=./packages/** --filter=./privatePackages/** run --no-sort --workspace-concurrency=2 _test",
"test-branch": "pnpm pretest && pnpm lint -- --quiet && git remote set-branches --add origin main && git fetch && run-p -r verdaccio test-pkgs-branch",
"test-branch": "pnpm pretest && pnpm lint --quiet && git remote set-branches --add origin main && git fetch && run-p -r verdaccio test-pkgs-branch",
"test-pkgs-branch": "pnpm remove-temp-dir && cross-env PNPM_REGISTRY_MOCK_UPLINK=http://localhost:7348 pnpm --filter=...[origin/main] run --no-sort _test",
"verdaccio": "verdaccio --config=./verdaccio.yaml --listen=7348",
"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",
"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",
"lint:meta": "pnpm run meta-updater --test",
"copy-artifacts": "ts-node utils/scripts/src/copy-artifacts.ts",
"make-release-description": "pnpm run write-release-text --filter @pnpm/get-release-text",
"release": "pnpm --filter=@pnpm/exe publish --tag=next --access=public && pnpm publish --filter=!pnpm --filter=!@pnpm/exe --access=public && pnpm publish --filter=pnpm --tag=next --access=public"
@ -57,7 +57,7 @@
"verdaccio": "5.5.0"
},
"engines": {
"pnpm": ">=6"
"pnpm": ">=7"
},
"pnpm": {
"overrides": {

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/audit",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/build-modules",
"keywords": [

View File

@ -8,7 +8,7 @@
"lint": "eslint src/**/*.ts test/**/*.ts",
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"prepublishOnly": "pnpm run compile"
},
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/calc-dep-state",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/cli-meta",
"keywords": [

View File

@ -14,7 +14,7 @@
"scripts": {
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"test": "pnpm run compile"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/cli-utils",

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/client",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/command",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/common-cli-options-help",
"keywords": [

View File

@ -15,7 +15,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"start": "tsc --watch",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/config",
"keywords": [

View File

@ -15,7 +15,7 @@
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/constants",
"keywords": [

View File

@ -34,7 +34,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/types": "workspace:7.9.0"

View File

@ -143,7 +143,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=4873 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"funding": "https://opencollective.com/pnpm"
}

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/default-reporter",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/default-resolver",
"keywords": [

View File

@ -13,7 +13,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"engines": {
"node": ">=12.17"

View File

@ -13,7 +13,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/dependency-path",
"keywords": [

View File

@ -14,7 +14,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/directory-fetcher",
"engines": {

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/error",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts test/**/*.ts",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"_test": "jest"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/exportable-manifest",

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/fetch",
"keywords": [

View File

@ -13,7 +13,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/fetcher-base",
"keywords": [

View File

@ -23,7 +23,7 @@
},
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/fetching-types#readme",
"scripts": {
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"test": "pnpm run compile"

View File

@ -13,7 +13,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"_test": "jest",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/file-reporter",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/filter-lockfile",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/filter-workspace-packages",
"keywords": [

View File

@ -13,7 +13,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-packages",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-dir",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/find-workspace-packages",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/get-context",
"keywords": [

View File

@ -13,7 +13,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/git-fetcher",
"engines": {

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/git-resolver",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/graceful-fs",
"keywords": [

View File

@ -64,7 +64,7 @@
"prepublishOnly": "pnpm run compile",
"runPrepareFixtures": "node ../pnpm/bin/pnpm.cjs i -r -C test/fixtures --no-shared-workspace-lockfile --no-link-workspace-packages --lockfile-only --registry http://localhost:4873/ --ignore-scripts --force --no-strict-peer-dependencies",
"prepareFixtures": "registry-mock prepare && run-p -r registry-mock runPrepareFixtures",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/build-modules": "workspace:8.0.1",

View File

@ -37,7 +37,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/constants": "workspace:5.0.0",

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/lifecycle",
"keywords": [

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json --project . --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/link-bins",
"keywords": [

View File

@ -13,10 +13,10 @@
"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 pretest --filter dependencies-hierarchy",
"pretest": "pnpm run --filter dependencies-hierarchy pretest",
"_test": "pnpm pretest && jest",
"test": "pnpm run compile && pnpm run _test",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/list",
"keywords": [

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/local-resolver",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-file",
"keywords": [

View File

@ -16,7 +16,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"_test": "jest",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-to-pnp",
"keywords": [

View File

@ -24,7 +24,7 @@
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-types#readme",
"scripts": {
"lint": "eslint src/**/*.ts",
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"prepublishOnly": "pnpm run compile"
},
"funding": "https://opencollective.com/pnpm",

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-utils",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/lockfile-walker",
"keywords": [

View File

@ -18,7 +18,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/make-dedicated-lockfile",
"keywords": [

View File

@ -25,7 +25,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/core-loggers": "workspace:6.1.3",

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/matcher",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/merge-lockfile-changes",
"keywords": [

View File

@ -25,7 +25,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/core-loggers": "workspace:6.1.3",

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/modules-yaml",
"keywords": [

View File

@ -19,7 +19,7 @@
"prepublishOnly": "pnpm run compile",
"pretest": "pnpm install --dir=test/__fixtures__/simple",
"_test": "pnpm pretest && jest",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/mount-modules",
"keywords": [

View File

@ -23,7 +23,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/types": "workspace:7.9.0",

View File

@ -15,7 +15,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"devDependencies": {
"@pnpm/npm-registry-agent": "workspace:5.0.2",

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/npm-resolver",
"keywords": [

View File

@ -19,7 +19,7 @@
"test:jest": "jest",
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7771 pnpm run test:e2e",
"test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/outdated",
"keywords": [

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"fix": "tslint -c tslint.json --project . --fix",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/package-bins",
"keywords": [

View File

@ -26,7 +26,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/core-loggers": "workspace:6.1.3",

View File

@ -17,7 +17,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7772 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"registry-mock": "registry-mock",
"test:jest": "jest",
"test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest"

View File

@ -71,7 +71,7 @@
"_test": "pnpm pretest && jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"funding": "https://opencollective.com/pnpm"
}

View File

@ -17,7 +17,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"start": "tsc --watch",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/parse-cli-args",
"keywords": [

View File

@ -24,7 +24,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/parse-overrides#readme",
"funding": "https://opencollective.com/pnpm",

View File

@ -27,7 +27,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"validate-npm-package-name": "3.0.0"

View File

@ -24,7 +24,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/types": "workspace:7.9.0"

View File

@ -13,7 +13,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/pkgs-graph",
"license": "MIT",

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-audit",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-env",
"keywords": [

View File

@ -20,7 +20,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7773 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-installation",
"keywords": [

View File

@ -19,7 +19,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7774 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-listing",
"keywords": [

View File

@ -19,7 +19,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7775 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-outdated",
"keywords": [

View File

@ -20,7 +20,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7776 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-publishing",
"keywords": [

View File

@ -19,7 +19,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7777 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-rebuild",
"keywords": [

View File

@ -20,7 +20,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"start": "tsc --watch",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-script-runners",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-server",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-setup",
"keywords": [

View File

@ -19,7 +19,7 @@
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7779 pnpm run test:e2e",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-store",
"keywords": [

View File

@ -157,7 +157,7 @@
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm compile && npm cache clear --force && publish-packed --prune --npm-client=pnpm --dest=dist",
"postpublish": "publish-packed",
"compile": "tsc --build && pnpm run lint -- --fix && rimraf dist bin/nodes && pnpm run bundle && shx cp -r node-gyp-bin dist/node-gyp-bin && shx cp -r node_modules/@pnpm/tabtab/lib/scripts dist/scripts && shx cp -r node_modules/ps-list/vendor dist/vendor && shx cp pnpmrc dist/pnpmrc"
"compile": "tsc --build && pnpm run lint --fix && rimraf dist bin/nodes && pnpm run bundle && shx cp -r node-gyp-bin dist/node-gyp-bin && shx cp -r node_modules/@pnpm/tabtab/lib/scripts dist/scripts && shx cp -r node_modules/ps-list/vendor dist/vendor && shx cp pnpmrc dist/pnpmrc"
},
"publishConfig": {
"tag": "next",

View File

@ -1,6 +1,7 @@
import { createReadStream, promises as fs } from 'fs'
import { createReadStream, promises as fs, mkdirSync } from 'fs'
import path from 'path'
import pathExists from 'path-exists'
import PATH_NAME from 'path-name'
import prepare, { prepareEmpty } from '@pnpm/prepare'
import rimraf from '@zkochan/rimraf'
import execa from 'execa'
@ -123,8 +124,17 @@ test('adding new dep does not fail if node_modules was created with --public-hoi
test('pnpx works', () => {
prepareEmpty()
const global = path.resolve('..', 'global')
const pnpmHome = path.join(global, 'pnpm')
mkdirSync(global)
const result = execPnpxSync(['hello-world-js-bin'])
const env = {
[PATH_NAME]: `${pnpmHome}${path.delimiter}${process.env[PATH_NAME]}`, // eslint-disable-line
PNPM_HOME: pnpmHome,
XDG_DATA_HOME: global,
}
const result = execPnpxSync(['hello-world-js-bin'], { env })
expect(result.stdout.toString()).toMatch(/Hello world!/)
expect(result.status).toBe(0)

View File

@ -1,5 +1,6 @@
import { promises as fs } from 'fs'
import { promises as fs, mkdirSync } from 'fs'
import path from 'path'
import PATH_NAME from 'path-name'
import prepare, { preparePackages } from '@pnpm/prepare'
import { execPnpm, execPnpmSync } from './utils'
@ -123,8 +124,17 @@ test('silent run only prints the output of the child process', async () => {
test('silent dlx prints the output of the child process only', async () => {
prepare({})
const global = path.resolve('..', 'global')
const pnpmHome = path.join(global, 'pnpm')
mkdirSync(global)
const result = execPnpmSync(['--silent', 'dlx', 'shx', 'echo', 'hi'])
const env = {
[PATH_NAME]: `${pnpmHome}${path.delimiter}${process.env[PATH_NAME]}`, // eslint-disable-line
PNPM_HOME: pnpmHome,
XDG_DATA_HOME: global,
}
const result = execPnpmSync(['--silent', 'dlx', 'shx', 'echo', 'hi'], { env })
expect(result.stdout.toString().trim()).toBe('hi')
})

View File

@ -77,9 +77,12 @@ export function execPnpmSync (args: string[], opts?: { env: Object }): ChildProc
}) as ChildProcess
}
export function execPnpxSync (args: string[]): ChildProcess {
export function execPnpxSync (args: string[], opts?: { env: Object }): ChildProcess {
return crossSpawn.sync(process.execPath, [pnpxBinLocation, ...args], {
env: createEnv(),
env: {
...createEnv(),
...opts?.env,
} as NodeJS.ProcessEnv,
}) as ChildProcess
}

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/pnpmfile",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/prepare-package",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/prune-lockfile",
"keywords": [

View File

@ -22,7 +22,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-package-json",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/read-project-manifest",
"keywords": [

View File

@ -25,7 +25,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/lockfile-file": "workspace:4.2.6",

View File

@ -27,7 +27,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/lockfile-utils": "workspace:3.2.0",

View File

@ -25,7 +25,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"@pnpm/core-loggers": "workspace:6.1.3",

View File

@ -24,7 +24,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/render-peer-issues#readme",
"funding": "https://opencollective.com/pnpm",

View File

@ -25,7 +25,7 @@
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix",
"compile": "tsc --build && pnpm run lint --fix",
"_test": "jest"
},
"dependencies": {

View File

@ -22,7 +22,7 @@
"test": "pnpm run compile",
"lint": "eslint src/**/*.ts",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"dependencies": {
"semver": "^7.3.4"

View File

@ -13,7 +13,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/resolver-base",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/run-npm",
"keywords": [

View File

@ -16,7 +16,7 @@
"_test": "jest --detectOpenHandles",
"test": "pnpm run compile && pnpm run _test",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/server",
"keywords": [

View File

@ -15,7 +15,7 @@
"lint": "eslint src/**/*.ts",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/sort-packages",
"keywords": [

View File

@ -16,7 +16,7 @@
"pretest": "rimraf node_modules/.bin/pnpm",
"test": "pnpm run compile",
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint -- --fix"
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/store-connection-manager",
"keywords": [

Some files were not shown because too many files have changed in this diff Show More