Skip to content

--dry-run creates empty folder #4500

Closed
Closed
@niklas-dahl

Description

@niklas-dahl

OS?

Windows 7

Versions.

@angular/cli: 1.0.0-beta.30
node: 7.5.0
os: win32 x64
@angular/common: 2.4.6
@angular/compiler: 2.4.6
@angular/core: 2.4.6
@angular/forms: 2.4.6
@angular/http: 2.4.6
@angular/platform-browser: 2.4.6
@angular/platform-browser-dynamic: 2.4.6
@angular/router: 3.4.6
@angular/cli: 1.0.0-beta.30
@angular/compiler-cli: 2.4.6

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

  1. ng new proj && cd proj
  2. ng g module settings3 --routing --dry-run
λ ng g module settings3 --routing --dry-run
installing module
You specified the dry-run flag, so no changes will be written.
  create src\app\settings3\settings3-routing.module.ts
  create src\app\settings3\settings3.module.ts
installing component
You specified the dry-run flag, so no changes will be written.
  create src\app\settings3\settings3.component.css
  create src\app\settings3\settings3.component.html
  create src\app\settings3\settings3.component.spec.ts
  create src\app\settings3\settings3.component.ts

Despite saying no changes will be written an empty folder src/app/settings3 is created.

Mention any other details that might be useful.

Without the routing flag no empty folder is generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions