optionalDevDependencies ingored
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- cli, developer-experience
Research direction
Start with the reported package.json and reproduce optional-dev-dependency @vue/cli-plugin-e2e-cypress using the exact optionalDevDependencies version shown. Trace the command's install and save handling; done means it installs 3.0.0-beta.6, leaves package.json unchanged without --save, and saves to optionalDevDependencies rather than dependencies when requested.
Written by the indexing model from the issue text.
Description
Hi. I have three separate problems, it's hard to split this into individual issues.
- In my
package.jsonI have specified the exact version number:
"optionalDevDependencies": {
"@vue/cli-plugin-e2e-cypress": "3.0.0-beta.6"
}
After running optional-dev-dependency @vue/cli-plugin-e2e-cypress I would expect 3.0.0-beta.6 version to be installed. The actual outcome is that the latest 3.0.5 installed.
package.jsonbecomes changed because@vue/cli-plugin-e2e-cypressis injected todependencies:
"dependencies": {
+ "@vue/cli-plugin-e2e-cypress": "^3.0.5",
...
I didn't use --save flag, package.json should not get changed.
- Even if
--savesomehow broken and enabled by default, the dependency should be saved inoptionalDevDependencies, in the worst case indevDependencies, and for sure not independencies.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bcoe/optional-dev-dependency
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
bcoe/optional-dev-dependency#23 · 4 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
bcoe/optional-dev-dependency#19 · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in bcoe/optional-dev-dependency
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·