Skip to content

Commit

Permalink
fix(misc): mark name as required for ci-workflow generator
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Jun 13, 2023
1 parent e39ee11 commit eb48fe0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"pattern": "^[a-zA-Z].*$"
}
},
"required": ["ci"],
"required": ["ci", "name"],
"presets": []
},
"description": "Generate a CI workflow.",
Expand Down
4 changes: 2 additions & 2 deletions packages/workspace/src/generators/ci-workflow/ci-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { deduceDefaultBase } from '../../utilities/default-base';

export interface Schema {
name?: string;
name: string;
ci: 'github' | 'azure' | 'circleci' | 'bitbucket-pipelines' | 'gitlab';
}

Expand Down Expand Up @@ -47,7 +47,7 @@ interface Substitutes {

function normalizeOptions(options: Schema): Substitutes {
const { name: workflowName, fileName: workflowFileName } = names(
options.name || 'CI'
options.name
);
const { exec: packageManagerPrefix, ciInstall: packageManagerInstall } =
getPackageManagerCommand();
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace/src/generators/ci-workflow/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"pattern": "^[a-zA-Z].*$"
}
},
"required": ["ci"]
"required": ["ci", "name"]
}

0 comments on commit eb48fe0

Please sign in to comment.