-
Couldn't load subscription status.
- Fork 2.7k
Description
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
When a user is running a package via yarn create or npx, the package is unable to determine whether it was yarn that launched the package. This is useful for running additional yarn commands in the repo over npm-based ones.
If the current behavior is a bug, please provide the steps to reproduce.
yarn create @neutrinojs/project scaffolds the project using npm commands because it doesn't know the user is using yarn to run it.
What is the expected behavior?
Should have a way to sniff that this is yarn-based, probably through an environment variable.
Please mention your node.js, yarn and operating system version.
❯ node --version
v9.2.0
❯ yarn --version
1.3.2
❯ uname -a
Darwin pro.local 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64 # macOS High Sierra