-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: use nx release #8194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use nx release #8194
Changes from all commits
85c2d70
5039f60
7287af9
3c28b60
bed88d3
9a23f09
2d5600d
8b1198a
fb5326a
a38f60e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
# Change Log | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Question] While we're here, can we change it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ha yeah true |
||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [6.17.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.16.0...v6.17.0) (2024-01-01) | ||
|
||
|
||
|
This file was deleted.
JamesHenry marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
"executor": "@nx/eslint:lint", | ||
"outputs": ["{options.outputFile}"], | ||
"options": { | ||
"lintFilePatterns": ["packages/ast-spec/**/*.{mts,cts,ts,tsx}"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The patterns are no longer required, the source files of the project are all eligible to be linted |
||
"ignorePath": ".eslintignore" | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { execaSync } from 'execa'; | ||
import semver from 'semver'; | ||
|
||
const preid = 'alpha'; | ||
const distTag = 'canary'; | ||
|
||
const currentLatestVersion = execaSync('npm', [ | ||
'view', | ||
'@typescript-eslint/eslint-plugin@latest', | ||
'version', | ||
]).stdout.trim(); | ||
|
||
const currentCanaryVersion = execaSync('npm', [ | ||
'view', | ||
`@typescript-eslint/eslint-plugin@${distTag}`, | ||
'version', | ||
]).stdout.trim(); | ||
|
||
console.log('\nResolved current versions: ', { | ||
currentLatestVersion, | ||
currentCanaryVersion, | ||
}); | ||
|
||
let nextCanaryVersion: string | null; | ||
|
||
if (semver.gte(currentLatestVersion, currentCanaryVersion)) { | ||
console.log( | ||
'\nLatest version is greater than or equal to the current canary version, starting new prerelease base...', | ||
); | ||
// Determine next minor version above the currentLatestVersion | ||
nextCanaryVersion = semver.inc( | ||
currentLatestVersion, | ||
'prerelease', | ||
undefined, | ||
preid, | ||
); | ||
} else { | ||
console.log( | ||
'\nLatest version is less than the current canary version, incrementing the existing prerelease base...', | ||
); | ||
// Determine next prerelease version above the currentCanaryVersion | ||
nextCanaryVersion = semver.inc( | ||
currentCanaryVersion, | ||
'prerelease', | ||
undefined, | ||
preid, | ||
); | ||
} | ||
|
||
if (!nextCanaryVersion) { | ||
console.log(`Error: Unable to determine next canary version`); | ||
// eslint-disable-next-line no-process-exit | ||
process.exit(1); | ||
} | ||
|
||
console.log(`\nApplying next canary version with Nx`); | ||
|
||
const command = `nx release version ${nextCanaryVersion}`; | ||
|
||
console.log(`\n> ${command}\n`); | ||
|
||
execaSync('npx', command.split(' '), { | ||
stdio: 'inherit', | ||
}); |
Uh oh!
There was an error while loading. Please reload this page.