|
1 | 1 | { |
2 | 2 | "private": true, |
3 | 3 | "scripts": { |
4 | | - "build": "node ./scripts/verify-packages-versions.js && lerna run build:transpile,build:types,build:bundle", |
5 | | - "build:bundle": "lerna run build:bundle", |
6 | | - "build:dev": "lerna run build:types,build:transpile", |
7 | | - "build:dev:filter": "lerna run build:dev --include-filtered-dependencies --include-filtered-dependents --scope", |
8 | | - "build:transpile": "lerna run build:transpile", |
9 | | - "build:types": "lerna run build:types", |
10 | | - "build:watch": "lerna run build:watch", |
11 | | - "build:dev:watch": "lerna run build:dev:watch", |
12 | | - "build:types:watch": "ts-node scripts/build-types-watch.ts", |
| 4 | + "build": "node ./scripts/verify-packages-versions.js && nx run-many -t build:transpile build:types build:bundle", |
| 5 | + "build:bundle": "nx run-many -t build:bundle", |
| 6 | + "build:dev": "nx run-many -t build:types build:transpile", |
| 7 | + "build:dev:filter": "nx run-many -t build:dev -p", |
| 8 | + "build:transpile": "nx run-many -t build:transpile", |
| 9 | + "build:types": "nx run-many -t build:types", |
| 10 | + "build:watch": "nx run-many -t build:watch", |
| 11 | + "build:dev:watch": "nx run-many -t build:dev:watch", |
13 | 12 | "build:tarball": "run-s clean:tarballs build:tarballs", |
14 | | - "build:tarballs": "lerna run build:tarball", |
| 13 | + "build:tarballs": "nx run-many -t build:tarball", |
15 | 14 | "changelog": "ts-node ./scripts/get-commit-list.ts", |
16 | 15 | "generate-changelog": "ts-node ./scripts/generate-changelog.ts", |
17 | | - "circularDepCheck": "lerna run circularDepCheck", |
| 16 | + "circularDepCheck": "nx run-many -t circularDepCheck", |
18 | 17 | "clean": "run-s clean:build clean:caches", |
19 | | - "clean:build": "lerna run clean", |
| 18 | + "clean:build": "nx run-many -t clean", |
20 | 19 | "clean:caches": "yarn rimraf eslintcache .nxcache .nx", |
21 | | - "clean:deps": "lerna clean --yes && rm -rf node_modules && yarn", |
| 20 | + "clean:deps": "rimraf packages/*/node_modules dev-packages/*/node_modules && rm -rf node_modules && yarn", |
22 | 21 | "clean:tarballs": "rimraf {packages,dev-packages}/*/*.tgz", |
23 | 22 | "clean:watchman": "watchman watch-del \".\"", |
24 | 23 | "clean:all": "run-s clean:build clean:tarballs clean:caches clean:deps clean:watchman", |
25 | | - "fix": "run-s fix:oxfmt fix:lerna", |
26 | | - "fix:lerna": "lerna run fix", |
| 24 | + "fix": "run-s fix:oxfmt fix:eslint", |
| 25 | + "fix:eslint": "nx run-many -t fix", |
27 | 26 | "fix:oxfmt": "oxfmt . --write", |
28 | 27 | "format:check": "oxfmt . --check", |
29 | 28 | "format": "oxfmt . --write", |
30 | | - "lint": "run-s lint:oxfmt lint:lerna", |
31 | | - "lint:lerna": "lerna run lint", |
| 29 | + "lint": "run-s lint:oxfmt lint:eslint", |
| 30 | + "lint:eslint": "nx run-many -t lint", |
32 | 31 | "lint:oxfmt": "oxfmt . --check", |
33 | | - "lint:es-compatibility": "lerna run lint:es-compatibility", |
| 32 | + "lint:es-compatibility": "nx run-many -t lint:es-compatibility", |
34 | 33 | "dedupe-deps:check": "yarn-deduplicate yarn.lock --list --fail", |
35 | 34 | "dedupe-deps:fix": "yarn-deduplicate yarn.lock", |
36 | | - "postpublish": "lerna run --stream --concurrency 1 postpublish", |
37 | | - "test": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,node-core-integration-tests,cloudflare-integration-tests}\" test", |
38 | | - "test:unit": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,node-core-integration-tests,cloudflare-integration-tests}\" test:unit", |
39 | | - "test:update-snapshots": "lerna run test:update-snapshots", |
| 35 | + "postpublish": "nx run-many -t postpublish --parallel=1", |
| 36 | + "test": "nx run-many -t test --exclude \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,node-core-integration-tests,cloudflare-integration-tests}\"", |
| 37 | + "test:scripts": "vitest run scripts/bump-version.test.ts", |
| 38 | + "test:unit": "nx run-many -t test:unit --exclude \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,node-core-integration-tests,cloudflare-integration-tests}\"", |
| 39 | + "test:update-snapshots": "nx run-many -t test:update-snapshots", |
40 | 40 | "test:pr": "nx affected -t test --exclude \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests,node-core-integration-tests,cloudflare-integration-tests}\"", |
41 | 41 | "test:pr:browser": "UNIT_TEST_ENV=browser ts-node ./scripts/ci-unit-tests.ts --affected", |
42 | 42 | "test:pr:node": "UNIT_TEST_ENV=node ts-node ./scripts/ci-unit-tests.ts --affected", |
43 | 43 | "test:ci:browser": "UNIT_TEST_ENV=browser ts-node ./scripts/ci-unit-tests.ts", |
44 | 44 | "test:ci:node": "UNIT_TEST_ENV=node ts-node ./scripts/ci-unit-tests.ts", |
45 | | - "test:ci:bun": "lerna run test --scope @sentry/bun", |
46 | | - "yalc:publish": "lerna run yalc:publish" |
| 45 | + "test:ci:bun": "nx run-many -t test -p @sentry/bun", |
| 46 | + "yalc:publish": "nx run-many -t yalc:publish" |
47 | 47 | }, |
48 | 48 | "volta": { |
49 | 49 | "node": "20.19.2", |
|
127 | 127 | "es-check": "^7.2.1", |
128 | 128 | "eslint": "8.57.0", |
129 | 129 | "jsdom": "^21.1.2", |
130 | | - "lerna": "8.2.4", |
| 130 | + "nx": "22.5.0", |
131 | 131 | "madge": "8.0.0", |
132 | 132 | "nodemon": "^3.1.10", |
133 | 133 | "npm-run-all2": "^6.2.0", |
|
146 | 146 | }, |
147 | 147 | "//_resolutions_comment": [ |
148 | 148 | "Because new versions of strip-ansi, string-width, and wrap-ansi are ESM only packages,", |
149 | | - "we need to resolve them to the CommonJS versions.", |
150 | | - "This is a temporary solution until we can upgrade to a version of lerna that supports ESM packages" |
| 149 | + "we need to resolve them to the CommonJS versions." |
151 | 150 | ], |
152 | 151 | "resolutions": { |
153 | 152 | "gauge/strip-ansi": "6.0.1", |
|
0 commit comments