Comments (2)
We only use one name as the source of truth for a project.
- In the case of a only package.json file being present there is name in there explicitly, so we use that.
- If you were to set the
name
field in project.json to that same value we would use that and not allow anything else either.
Finally, if a project.json is present, that is the ultimate source of truth, and the behavior you are seeing is that we don't force you to write a name in the project.json file and instead infer it from its location on disk if you don't.
I agree that this combination, where there is a package.json with a name, and a project.json without a name, is currently confusing.
from nx.
Hey - just providing an update here. In package.json
you can rename the project under the nx
key. The current behavior where the name changes by adding an empty json file is confusing, we should fall back on the package.json instead.
The linked PR corrects that behavior. We can't safely remove the scope from your project names without a configuration field telling us the new name as it introduces footguns around name collisions.
from nx.
Related Issues (20)
- `nx release publish`: 402 Payment Required error with scoped packages HOT 1
- ESBuild dependency resolution breaks in multi language repo
- Nx broken in Termux - Cannot find module '@nx/nx-android-arm64' HOT 1
- Support `.cjs` file extension when using eslint flat config
- the nx daemon fails to start when there is npm protocal dep with redirected resolve
- @nx/webpack:webpack fails when using generatePackageJson option with bun HOT 1
- Cypress component testing customWebpackConfig from devServerTarget not used.
- nx releaseChangelog error `No changed files to commit` HOT 1
- enforce-module-boundaries plugin can't detect error in packages HOT 1
- NX Release (with NestJs Lib) is updating wrong package.json
- Nx not able to migrate angular material and Angular CDK from 9.X.X to 11.X.X HOT 1
- CommitReferences are not included in all Changelogs HOT 3
- Clarity required for 'Environment Variable Conflict between Nx and Vite' solution HOT 1
- `chalk.bold is not a function` error when running `nx g @nx/angular:ng-add`
- NX built in environment variables are not available to process in nx19 HOT 3
- `nx release`: please update your lock file with `npm install` before continuing
- Agent Nx Tasks not using working-driectory (GitHub Actions)
- Error createing nx workspace with next-standalone preset
- Failed to process project graph | Starting app dose not work HOT 2
- What is the correct way to use angular esbuild HOT 9
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.