Skip to content

Commit

Permalink
fix(nx-ignore): include enhanced-resolve for nx repo and potentially …
Browse files Browse the repository at this point in the history
…other repos using it (#396)
  • Loading branch information
jaysoo committed May 3, 2024
1 parent 357d147 commit cc50013
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/nx-ignore/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' : ''
}`,
{
cwd: root,
}
Expand All @@ -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)`
);
}
const projects = JSON.parse(
Expand Down Expand Up @@ -273,12 +275,13 @@ function detectRequiredPackages(root: string): Record<string, string> {
/@nx\//,
/^typescript$/,
/@typescript-eslint\//,
/^@swc\/core$/,
/^@swc-node\/register$/,
/^@swc\//,
/^@swc-node\//,
/^cypress$/,
/@cypress\//,
/^cypress-/,
/^eslint-/,
/^enhanced-resolve$/,
/^jest$/,
/^jest-/,
/-jest$/, // ts-jest, babel-jest
Expand Down

0 comments on commit cc50013

Please sign in to comment.