Skip to content
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

fix(nx-ignore): include enhanced-resolve for nx repo and potentially other repos using it #396

Merged
merged 1 commit into from
May 3, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented May 3, 2024

It's somewhat of an edge case because Nx repo has a patched jest resolver that requires enhanced-resolve.

Copy link

nx-cloud bot commented May 3, 2024

☁️ Nx Cloud Report

⚠️ Important: This organization may reach the limit of the FREE Plan and could be disabled at the end of the month. If this happens, remote caching and distributed task execution will no longer work. Your CI may stop working.

CI is running/has finished running commands for commit bbaee12. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 4 targets

Sent with 💌 from NxCloud.

@jaysoo jaysoo force-pushed the fix/nx-ignore-enhanced-resolve branch 2 times, most recently from 51a1ded to 40ceaee Compare May 3, 2024 20:07
@@ -106,7 +106,9 @@ async function main() {
const graphJsonPath = join(tmpdir(), '.nx-affected-graph.json');
try {
execSync(
`npx nx affected:graph --base=${baseSha} --head=${headSha} --file=${graphJsonPath}`,
`npx nx affected:graph --base=${baseSha} --head=${headSha} --file=${graphJsonPath}${
isVerbose ? ' --verbose' : ''
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass --verbose to Nx so we can see the graph errors.

@@ -115,7 +117,7 @@ async function main() {
if (e.stdout) console.error(e.stdout.toString());
if (e.stderr) console.error(e.stderr.toString());
exitWithoutBuild(
`🛑 - Build cancelled due to the error above, you may need to use --additional-packages option if using Nx plugins to infer targets e.g. Project Crystal (Hint: commit with "[nx deploy]" to force deployment if necessary)`
`🛑 - Build cancelled due to the error above. You may need to use --additional-packages option if using Nx plugins to infer targets e.g. Project Crystal. (Hint: commit with "[nx deploy]" to force deployment if necessary)`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve messaging.

@jaysoo jaysoo force-pushed the fix/nx-ignore-enhanced-resolve branch from 40ceaee to bbaee12 Compare May 3, 2024 20:24
@jaysoo jaysoo merged commit cc50013 into main May 3, 2024
7 checks passed
@jaysoo jaysoo deleted the fix/nx-ignore-enhanced-resolve branch May 3, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants