Comments (2)
@Badisi if your commit convention allows you to use other types than fix
or feat
you can configure your nx release command to ignore certain types of commits when the release command needs to determine the next version.
See the documentation here: https://nx.dev/recipes/nx-release/customize-conventional-commit-types
A change to non-projects files can always be affecting other projects. I believe this is a safe approach as it leaves it to the developer to use commit types such as chore
or test
to mark a commit to be 'hidden' in your changelog and not cause any version bump.
from nx.
@thdk, I'm using the default commit convention, nothing fancy here.
My real concern is that when using independent
mode and projectChangelogs
level, changelogs should only be scoped to a project level and not include any workspace changes.
And that's actually what the documentation says:
... they are generated for each project individually and only contain changes for that specific project ...
So in this particular scenario I completely disagree with you when you say that "a change to non-projects files can always be affecting other projects". The idea behind projectChangelogs
is purposely to ignore any changes that was made outside of a project scope and only include what was made inside it.
As for commit types such as chore
or test
, I agree they can help 'hide' a commit but it's just a dirty solution here and does not completely solves the problem. To err is human, and you can't depend on a developer always remembering to use the correct commit types to ensure proper scoping or exclusion within a project.
from nx.
Related Issues (20)
- nx graph --affected --file=graph.json not working correctly HOT 4
- Nx reset required whenever changing project configuration files
- NPE on task runner
- NextJS Turbopack fails to compile HOT 3
- `npm install` in a project with 2 `nx` packages randomly fails with `npm ERR! code 135` HOT 2
- Should `workspace-data` be .gitignored? HOT 2
- The typecheck target (@nx/js/typescript) adds excluded paths from tsconfig.base.json as invalid filesets (without `{workspaceRoot}`)
- NX 19.2 regression on `generatePackageJson` HOT 1
- Module federation HMR on host
- NX EXPO QR NOT SHOWING HOT 1
- Bug in feedback modal input
- nx/expo not showing QR HOT 2
- `getProjects` is missing tags data for the root project
- Running @storybook/angular:start-storybook with Storybook 8 fails to load preset HOT 3
- Path for Eslint Flat config wrongly resolved
- nx > 17 does not pass through cli npm arguments HOT 2
- Prototype Pollution Affecting axios package, versions >=0.28.0 <1.6.4
- Newly generated remix app can't be installed due to peer dependency conflicts
- Cannot read properties of undefined (reading 'data') in Nx 18 HOT 1
- Vue: TS2307 "Cannot find module './app/App.vue'"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.