From fa58ed8168bab75636e77d2b94bccff994f2b71d Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sun, 8 Mar 2020 01:40:08 +0200 Subject: [PATCH] test: use source maps to remap coverage results --- packages/audit/package.json | 2 +- packages/build-modules/package.json | 2 +- packages/cli-utils/package.json | 2 +- packages/command/package.json | 2 +- packages/common-cli-options-help/package.json | 2 +- packages/config/package.json | 2 +- packages/constants/package.json | 2 +- packages/core-loggers/package.json | 2 +- packages/default-fetcher/package.json | 2 +- packages/default-reporter/package.json | 2 +- packages/default-resolver/package.json | 2 +- packages/dependencies-hierarchy/package.json | 2 +- packages/dependency-path/package.json | 2 +- packages/error/package.json | 2 +- packages/fetch-from-npm-registry/package.json | 2 +- packages/fetch/package.json | 2 +- packages/fetcher-base/package.json | 2 +- packages/filter-lockfile/package.json | 2 +- packages/filter-workspace-packages/package.json | 2 +- packages/find-packages/package.json | 2 +- packages/find-workspace-dir/package.json | 2 +- packages/find-workspace-packages/package.json | 2 +- packages/get-context/package.json | 2 +- packages/git-fetcher/package.json | 2 +- packages/git-resolver/package.json | 2 +- packages/headless/package.json | 2 +- packages/hoist/package.json | 2 +- packages/lifecycle/package.json | 2 +- packages/link-bins/package.json | 2 +- packages/list/package.json | 2 +- packages/local-resolver/package.json | 2 +- packages/lockfile-file/package.json | 2 +- packages/lockfile-utils/package.json | 2 +- packages/lockfile-walker/package.json | 2 +- packages/matcher/package.json | 2 +- packages/modules-cleaner/package.json | 2 +- packages/modules-yaml/package.json | 2 +- packages/npm-registry-agent/package.json | 2 +- packages/npm-resolver/package.json | 2 +- packages/outdated/package.json | 2 +- packages/package-bins/package.json | 2 +- packages/package-is-installable/package.json | 2 +- packages/package-requester/package.json | 2 +- packages/package-store/package.json | 2 +- packages/parse-cli-args/package.json | 2 +- packages/pkgs-graph/package.json | 2 +- packages/plugin-commands-audit/package.json | 2 +- packages/plugin-commands-import/package.json | 2 +- packages/plugin-commands-installation/package.json | 2 +- packages/plugin-commands-listing/package.json | 2 +- packages/plugin-commands-outdated/package.json | 2 +- packages/plugin-commands-publishing/package.json | 2 +- packages/plugin-commands-rebuild/package.json | 2 +- packages/plugin-commands-script-runners/package.json | 2 +- packages/plugin-commands-server/package.json | 2 +- packages/plugin-commands-store/package.json | 2 +- packages/pnpm/package.json | 2 +- packages/pnpmfile/package.json | 2 +- packages/prune-lockfile/package.json | 2 +- packages/read-modules-dir/package.json | 2 +- packages/read-package-json/package.json | 2 +- packages/read-project-manifest/package.json | 2 +- packages/read-projects-context/package.json | 2 +- packages/resolve-dependencies/package.json | 2 +- packages/resolver-base/package.json | 2 +- packages/run-npm/package.json | 2 +- packages/server/package.json | 2 +- packages/sort-packages/package.json | 2 +- packages/store-connection-manager/package.json | 2 +- packages/store-controller-types/package.json | 2 +- packages/supi/package.json | 2 +- packages/symlink-dependency/package.json | 2 +- packages/tarball-fetcher/package.json | 2 +- packages/tarball-resolver/package.json | 2 +- packages/types/package.json | 2 +- packages/utils/package.json | 2 +- packages/write-project-manifest/package.json | 2 +- 77 files changed, 77 insertions(+), 77 deletions(-) diff --git a/packages/audit/package.json b/packages/audit/package.json index 4849de5e3a..c182601a06 100644 --- a/packages/audit/package.json +++ b/packages/audit/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/audit/coverage ts-node packages/audit/test", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/audit/coverage ts-node packages/audit/test", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/audit", diff --git a/packages/build-modules/package.json b/packages/build-modules/package.json index 4ed6f6f372..c4cf1f63bb 100644 --- a/packages/build-modules/package.json +++ b/packages/build-modules/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/build-modules", diff --git a/packages/cli-utils/package.json b/packages/cli-utils/package.json index c74278d3ad..1544227911 100644 --- a/packages/cli-utils/package.json +++ b/packages/cli-utils/package.json @@ -14,7 +14,7 @@ "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", "pretest": "rimraf node_modules/.bin/pnpm", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/cli-utils/coverage ts-node packages/cli-utils/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/cli-utils/coverage ts-node packages/cli-utils/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/cli-utils", diff --git a/packages/command/package.json b/packages/command/package.json index cb4d8894a9..5bd4a0fdbc 100644 --- a/packages/command/package.json +++ b/packages/command/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-installation", diff --git a/packages/common-cli-options-help/package.json b/packages/common-cli-options-help/package.json index d5f9c35c0a..5ebba5912d 100644 --- a/packages/common-cli-options-help/package.json +++ b/packages/common-cli-options-help/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/common-cli-options-help", diff --git a/packages/config/package.json b/packages/config/package.json index 255fca8728..82f59ed3e6 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -13,7 +13,7 @@ "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "test-with-preview": "ts-node test", "pretest": "npm config rm fetch-retry-maxtimeout", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/config/coverage ts-node packages/config/test" + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/config/coverage ts-node packages/config/test" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/config", "keywords": [ diff --git a/packages/constants/package.json b/packages/constants/package.json index 1b1b5c5988..0829d8c112 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -11,7 +11,7 @@ "lib" ], "scripts": { - "test": "pnpm run tsc && tslint -c ../../tslint.json -p .", + "test": "pnpm run tsc -- --sourceMap && tslint -c ../../tslint.json -p .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/core-loggers/package.json b/packages/core-loggers/package.json index b0269f92ec..be9624941a 100644 --- a/packages/core-loggers/package.json +++ b/packages/core-loggers/package.json @@ -32,7 +32,7 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/core-loggers", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/default-fetcher/package.json b/packages/default-fetcher/package.json index 865d400313..091ed3ddb9 100644 --- a/packages/default-fetcher/package.json +++ b/packages/default-fetcher/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/default-fetcher/coverage ts-node packages/default-fetcher/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/default-fetcher/coverage ts-node packages/default-fetcher/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/default-fetcher", diff --git a/packages/default-reporter/package.json b/packages/default-reporter/package.json index 7df253d8a0..1e15749f49 100644 --- a/packages/default-reporter/package.json +++ b/packages/default-reporter/package.json @@ -12,7 +12,7 @@ "pretty-test": "ts-node test | tap-diff", "test": "pnpm run just-test", "just-test-preview": "ts-node test --type-check", - "just-test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/default-reporter/coverage ts-node packages/default-reporter/test --type-check", + "just-test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/default-reporter/coverage ts-node packages/default-reporter/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/default-resolver/package.json b/packages/default-resolver/package.json index 0da4ca12a4..bb6f52591d 100644 --- a/packages/default-resolver/package.json +++ b/packages/default-resolver/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/default-resolver/coverage ts-node packages/default-resolver/test", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/default-resolver/coverage ts-node packages/default-resolver/test", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/default-resolver", diff --git a/packages/dependencies-hierarchy/package.json b/packages/dependencies-hierarchy/package.json index 31c97b881e..751df5fca4 100644 --- a/packages/dependencies-hierarchy/package.json +++ b/packages/dependencies-hierarchy/package.json @@ -10,7 +10,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "pretest": "pnpm install -rf -C fixtures --frozen-lockfile --no-shared-workspace-lockfile --no-link-workspace-packages && pnpm install -rf -C fixtureWithLinks --frozen-lockfile --link-workspace-packages --no-shared-workspace-lockfile", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/dependencies-hierarchy/coverage ts-node packages/dependencies-hierarchy/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/dependencies-hierarchy/coverage ts-node packages/dependencies-hierarchy/test --type-check", "prepublishOnly": "pnpm run tsc", "tsc": "tsc" }, diff --git a/packages/dependency-path/package.json b/packages/dependency-path/package.json index 8d3005ca5f..b86327d97a 100644 --- a/packages/dependency-path/package.json +++ b/packages/dependency-path/package.json @@ -9,7 +9,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && pnpm link . && cd ../.. && c8 --reporter lcov --reports-dir packages/dependency-path/coverage ts-node packages/dependency-path/test", + "test": "pnpm run tsc -- --sourceMap && pnpm link . && cd ../.. && c8 --reporter lcov --reports-dir packages/dependency-path/coverage ts-node packages/dependency-path/test", "prepublishOnly": "pnpm run tsc", "tsc": "tsc" }, diff --git a/packages/error/package.json b/packages/error/package.json index c1c12ef338..eba22e7d6a 100644 --- a/packages/error/package.json +++ b/packages/error/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/error", diff --git a/packages/fetch-from-npm-registry/package.json b/packages/fetch-from-npm-registry/package.json index b96bd4b2c0..16ba6afb5d 100644 --- a/packages/fetch-from-npm-registry/package.json +++ b/packages/fetch-from-npm-registry/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/fetch-from-npm-registry/coverage ts-node packages/fetch-from-npm-registry/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/fetch-from-npm-registry/coverage ts-node packages/fetch-from-npm-registry/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/fetch-from-npm-registry", diff --git a/packages/fetch/package.json b/packages/fetch/package.json index b3532c35f9..c62fa08387 100644 --- a/packages/fetch/package.json +++ b/packages/fetch/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc && cpy src/**/*.d.ts lib", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/fetch", diff --git a/packages/fetcher-base/package.json b/packages/fetcher-base/package.json index 56ea3605b9..e54b43d7fd 100644 --- a/packages/fetcher-base/package.json +++ b/packages/fetcher-base/package.json @@ -11,7 +11,7 @@ "start": "pnpm run tsc -- --watch", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc --pretty", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/fetcher-base", diff --git a/packages/filter-lockfile/package.json b/packages/filter-lockfile/package.json index 3a7f497b44..c9166a2cc7 100644 --- a/packages/filter-lockfile/package.json +++ b/packages/filter-lockfile/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/filter-lockfile/coverage ts-node packages/filter-lockfile/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/filter-lockfile/coverage ts-node packages/filter-lockfile/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/filter-workspace-packages/package.json b/packages/filter-workspace-packages/package.json index 956406b93b..289ae9063e 100644 --- a/packages/filter-workspace-packages/package.json +++ b/packages/filter-workspace-packages/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/filter-workspace-packages/coverage ts-node packages/filter-workspace-packages/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/filter-workspace-packages/coverage ts-node packages/filter-workspace-packages/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/filter-workspace-packages", diff --git a/packages/find-packages/package.json b/packages/find-packages/package.json index f0843ac0f1..b417946281 100644 --- a/packages/find-packages/package.json +++ b/packages/find-packages/package.json @@ -9,7 +9,7 @@ "typings": "lib/index.d.ts", "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/find-packages/coverage ts-node packages/find-packages/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/find-packages/coverage ts-node packages/find-packages/test --type-check", "tsc": "tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/find-workspace-dir/package.json b/packages/find-workspace-dir/package.json index 7deb439486..73193c0b45 100644 --- a/packages/find-workspace-dir/package.json +++ b/packages/find-workspace-dir/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/find-workspace-dir", diff --git a/packages/find-workspace-packages/package.json b/packages/find-workspace-packages/package.json index 4ef45b10ed..fc4c7a1fb1 100644 --- a/packages/find-workspace-packages/package.json +++ b/packages/find-workspace-packages/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/find-workspace-packages", diff --git a/packages/get-context/package.json b/packages/get-context/package.json index 9db8500b65..6e768e0105 100644 --- a/packages/get-context/package.json +++ b/packages/get-context/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/get-context", diff --git a/packages/git-fetcher/package.json b/packages/git-fetcher/package.json index 0049b9fdcb..a05b871e2a 100644 --- a/packages/git-fetcher/package.json +++ b/packages/git-fetcher/package.json @@ -8,7 +8,7 @@ "lib" ], "scripts": { - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/git-fetcher/coverage ts-node packages/git-fetcher/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/git-fetcher/coverage ts-node packages/git-fetcher/test --type-check", "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/git-resolver/package.json b/packages/git-resolver/package.json index c32a24a31a..c37b596b51 100644 --- a/packages/git-resolver/package.json +++ b/packages/git-resolver/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/git-resolver/coverage ts-node packages/git-resolver/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/git-resolver/coverage ts-node packages/git-resolver/test --type-check", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix" }, diff --git a/packages/headless/package.json b/packages/headless/package.json index 8c2170fc62..7d3310b21d 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -68,7 +68,7 @@ "test:e2e": "run-p -r registry-mock test:tap", "pretest:e2e": "rimraf ../.tmp/ && registry-mock prepare && ts-node test/pretest", "test-with-preview": "pnpm run test:e2e", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7770 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7770 pnpm run test:e2e", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc", "runPrepareFixtures": "node ../pnpm/lib/bin/pnpm.js m i -C test/fixtures --no-shared-workspace-lockfile --no-link-workspace-packages --lockfile-only --registry http://localhost:4873/ --ignore-scripts --force", diff --git a/packages/hoist/package.json b/packages/hoist/package.json index 63c5163be9..29ebe3f95d 100644 --- a/packages/hoist/package.json +++ b/packages/hoist/package.json @@ -36,7 +36,7 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/hoist", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/lifecycle/package.json b/packages/lifecycle/package.json index db294cabd3..7bb02702c3 100644 --- a/packages/lifecycle/package.json +++ b/packages/lifecycle/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/lifecycle/coverage ts-node packages/lifecycle/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/lifecycle/coverage ts-node packages/lifecycle/test --type-check", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix" }, diff --git a/packages/link-bins/package.json b/packages/link-bins/package.json index 32c5228a65..c0822d56de 100644 --- a/packages/link-bins/package.json +++ b/packages/link-bins/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && ncp test/fixtures test/fixtures_for_testing && cd ../.. && c8 --reporter lcov --reports-dir packages/link-bins/coverage ts-node packages/link-bins/test --type-check && cd packages/link-bins && rimraf test/fixtures_for_testing", + "test": "pnpm run tsc -- --sourceMap && ncp test/fixtures test/fixtures_for_testing && cd ../.. && c8 --reporter lcov --reports-dir packages/link-bins/coverage ts-node packages/link-bins/test --type-check && cd packages/link-bins && rimraf test/fixtures_for_testing", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json --project . --fix" }, diff --git a/packages/list/package.json b/packages/list/package.json index 7c927ba05f..6d7003d31a 100644 --- a/packages/list/package.json +++ b/packages/list/package.json @@ -13,7 +13,7 @@ "prepareFixtures": "cd test && node ../../pnpm recursive install --no-link-workspace-packages --no-shared-workspace-lockfile -f && cd ..", "prepublishOnly": "pnpm run tsc", "pretest": "pnpm run pretest --filter dependencies-hierarchy", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/list/coverage ts-node packages/list/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/list/coverage ts-node packages/list/test --type-check", "tsc": "rimraf lib && tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/list", diff --git a/packages/local-resolver/package.json b/packages/local-resolver/package.json index 2a4000dc02..dff6d4cb89 100644 --- a/packages/local-resolver/package.json +++ b/packages/local-resolver/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/local-resolver/coverage ts-node packages/local-resolver/test --ts-node", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/local-resolver/coverage ts-node packages/local-resolver/test --ts-node", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix" }, diff --git a/packages/lockfile-file/package.json b/packages/lockfile-file/package.json index bbfbf79127..9f4c1fd21d 100644 --- a/packages/lockfile-file/package.json +++ b/packages/lockfile-file/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/lockfile-file/coverage ts-node packages/lockfile-file/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/lockfile-file/coverage ts-node packages/lockfile-file/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/lockfile-utils/package.json b/packages/lockfile-utils/package.json index e79224dbb9..87cd1d9ddd 100644 --- a/packages/lockfile-utils/package.json +++ b/packages/lockfile-utils/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/lockfile-utils/coverage ts-node packages/lockfile-utils/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/lockfile-utils/coverage ts-node packages/lockfile-utils/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/lockfile-walker/package.json b/packages/lockfile-walker/package.json index d6f57e9865..e3c08aab40 100644 --- a/packages/lockfile-walker/package.json +++ b/packages/lockfile-walker/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/matcher/package.json b/packages/matcher/package.json index 68477995e0..4fa1f09b7e 100644 --- a/packages/matcher/package.json +++ b/packages/matcher/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/matcher/coverage ts-node packages/matcher/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/matcher/coverage ts-node packages/matcher/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/modules-cleaner/package.json b/packages/modules-cleaner/package.json index f66cd3f7ea..526b62c2de 100644 --- a/packages/modules-cleaner/package.json +++ b/packages/modules-cleaner/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/modules-cleaner#readme", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/modules-yaml/package.json b/packages/modules-yaml/package.json index 7af4c39c7e..20b2e5669d 100644 --- a/packages/modules-yaml/package.json +++ b/packages/modules-yaml/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/modules-yaml/coverage ts-node packages/modules-yaml/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/modules-yaml/coverage ts-node packages/modules-yaml/test --type-check", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix" }, diff --git a/packages/npm-registry-agent/package.json b/packages/npm-registry-agent/package.json index daf4d1fbbd..eae037a62b 100644 --- a/packages/npm-registry-agent/package.json +++ b/packages/npm-registry-agent/package.json @@ -12,7 +12,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/npm-registry-agent/coverage ts-node packages/npm-registry-agent/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/npm-registry-agent/coverage ts-node packages/npm-registry-agent/test --type-check", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix" }, diff --git a/packages/npm-resolver/package.json b/packages/npm-resolver/package.json index 47f660018c..ffe2fc1a7b 100644 --- a/packages/npm-resolver/package.json +++ b/packages/npm-resolver/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "rimraf .store && pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/npm-resolver/coverage ts-node packages/npm-resolver/test --type-check", + "test": "rimraf .store && pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/npm-resolver/coverage ts-node packages/npm-resolver/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/npm-resolver", diff --git a/packages/outdated/package.json b/packages/outdated/package.json index e1e593d88a..aeb22f2c62 100644 --- a/packages/outdated/package.json +++ b/packages/outdated/package.json @@ -12,7 +12,7 @@ ], "scripts": { "pretest": "registry-mock prepare", - "test": "pnpm run tsc && pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && pnpm run test:e2e", "prepublishOnly": "pnpm run tsc", "tsc": "tsc", "registry-mock": "registry-mock", diff --git a/packages/package-bins/package.json b/packages/package-bins/package.json index e098134217..378aff9c61 100644 --- a/packages/package-bins/package.json +++ b/packages/package-bins/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", - "test": "cd ../.. && c8 --reporter lcov --reports-dir packages/package-bins/coverage ts-node packages/package-bins/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/package-bins/coverage ts-node packages/package-bins/test --type-check", "prepublishOnly": "pnpm run tsc", "fix": "tslint -c tslint.json --project . --fix" }, diff --git a/packages/package-is-installable/package.json b/packages/package-is-installable/package.json index 06686cb240..6649d002d5 100644 --- a/packages/package-is-installable/package.json +++ b/packages/package-is-installable/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/package-is-installable#readme", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/package-is-installable/coverage ts-node packages/package-is-installable/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/package-is-installable/coverage ts-node packages/package-is-installable/test --type-check", "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/package-requester/package.json b/packages/package-requester/package.json index 1ea9025033..cf2d9b4348 100644 --- a/packages/package-requester/package.json +++ b/packages/package-requester/package.json @@ -14,7 +14,7 @@ "start": "pnpm run tsc -- --watch", "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc --pretty", - "test": "pnpm run tsc && rimraf .store && cd ../.. && c8 --reporter lcov --reports-dir packages/package-requester/coverage ts-node packages/package-requester/test --type-check", + "test": "pnpm run tsc -- --sourceMap && rimraf .store && cd ../.. && c8 --reporter lcov --reports-dir packages/package-requester/coverage ts-node packages/package-requester/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/package-requester", diff --git a/packages/package-store/package.json b/packages/package-store/package.json index 12b829c591..ec26e0c60b 100644 --- a/packages/package-store/package.json +++ b/packages/package-store/package.json @@ -77,7 +77,7 @@ "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "pretest": "rimraf .tmp", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/package-store/coverage ts-node packages/package-store/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/package-store/coverage ts-node packages/package-store/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" } diff --git a/packages/parse-cli-args/package.json b/packages/parse-cli-args/package.json index 300d2ea383..239148c636 100644 --- a/packages/parse-cli-args/package.json +++ b/packages/parse-cli-args/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/parse-cli-args/coverage ts-node packages/parse-cli-args/test", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/parse-cli-args/coverage ts-node packages/parse-cli-args/test", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/parse-cli-args", diff --git a/packages/pkgs-graph/package.json b/packages/pkgs-graph/package.json index 89ed5cbec9..e83f8c3e15 100644 --- a/packages/pkgs-graph/package.json +++ b/packages/pkgs-graph/package.json @@ -9,7 +9,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/pkgs-graph/coverage ts-node packages/pkgs-graph/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/pkgs-graph/coverage ts-node packages/pkgs-graph/test --type-check", "tsc": "tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/plugin-commands-audit/package.json b/packages/plugin-commands-audit/package.json index 3f1b987a81..b511f12f3c 100644 --- a/packages/plugin-commands-audit/package.json +++ b/packages/plugin-commands-audit/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-audit/coverage ts-node packages/plugin-commands-audit/test", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-audit/coverage ts-node packages/plugin-commands-audit/test", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-audit", diff --git a/packages/plugin-commands-import/package.json b/packages/plugin-commands-import/package.json index 948989dbb0..877f93492f 100644 --- a/packages/plugin-commands-import/package.json +++ b/packages/plugin-commands-import/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-import/coverage ts-node packages/plugin-commands-import/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7776 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7776 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-import", diff --git a/packages/plugin-commands-installation/package.json b/packages/plugin-commands-installation/package.json index 6c50b0dc6b..ebfc5ac95f 100644 --- a/packages/plugin-commands-installation/package.json +++ b/packages/plugin-commands-installation/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-installation/coverage ts-node packages/plugin-commands-installation/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7777 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7777 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-installation", diff --git a/packages/plugin-commands-listing/package.json b/packages/plugin-commands-listing/package.json index cbecc20991..bfb2fd5225 100644 --- a/packages/plugin-commands-listing/package.json +++ b/packages/plugin-commands-listing/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-listing/coverage ts-node packages/plugin-commands-listing/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7773 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7773 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-listing", diff --git a/packages/plugin-commands-outdated/package.json b/packages/plugin-commands-outdated/package.json index 171cc19824..e8a99caa32 100644 --- a/packages/plugin-commands-outdated/package.json +++ b/packages/plugin-commands-outdated/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-outdated/coverage ts-node packages/plugin-commands-outdated/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7774 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7774 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-outdated", diff --git a/packages/plugin-commands-publishing/package.json b/packages/plugin-commands-publishing/package.json index 95ea189640..d273c6b443 100644 --- a/packages/plugin-commands-publishing/package.json +++ b/packages/plugin-commands-publishing/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-publishing/coverage ts-node packages/plugin-commands-publishing/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7771 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7771 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-publishing", diff --git a/packages/plugin-commands-rebuild/package.json b/packages/plugin-commands-rebuild/package.json index 58b04edad6..43d5597182 100644 --- a/packages/plugin-commands-rebuild/package.json +++ b/packages/plugin-commands-rebuild/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-rebuild/coverage ts-node packages/plugin-commands-rebuild/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7779 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7779 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-rebuild", diff --git a/packages/plugin-commands-script-runners/package.json b/packages/plugin-commands-script-runners/package.json index 5944fa47e5..44099c71d6 100644 --- a/packages/plugin-commands-script-runners/package.json +++ b/packages/plugin-commands-script-runners/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-script-runners/coverage ts-node packages/plugin-commands-script-runners/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7775 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7775 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-script-runners", diff --git a/packages/plugin-commands-server/package.json b/packages/plugin-commands-server/package.json index 8e7a276ce7..db6151323f 100644 --- a/packages/plugin-commands-server/package.json +++ b/packages/plugin-commands-server/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-server", diff --git a/packages/plugin-commands-store/package.json b/packages/plugin-commands-store/package.json index 6e56039344..fb16f696d9 100644 --- a/packages/plugin-commands-store/package.json +++ b/packages/plugin-commands-store/package.json @@ -17,7 +17,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/plugin-commands-store/coverage ts-node packages/plugin-commands-store/test --type-check", "pretest:e2e": "registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7778 pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && cross-env PNPM_REGISTRY_MOCK_PORT=7778 pnpm run test:e2e", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/plugin-commands-store", diff --git a/packages/pnpm/package.json b/packages/pnpm/package.json index e831df7401..c783168b5c 100644 --- a/packages/pnpm/package.json +++ b/packages/pnpm/package.json @@ -159,7 +159,7 @@ "test:tap": "cd ../.. && c8 --reporter lcov --reports-dir packages/pnpm/coverage ts-node packages/pnpm/test --type-check", "pretest:e2e": "rimraf node_modules/.bin/pnpm && registry-mock prepare", "test:e2e": "run-p -r registry-mock test:tap", - "test": "npm run lint && npm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7772 npm run test:e2e", + "test": "pnpm run lint && pnpm run tsc && cross-env PNPM_REGISTRY_MOCK_PORT=7772 npm run test:e2e", "tsc": "rimraf lib && tsc", "release": "sh .scripts/release.sh" }, diff --git a/packages/pnpmfile/package.json b/packages/pnpmfile/package.json index 216edea454..c6536c65d7 100644 --- a/packages/pnpmfile/package.json +++ b/packages/pnpmfile/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/pnpmfile/coverage ts-node packages/pnpmfile/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/pnpmfile/coverage ts-node packages/pnpmfile/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/pnpmfile", diff --git a/packages/prune-lockfile/package.json b/packages/prune-lockfile/package.json index af08e9a021..772f335b98 100644 --- a/packages/prune-lockfile/package.json +++ b/packages/prune-lockfile/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/prune-lockfile/coverage ts-node packages/prune-lockfile/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/prune-lockfile/coverage ts-node packages/prune-lockfile/test --type-check", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/read-modules-dir/package.json b/packages/read-modules-dir/package.json index 3081b4c364..a3b059ccde 100644 --- a/packages/read-modules-dir/package.json +++ b/packages/read-modules-dir/package.json @@ -21,7 +21,7 @@ "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/read-modules-dir#readme", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/read-package-json/package.json b/packages/read-package-json/package.json index ed7bde7dd9..82ebab2efe 100644 --- a/packages/read-package-json/package.json +++ b/packages/read-package-json/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/read-package-json/coverage ts-node packages/read-package-json/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/read-package-json/coverage ts-node packages/read-package-json/test --type-check", "prepublishOnly": "pnpm run tsc", "tsc": "tsc" }, diff --git a/packages/read-project-manifest/package.json b/packages/read-project-manifest/package.json index dff027a9c6..568256ea57 100644 --- a/packages/read-project-manifest/package.json +++ b/packages/read-project-manifest/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/read-project-manifest/coverage ts-node packages/read-project-manifest/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/read-project-manifest/coverage ts-node packages/read-project-manifest/test --type-check", "prepublishOnly": "pnpm run tsc", "tsc": "tsc" }, diff --git a/packages/read-projects-context/package.json b/packages/read-projects-context/package.json index d1798f2b59..2c54818a9c 100644 --- a/packages/read-projects-context/package.json +++ b/packages/read-projects-context/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/read-projects-context#readme", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/resolve-dependencies/package.json b/packages/resolve-dependencies/package.json index a8478d4cc2..3857783f63 100644 --- a/packages/resolve-dependencies/package.json +++ b/packages/resolve-dependencies/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/resolve-dependencies#readme", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/resolver-base/package.json b/packages/resolver-base/package.json index b00a83fd73..792805a165 100644 --- a/packages/resolver-base/package.json +++ b/packages/resolver-base/package.json @@ -11,7 +11,7 @@ "start": "pnpm run tsc -- --watch", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc --pretty", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/resolver-base", diff --git a/packages/run-npm/package.json b/packages/run-npm/package.json index 1514707a3c..7a7b59b19d 100644 --- a/packages/run-npm/package.json +++ b/packages/run-npm/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/run-npm", diff --git a/packages/server/package.json b/packages/server/package.json index 1d8d88eeb4..f6e11058bb 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/server/coverage ts-node packages/server/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/server/coverage ts-node packages/server/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/server", diff --git a/packages/sort-packages/package.json b/packages/sort-packages/package.json index d6598ec221..db67ed2440 100644 --- a/packages/sort-packages/package.json +++ b/packages/sort-packages/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/sort-packages", diff --git a/packages/store-connection-manager/package.json b/packages/store-connection-manager/package.json index 7d5cae9f2b..bc43a2477b 100644 --- a/packages/store-connection-manager/package.json +++ b/packages/store-connection-manager/package.json @@ -14,7 +14,7 @@ "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "tsc": "rimraf lib && tsc", "pretest": "rimraf node_modules/.bin/pnpm", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/store-connection-manager", diff --git a/packages/store-controller-types/package.json b/packages/store-controller-types/package.json index 6d6acbfcad..48771f6ffa 100644 --- a/packages/store-controller-types/package.json +++ b/packages/store-controller-types/package.json @@ -11,7 +11,7 @@ "lib" ], "scripts": { - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/supi/package.json b/packages/supi/package.json index 7169071031..7f53180580 100644 --- a/packages/supi/package.json +++ b/packages/supi/package.json @@ -161,7 +161,7 @@ "test:e2e": "run-p -r registry-mock test:tap", "pretest": "registry-mock prepare", "test-with-preview": "preview && pnpm run test:e2e", - "test": "pnpm run tsc && pnpm run test:e2e", + "test": "pnpm run tsc -- --sourceMap && pnpm run test:e2e", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" } diff --git a/packages/symlink-dependency/package.json b/packages/symlink-dependency/package.json index 1f432c01d4..8775e4b1b3 100644 --- a/packages/symlink-dependency/package.json +++ b/packages/symlink-dependency/package.json @@ -36,7 +36,7 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/symlink-dependency", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/tarball-fetcher/package.json b/packages/tarball-fetcher/package.json index 384c355207..33506acdf2 100644 --- a/packages/tarball-fetcher/package.json +++ b/packages/tarball-fetcher/package.json @@ -11,7 +11,7 @@ "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "prepublishOnly": "pnpm run tsc", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/tarball-fetcher/coverage ts-node packages/tarball-fetcher/test && cd packages/tarball-fetcher && node example" + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/tarball-fetcher/coverage ts-node packages/tarball-fetcher/test && cd packages/tarball-fetcher && node example" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/tarball-fetcher", "keywords": [ diff --git a/packages/tarball-resolver/package.json b/packages/tarball-resolver/package.json index 80cb1f74c5..6b845bdab6 100644 --- a/packages/tarball-resolver/package.json +++ b/packages/tarball-resolver/package.json @@ -14,7 +14,7 @@ "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", "fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix", "tsc": "rimraf lib && tsc", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/tarball-resolver/coverage ts-node packages/tarball-resolver/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/tarball-resolver/coverage ts-node packages/tarball-resolver/test --type-check", "prepublishOnly": "pnpm run tsc" }, "repository": "https://github.com/pnpm/pnpm/blob/master/packages/tarball-resolver", diff --git a/packages/types/package.json b/packages/types/package.json index d8c99f494b..b60dfb3b49 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -11,7 +11,7 @@ "lib" ], "scripts": { - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 7f16809564..fdaaa79254 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -35,7 +35,7 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/utils", "scripts": { "start": "pnpm run tsc -- --watch", - "test": "pnpm run tsc", + "test": "pnpm run tsc -- --sourceMap", "lint": "tslint -c ../../tslint.json --project .", "tsc": "rimraf lib && tsc", "prepublishOnly": "pnpm run tsc" diff --git a/packages/write-project-manifest/package.json b/packages/write-project-manifest/package.json index 8ca7cfc2ab..513cd4f638 100644 --- a/packages/write-project-manifest/package.json +++ b/packages/write-project-manifest/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", - "test": "pnpm run tsc && cd ../.. && c8 --reporter lcov --reports-dir packages/write-project-manifest/coverage ts-node packages/write-project-manifest/test --type-check", + "test": "pnpm run tsc -- --sourceMap && cd ../.. && c8 --reporter lcov --reports-dir packages/write-project-manifest/coverage ts-node packages/write-project-manifest/test --type-check", "prepublishOnly": "pnpm run tsc", "tsc": "tsc" },