diff --git a/packages/angular/src/schematics/application/schema.json b/packages/angular/src/schematics/application/schema.json index ca3d399b63..b4aad360cd 100644 --- a/packages/angular/src/schematics/application/schema.json +++ b/packages/angular/src/schematics/application/schema.json @@ -11,7 +11,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the application?" + "x-prompt": "What name would you like to use for the application?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "description": "The directory of the new application.", diff --git a/packages/angular/src/schematics/library/schema.json b/packages/angular/src/schematics/library/schema.json index ffdf5cda78..9a098b42cb 100644 --- a/packages/angular/src/schematics/library/schema.json +++ b/packages/angular/src/schematics/library/schema.json @@ -11,7 +11,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the library?" + "x-prompt": "What name would you like to use for the library?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "type": "string", diff --git a/packages/express/src/schematics/application/schema.json b/packages/express/src/schematics/application/schema.json index d4e04e0cdd..50a9f0791c 100644 --- a/packages/express/src/schematics/application/schema.json +++ b/packages/express/src/schematics/application/schema.json @@ -11,7 +11,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the node application?" + "x-prompt": "What name would you like to use for the node application?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "description": "The directory of the new application.", diff --git a/packages/next/src/schematics/application/schema.json b/packages/next/src/schematics/application/schema.json index 4847ab991e..18373dff98 100644 --- a/packages/next/src/schematics/application/schema.json +++ b/packages/next/src/schematics/application/schema.json @@ -17,7 +17,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the application?" + "x-prompt": "What name would you like to use for the application?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "description": "The directory of the new application.", diff --git a/packages/react/src/schematics/application/schema.json b/packages/react/src/schematics/application/schema.json index 125ee4cb6e..6cf35ae17e 100644 --- a/packages/react/src/schematics/application/schema.json +++ b/packages/react/src/schematics/application/schema.json @@ -25,7 +25,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the application?" + "x-prompt": "What name would you like to use for the application?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "description": "The directory of the new application.", diff --git a/packages/react/src/schematics/library/schema.json b/packages/react/src/schematics/library/schema.json index 7799af36e2..7e72678da7 100644 --- a/packages/react/src/schematics/library/schema.json +++ b/packages/react/src/schematics/library/schema.json @@ -21,7 +21,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the library?" + "x-prompt": "What name would you like to use for the library?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "type": "string", diff --git a/packages/web/src/schematics/application/schema.json b/packages/web/src/schematics/application/schema.json index f55fdcc65f..f8e7d62a44 100644 --- a/packages/web/src/schematics/application/schema.json +++ b/packages/web/src/schematics/application/schema.json @@ -11,7 +11,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the application?" + "x-prompt": "What name would you like to use for the application?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "description": "The directory of the new application.", diff --git a/packages/workspace/src/schematics/library/schema.json b/packages/workspace/src/schematics/library/schema.json index 11149c0325..85c65d5d1f 100644 --- a/packages/workspace/src/schematics/library/schema.json +++ b/packages/workspace/src/schematics/library/schema.json @@ -17,7 +17,8 @@ "$source": "argv", "index": 0 }, - "x-prompt": "What name would you like to use for the library?" + "x-prompt": "What name would you like to use for the library?", + "pattern": "^[a-zA-Z]{1}.*$" }, "directory": { "type": "string",