chore: use pnpm v7

This commit is contained in:
Zoltan Kochan
2022-02-21 03:18:39 +02:00
parent 6fe35be6f1
commit 96df82be00
109 changed files with 492 additions and 480 deletions

View File

@@ -29,14 +29,14 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2.1.0
with:
version: 6.31.0
version: 7.0.0-alpha.2
- 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

@@ -25,7 +25,7 @@ jobs:
sudo mv ldid /usr/local/bin
- name: install pnpm and npm
run: |
curl -L https://get.pnpm.io/v6.16.js | node - add --global pnpm@6.31.0 npm@7
curl -L https://get.pnpm.io/v6.16.js | node - add --global pnpm@7.0.0-alpha.2 npm@7
- name: pnpm install
run: pnpm install
- name: Publish Packages

View File

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

View File

@@ -180,7 +180,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

@@ -8,21 +8,21 @@
"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 v6 && 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/v6] 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",
"make-release-description": "pnpm --filter=@pnpm/get-release-text run write-release-text",
"release": "pnpm --filter=@pnpm/exe publish --tag=next-6 --access=public && pnpm publish --filter=!pnpm --filter=!@pnpm/exe --access=public && pnpm publish --filter=pnpm --tag=next-6 --access=public"
},
"devDependencies": {
@@ -58,8 +58,9 @@
"verdaccio": "^5.5.2"
},
"engines": {
"pnpm": ">=6"
"pnpm": ">=7"
},
"packageManager": "pnpm@7.0.0-alpha.2",
"pnpm": {
"overrides": {
"@yarnpkg/core": "3.2.0-rc.9",
@@ -119,6 +120,5 @@
"@typescript-eslint/eslint-plugin": "^5.6.0"
}
}
},
"packageManager": "pnpm@6.23.0"
}
}

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

@@ -30,7 +30,7 @@
"scripts": {
"preinstall": "node setup.js",
"prepare": "node prepare.js",
"prepublishOnly": "pnpm run compile --filter pnpm && ts-node ./scripts/build-artifacts.ts"
"prepublishOnly": "pnpm --filter=pnpm run compile && ts-node ./scripts/build-artifacts.ts"
},
"keywords": [
"pnpm6"

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/**/*.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/global-bin-dir",

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",
"update-responses": "ts-node test/utils/responses/update.ts"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-audit",

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

@@ -159,7 +159,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-6",

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'
@@ -80,8 +81,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

@@ -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": [

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