[Bug] `preferInteractive` has no effect
See original GitHub issueDescribe the bug
According to the docs, preferInteractive: true
should imply --interactive
flag on every yarn add
, but adding preferInteractive
to yarnrc.yml
has no effect.
To Reproduce
Reproduction
await packageJson({ name: 'root', workspaces: ['packages/*'] })
await packageJson({ name: 'package-a', dependencies: { typescript: '3.8' } }, 'packages/package-a')
await expect(yarn('add', 'typescript', '--interactive', { timeout: 60000 })).rejects.toThrow(`Command failed`) // failed as expected because of interactive mode
require('fs').writeFileSync('.yarnrc.yml', 'preferInteractive: true')
await expect(yarn('add', 'typescript', { timeout: 60000 })).rejects.toThrow(`Command failed`) // it should also fail because of interactive mode, but succeeded as if there is no preferInteractive
Environment
- Yarn version 2.0.0-rc.36
Additional context
I cannot find any preferInteractive
text in this repo other than docs.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error Codes | Yarn - Package Manager
A list of Yarn's error codes with detailed explanations. ... If relevant, they can use optional peer dependencies to this effect.
Read more >Do pediatric residents prefer interactive learning? Educational ...
PDF | The volume of information that physicians must learn is increasing; yet, trainee educational time is limited.
Read more >Cartoon Tools for Tapping Your Inner Disney
But if you're interested in making stop-motion animations with a little more control, you may prefer Interactive Universe's Lapse It app ...
Read more >GAN'SDA Wrap: Geographic And Network Structured Data on ...
However, the effects of such interaction have not previously been evaluated. ... H1-1: Interactive has a lower error rate than all static map...
Read more >Gamified flipped learning: Students' motivation, engagement and ...
They prefer interactive environments ... Huang et al., 2019) and it has no effect (Mese & Dursun, 2019; Tan & Hew, 2016). Therefore,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🤔 Looks like yet another one of those “not yet implemented, but somehow documented” features that somehow somebody took the time document. 😅 I’m going to implement it soon 👍
This issue reproduces on master: