diff --git a/npm/ng-packs/packages/schematics/src/enums/exception.ts b/npm/ng-packs/packages/schematics/src/enums/exception.ts new file mode 100644 index 0000000000..8577df7d41 --- /dev/null +++ b/npm/ng-packs/packages/schematics/src/enums/exception.ts @@ -0,0 +1,5 @@ +export const enum Exception { + InvalidWorkspace = 'Invalid Workspace: The angular.json should be a valid JSON file.', + NoProject = 'Unknown Project: Either define a default project in your workspace or specify the project name in schematics options.', + NoWorkspace = 'Workspace Not Found: Make sure you are running schematics at the root directory of your workspace and it has an angular.json file.', +} diff --git a/npm/ng-packs/packages/schematics/src/enums/index.ts b/npm/ng-packs/packages/schematics/src/enums/index.ts new file mode 100644 index 0000000000..3d5b914d2f --- /dev/null +++ b/npm/ng-packs/packages/schematics/src/enums/index.ts @@ -0,0 +1 @@ +export * from './exception';