Comments (4)
Actually, everything can be a devDependency
in Nuxt 3 as we bundle everything for production (including the depdendencies used) :)
from cli.
Actually this is how we detect where to install the dependency:
cli/src/commands/module/add.ts
Line 63 in bca75ab
I think we can add an exception for @nuxt/eslint
to force being a dev dependency anyway
Happy to open a PR for it?
from cli.
Maybe try it 🥰
from cli.
@atinux I found a question
When initializing a Nuxt 3 project, nuxt and vue are installed by default as dependencies instead of devDependencies. The detection above is done by checking if nuxt is a devDependency, i.e. if nuxt in the user's project is not a devDependency, then any dependencies added by the user's module add will not be installed as devDependencies.
I'm not quite sure if all the official Nuxt modules need to be installed as devDependencies, but what I do know so far is that the manual install of @nuxt/eslint requires it and eslint to be installed as devDependencies.
from cli.
Related Issues (20)
- Support HTTP proxy for all commands HOT 1
- use project name for package.json name in init Command HOT 1
- addVitePlugin usage blocks Vite HMR fully HOT 1
- Keep nuxt in dependencies
- --bun uses different dependencies HOT 1
- Nuxi v3.12.0 constant pinging to localhost and failing HOT 7
- 3.12.0 Unable to set Vite HMR protocol
- npx nuxi@latest init <project-name> ERROR Invalid URL HOT 1
- Bug when installing modules HOT 1
- Using `nuxi --dotenv .env.staging` not working as expected inside NX monorepo
- drop legacy `rootDir` arg HOT 3
- Cannot override the registry when running `nuxi module add xxx` HOT 3
- nuxi always using default npm registry HOT 6
- ERROR Error: Failed to installing nuxt : Invalid URL HOT 3
- `nuxi typecheck` does not works with alias imports (server) HOT 2
- `Nuxi init -t` 404s on `nuxt.json`
- nuxt server Error
- Stop console clearing
- Make nuxi prepare run with NODE_ENV set to "development" by default
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 cli.