Skip to content

contextRoot should support npm script wrapper #603

@stevenvachon

Description

@stevenvachon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions