18.3.7 • Published 8 days ago

nx-ignore v18.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

nx-ignore

This package is used on platforms such as Netlify or Vercel to ignore builds if a project is not affected.

Usage

npx nx-ignore <project-name>

For Netlify, use a custom ignore command in your netlify.toml file.

For Vercel, under the Settings > Git section, use this script in Ignored Build Step field.

Options

  • --additional-packages - List of additional npm packages to install when using --slim-install. Use this for packages required in configuration files that infer Nx targets (e.g. @playwright/test). Defaults to a list of known packages required by Nx and Nx plugins.
  • --base - Set a custom base SHA to compare changes (defaults to CACHED_COMMIT_REF on Netlify or VERCEL_GIT_PREVIOUS_SHA on Vercel).
  • --plugins - List of Nx plugins required (i.e. plugins that extend the Nx graph). Default plugins are read from nx.json.
  • --root - Set a custom workspace root (defaults to current working directory).
  • --slim-install - Install only Nx and necessary plugins to speed up the script (defaults to true when not using plugin, and false when plugins are used).
  • --verbose - Log more details information for debugging purposes.

Skipping and forcing deployment

Skip nx-ignore check and ignore deployment:

Skip nx-ignore check and force deployment:

How it works

The nx-ignore command uses Nx to determine whether the current commit affects the specified app. It exits with an error code (1) when the app is affected, which tells the platform to continue the build, otherwise it exits successfully, which tells the platform to cancel the build.

Troubleshooting

Error Failed to process project graph occurs on Netlify

When plugins are used in nx.json, Nx infers projects and targets through those plugins via their corresponding configuration files. For example, @nx/next/plugin infers projects and targets from next.config.js files. This means that modules imported in next.config.js must be present in order for Nx to work correctly.

If you run into the Failed to process project graph error, it means that some of the packages are missing. To debug what packages are missing, run npx nx-ignore@latest <app> --verbose --slim-install locally, and you should see an error with the missing package. You can also run npx nx show projects to debug any missing packages, after running the npx nx-ignore command.

Use the --additional-packages option to install the missing packages as detected above. For example,

npx nx-ignore@latest <app> --verbose --slim-install --additional-packages=@playwright/test,jest-environment-jsdom
18.3.7

8 days ago

18.3.6

8 days ago

18.3.5

8 days ago

18.3.4

8 days ago

18.3.3

8 days ago

18.3.2

8 days ago

18.3.1

8 days ago

18.3.0-beta.1

19 days ago

18.3.0-beta.2

19 days ago

18.3.0

19 days ago

18.0.2

3 months ago

18.0.0

3 months ago

17.2.8

3 months ago

18.0.1

5 months ago

17.2.2

5 months ago

17.2.1

5 months ago

17.2.0

5 months ago

17.0.0

7 months ago

16.8.2

8 months ago

16.8.1

8 months ago

16.8.0

8 months ago

16.3.0-beta.1

11 months ago

16.2.0-beta.1

12 months ago

16.2.0-beta.2

12 months ago

16.7.1

9 months ago

16.7.0

9 months ago

16.7.0-beta.1

9 months ago

16.3.1

11 months ago

16.3.0

11 months ago

16.2.0

12 months ago

16.4.0

11 months ago

15.9.8

1 year ago

15.9.8-beta.1

1 year ago

16.1.3-beta.1

12 months ago

16.1.1

1 year ago

16.1.3

12 months ago

16.1.2

1 year ago

15.5.3-beta.4

1 year ago

15.5.3-beta.3

1 year ago

15.5.3-beta.1

1 year ago

15.5.1-beta.0

1 year ago

15.5.1-beta.2

1 year ago

15.5.0

1 year ago

15.5.2

1 year ago

15.5.1

1 year ago

15.5.3

1 year ago

15.5.3-beta.0

1 year ago

15.6.0-beta.1

1 year ago

15.5.2-beta.0

1 year ago

15.5.0-beta.0

1 year ago

15.5.2-beta.1

1 year ago

15.5.0-beta.1

1 year ago

15.5.0-beta.4

1 year ago

15.5.0-beta.2

1 year ago

15.6.0

1 year ago

15.0.2

2 years ago

15.3.0

1 year ago

15.0.0

2 years ago

15.0.1

2 years ago

15.3.1

1 year ago

14.8.10

2 years ago

14.8.11

2 years ago

14.8.12

2 years ago

14.8.1

2 years ago

14.8.2

2 years ago

14.8.3

2 years ago

14.6.5

2 years ago

14.8.4

2 years ago

14.8.5

2 years ago

14.8.6

2 years ago

14.8.7

2 years ago

14.8.8

2 years ago

14.8.9

2 years ago

14.6.0-beta.1

2 years ago

14.6.0

2 years ago

14.7.0

2 years ago

14.8.0

2 years ago

14.5.0

2 years ago

14.2.0

2 years ago

14.1.1

2 years ago

14.1.0

2 years ago

1.0.0-beta.5

2 years ago

1.0.0-beta.4

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.1

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago