Skip to content

Commit 28b9462

Browse files
authored
chore: update to nx 18 (typescript-eslint#8442)
1 parent 4f3215f commit 28b9462

File tree

6 files changed

+160
-145
lines changed

6 files changed

+160
-145
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"@babel/types": "^7.23.3",
6363
"@eslint/eslintrc": "^2.1.4",
6464
"@eslint/js": "^8.56.0",
65-
"@nx/eslint": "17.3.1",
66-
"@nx/jest": "17.3.1",
67-
"@nx/workspace": "17.3.1",
65+
"@nx/eslint": "18.0.4",
66+
"@nx/jest": "18.0.4",
67+
"@nx/workspace": "18.0.4",
6868
"@swc/core": "^1.4.0",
6969
"@swc/jest": "^0.2.26",
7070
"@types/babel__code-frame": "^7.0.3",
@@ -110,7 +110,7 @@
110110
"markdownlint-cli": "^0.39.0",
111111
"ncp": "^2.0.0",
112112
"netlify": "^13.1.9",
113-
"nx": "17.3.1",
113+
"nx": "18.0.4",
114114
"prettier": "3.2.5",
115115
"pretty-format": "^29.6.2",
116116
"raw-loader": "^4.0.2",

packages/repo-tools/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"generate-lib": "tsx ./src/generate-lib.mts",
1313
"lint": "npx nx lint",
1414
"postinstall-script": "tsx ./src/postinstall.mts",
15-
"test": "jest --coverage",
15+
"test": "npx jest --coverage",
1616
"typecheck": "tsc -p tsconfig.json --noEmit"
1717
},
1818
"devDependencies": {

packages/rule-schema-to-typescript-types/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"generate-sponsors": "tsx ./src/generate-sponsors.ts",
3030
"lint": "npx nx lint",
3131
"postinstall-script": "tsx ./src/postinstall.ts",
32-
"test": "jest --coverage",
32+
"test": "npx jest --coverage",
3333
"typecheck": "tsc -p tsconfig.json --noEmit"
3434
},
3535
"dependencies": {

packages/rule-tester/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"lint": "npx nx lint",
4343
"pretest-eslint-base": "tsc -b tsconfig.build.json",
4444
"test-eslint-base": "mocha --require source-map-support/register ./tests/eslint-base/eslint-base.test.js",
45-
"test": "jest --coverage",
45+
"test": "npx jest --coverage",
4646
"typecheck": "tsc -p tsconfig.json --noEmit"
4747
},
4848
"//": "NOTE - AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70",

tools/release/release.mts

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { execaSync } from 'execa';
2-
import {
3-
releaseChangelog,
4-
releasePublish,
5-
releaseVersion,
6-
} from 'nx/src/command-line/release';
2+
import { releaseChangelog, releasePublish, releaseVersion } from 'nx/release';
73
import yargs from 'yargs';
84

95
const options = await yargs(process.argv.slice(2))
@@ -46,12 +42,16 @@ if (!options.dryRun) {
4642
}
4743

4844
// This will create a release on GitHub
49-
await releaseChangelog({
45+
const changelogStatus = await releaseChangelog({
5046
versionData: projectsVersionData,
5147
version: workspaceVersion,
5248
dryRun: options.dryRun,
5349
verbose: options.verbose,
5450
});
51+
if (changelogStatus !== 0) {
52+
console.error('🚨 Failed to generate changelog');
53+
process.exit(changelogStatus);
54+
}
5555

5656
// An explicit null value here means that no changes were detected across any package
5757
// eslint-disable-next-line eqeqeq
@@ -60,8 +60,9 @@ if (workspaceVersion === null) {
6060
'⏭️ No changes detected across any package, skipping publish step altogether',
6161
);
6262
} else {
63-
await releasePublish({
63+
const publishStatus = await releasePublish({
6464
dryRun: options.dryRun,
6565
verbose: options.verbose,
6666
});
67+
process.exit(publishStatus);
6768
}

0 commit comments

Comments
 (0)