-
-
Notifications
You must be signed in to change notification settings - Fork 401
Open
Labels
Description
Type of issue
Feature request or bug, not sure.
My environment
- OS version/details: macOS
10.14 - Node version:
10.11.0 - npm version:
6.4.1 - Version of yo :
2.0.5
Expected behavior
this.contextRoot contains the path to where the yo CLI was executed from. When yo is wrapped in an npm script (such as npm run generate), this.contextRoot should be the value of process.env.CWD_INIT.
Current behavior
When yo is wrapped in an npm script, this.contextRoot contains the path to the project root.