diff --git a/package.json b/package.json index 50e6afc0a0..47d32f0bd8 100644 --- a/package.json +++ b/package.json @@ -15,41 +15,39 @@ "bootstrap-ci": "lerna bootstrap --ci", "clean": "lerna clean -y && rm -Rf node_modules", "check": "lerna run check --since HEAD --exclude-dependents", - "check-ci": "lerna run check", + "check-ci": "npm run check --workspaces --if-present", "depalign": "depalign", "predepcheck": "npm run depalign", - "depcheck": "lerna run --stream depcheck", - "lint": "lerna run lint", + "depcheck": "npm run depcheck --workspaces --if-present", + "lint": "npm run lint --workspaces --if-present", "test": "rimraf .nyc_output && lerna exec -- nyc --no-clean --cwd ../.. --reporter=none npm run test && npm run report-coverage", "test-ci": "rimraf .nyc_output && lerna exec -- nyc --no-clean --cwd ../.. --reporter=none npm run test-ci && npm run post-process-nyc", "test-ci-nocoverage": "lerna exec -- npm run test-ci", - "test-e2e": "lerna run --stream test-e2e", - "test-e2e-ci": "lerna run --stream test-e2e-ci", - "test-apistrict-ci": "lerna run --stream test-apistrict-ci", - "test-connectivity": "lerna run --stream test-connectivity", + "test-e2e": "npm run test-e2e --workspaces --if-present", + "test-e2e-ci": "npm run test-e2e-ci --workspaces --if-present", + "test-apistrict-ci": "npm run test-apistrict-ci --workspaces --if-present", + "test-connectivity": "npm run test-connectivity --workspaces --if-present", "replace-package": "node scripts/replace-package.js", "test-nodedriver": "bash .evergreen/test-node-driver.sh", "compile": "lerna run compile", "compile-cli": "lerna run compile --scope @mongosh/cli-repl --include-dependencies", "prestart-cli": "npm run compile-cli", "start-cli": "lerna exec npm start --scope @mongosh/cli-repl", - "compile-browser": "lerna run --stream build --scope @mongosh/browser-repl", - "prestart-browser": "npm run compile-browser", - "start-browser": "lerna exec npm start --scope @mongosh/browser-repl", + "start-browser": "npm run start --workspace @mongosh/browser-repl", "start": "npm run start-cli", "precompile-exec": "npm run compile-cli", "compile-exec": "npm run evergreen-release compile", "compile-all": "npm run compile-compass && npm run compile-exec", "evergreen-release": "cd packages/build && npm run evergreen-release --", "release": "cd packages/build && npm run release --", - "report-missing-help": "lerna run --stream --scope @mongosh/shell-api report-missing-help", - "report-supported-api": "lerna run --stream --scope @mongosh/shell-api report-supported-api", + "report-missing-help": "npm run report-missing-help --workspace @mongosh/shell-api", + "report-supported-api": "npm run report-supported-api --workspace @mongosh/shell-api", "post-process-nyc": "ts-node scripts/nyc/post-process-nyc-output.ts", "pre-process-coverage": "ts-node scripts/nyc/pre-process-coverage.ts", "report-coverage": "nyc report --reporter=text --reporter=html", "report-coverage-ci": "npm run pre-process-coverage && nyc report --reporter=text --reporter=html", "check-coverage": "nyc check-coverage --lines=90", - "generate-error-overview": "lerna run --stream --scope @mongosh/errors generate-error-overview", + "generate-error-overview": "npm run generate-error-overview --workspace @mongosh/errors", "update-authors": "ts-node -P configs/tsconfig-mongosh/tsconfig.common.json scripts/generate-authors.ts", "preupdate-third-party-notices": "npm run webpack-build -w packages/cli-repl", "update-third-party-notices": "mongodb-sbom-tools generate-3rd-party-notices --product='mongosh' --dependencies=.sbom/dependencies.json > THIRD_PARTY_NOTICES.md", @@ -63,7 +61,7 @@ "generate-vulnerability-report": "mongodb-sbom-tools generate-vulnerability-report --snyk-reports=.sbom/snyk-test-result.json,.sbom/node-js-vuln.json --dependencies=.sbom/dependencies.json,.sbom/node-js-dep.json --fail-on=high > .sbom/vulnerability-report.md", "create-vulnerability-tickets": "mongodb-sbom-tools generate-vulnerability-report --snyk-reports=.sbom/snyk-test-result.json,.sbom/node-js-vuln.json --dependencies=.sbom/dependencies.json,.sbom/node-js-dep.json --create-jira-issues", "where": "monorepo-where", - "reformat": "lerna run reformat --stream --no-bail", + "reformat": "npm run reformat --workspaces --if-present", "prepare": "husky install", "precommit": "precommit" },