Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sub-app): dry-run #1232

Merged
merged 1 commit into from
Dec 27, 2022
Merged

fix(sub-app): dry-run #1232

merged 1 commit into from
Dec 27, 2022

Conversation

Sikora00
Copy link
Contributor

Dry run for the sub-app generator was
creating new directories stracture anyway.

Closes #1234

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #1234

What is the new behavior?

Using nest g -d app my-app doesn't introduce any changes to the files

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Comment on lines 256 to 261
// mv src
moveDirectories(sourceRoot, join(projectRoot as Path, appName), host);

// mv tests
const testDir = 'test';
moveDirectories(testDir, join(projectRoot as Path, appName), host);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// mv src
moveDirectories(sourceRoot, join(projectRoot as Path, appName), host);
// mv tests
const testDir = 'test';
moveDirectories(testDir, join(projectRoot as Path, appName), host);
moveDirectories(sourceRoot, join(projectRoot as Path, appName), host);
const testDir = 'test';
moveDirectories(testDir, join(projectRoot as Path, appName), host);

code seems to be self-explanatory(?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed these comments ✔️

Dry run for the sub-app generator was
creating new directories stracture anyway.

Closes nestjs/nest-cli#1513
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switching to Monorepo dry run bug
2 participants