We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0f7ac commit 645a091Copy full SHA for 645a091
packages/schematics/angular/ng-new/index.ts
@@ -24,6 +24,7 @@ import {
24
RepositoryInitializerTask,
25
} from '@angular-devkit/schematics/tasks';
26
import { Schema as ApplicationOptions } from '../application/schema';
27
+import { validateProjectName } from '../utility/validation';
28
import { Schema as WorkspaceOptions } from '../workspace/schema';
29
import { Schema as NgNewOptions } from './schema';
30
@@ -33,6 +34,8 @@ export default function(options: NgNewOptions): Rule {
33
34
throw new SchematicsException(`Invalid options, "name" is required.`);
35
}
36
37
+ validateProjectName(options.name);
38
+
39
if (!options.directory) {
40
options.directory = options.name;
41
0 commit comments