-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
☁️ Nx Cloud Report
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 targetsSent with 💌 from NxCloud. |
51a1ded
to
40ceaee
Compare
@@ -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' : '' |
There was a problem hiding this comment.
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)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve messaging.
…other repos using it
40ceaee
to
bbaee12
Compare
It's somewhat of an edge case because Nx repo has a patched jest resolver that requires
enhanced-resolve
.