Skip to content

Commit 41ec7ba

Browse files
authored
chore: remove unnecessary lerna usage MONGOSH-1486 (#1600)
* replace like-for-like lerna commands with npm workspaces ones * not sure if the default is --bail or --no-bail
1 parent 7d43d9d commit 41ec7ba

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

package.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,39 @@
1515
"bootstrap-ci": "lerna bootstrap --ci",
1616
"clean": "lerna clean -y && rm -Rf node_modules",
1717
"check": "lerna run check --since HEAD --exclude-dependents",
18-
"check-ci": "lerna run check",
18+
"check-ci": "npm run check --workspaces --if-present",
1919
"depalign": "depalign",
2020
"predepcheck": "npm run depalign",
21-
"depcheck": "lerna run --stream depcheck",
22-
"lint": "lerna run lint",
21+
"depcheck": "npm run depcheck --workspaces --if-present",
22+
"lint": "npm run lint --workspaces --if-present",
2323
"test": "rimraf .nyc_output && lerna exec -- nyc --no-clean --cwd ../.. --reporter=none npm run test && npm run report-coverage",
2424
"test-ci": "rimraf .nyc_output && lerna exec -- nyc --no-clean --cwd ../.. --reporter=none npm run test-ci && npm run post-process-nyc",
2525
"test-ci-nocoverage": "lerna exec -- npm run test-ci",
26-
"test-e2e": "lerna run --stream test-e2e",
27-
"test-e2e-ci": "lerna run --stream test-e2e-ci",
28-
"test-apistrict-ci": "lerna run --stream test-apistrict-ci",
29-
"test-connectivity": "lerna run --stream test-connectivity",
26+
"test-e2e": "npm run test-e2e --workspaces --if-present",
27+
"test-e2e-ci": "npm run test-e2e-ci --workspaces --if-present",
28+
"test-apistrict-ci": "npm run test-apistrict-ci --workspaces --if-present",
29+
"test-connectivity": "npm run test-connectivity --workspaces --if-present",
3030
"replace-package": "node scripts/replace-package.js",
3131
"test-nodedriver": "bash .evergreen/test-node-driver.sh",
3232
"compile": "lerna run compile",
3333
"compile-cli": "lerna run compile --scope @mongosh/cli-repl --include-dependencies",
3434
"prestart-cli": "npm run compile-cli",
3535
"start-cli": "lerna exec npm start --scope @mongosh/cli-repl",
36-
"compile-browser": "lerna run --stream build --scope @mongosh/browser-repl",
37-
"prestart-browser": "npm run compile-browser",
38-
"start-browser": "lerna exec npm start --scope @mongosh/browser-repl",
36+
"start-browser": "npm run start --workspace @mongosh/browser-repl",
3937
"start": "npm run start-cli",
4038
"precompile-exec": "npm run compile-cli",
4139
"compile-exec": "npm run evergreen-release compile",
4240
"compile-all": "npm run compile-compass && npm run compile-exec",
4341
"evergreen-release": "cd packages/build && npm run evergreen-release --",
4442
"release": "cd packages/build && npm run release --",
45-
"report-missing-help": "lerna run --stream --scope @mongosh/shell-api report-missing-help",
46-
"report-supported-api": "lerna run --stream --scope @mongosh/shell-api report-supported-api",
43+
"report-missing-help": "npm run report-missing-help --workspace @mongosh/shell-api",
44+
"report-supported-api": "npm run report-supported-api --workspace @mongosh/shell-api",
4745
"post-process-nyc": "ts-node scripts/nyc/post-process-nyc-output.ts",
4846
"pre-process-coverage": "ts-node scripts/nyc/pre-process-coverage.ts",
4947
"report-coverage": "nyc report --reporter=text --reporter=html",
5048
"report-coverage-ci": "npm run pre-process-coverage && nyc report --reporter=text --reporter=html",
5149
"check-coverage": "nyc check-coverage --lines=90",
52-
"generate-error-overview": "lerna run --stream --scope @mongosh/errors generate-error-overview",
50+
"generate-error-overview": "npm run generate-error-overview --workspace @mongosh/errors",
5351
"update-authors": "ts-node -P configs/tsconfig-mongosh/tsconfig.common.json scripts/generate-authors.ts",
5452
"preupdate-third-party-notices": "npm run webpack-build -w packages/cli-repl",
5553
"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 @@
6361
"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",
6462
"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",
6563
"where": "monorepo-where",
66-
"reformat": "lerna run reformat --stream --no-bail",
64+
"reformat": "npm run reformat --workspaces --if-present",
6765
"prepare": "husky install",
6866
"precommit": "precommit"
6967
},

0 commit comments

Comments
 (0)