Skip to content

Commit

Permalink
chore: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
hrkeni committed Apr 6, 2023
1 parent a4b0ed4 commit 85e8452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions actions/generate.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
shouldAskForProject,
shouldGenerateFlat,
shouldGenerateSpec,
shouldGenerateSpecFileSuffix,
getSpecFileSuffix,
} from '../lib/utils/project-utils';
import { AbstractAction } from './abstract.action';

Expand Down Expand Up @@ -64,7 +64,7 @@ const generateFiles = async (inputs: Input[]) => {
specOptions.passedAsInput,
);
let generateFlat = shouldGenerateFlat(configuration, appName, flatValue);
let generateSpecFileSuffix = shouldGenerateSpecFileSuffix(configuration, appName, specFileSuffixValue)
let generateSpecFileSuffix = getSpecFileSuffix(configuration, appName, specFileSuffixValue)

// If you only add a `lib` we actually don't have monorepo: true BUT we do have "projects"
// Ensure we don't run for new app/libs schematics
Expand Down Expand Up @@ -111,7 +111,7 @@ const generateFiles = async (inputs: Input[]) => {
answers.appNames,
flatValue,
);
generateSpecFileSuffix = shouldGenerateSpecFileSuffix(configuration, appName, specFileSuffixValue)
generateSpecFileSuffix = getSpecFileSuffix(configuration, appName, specFileSuffixValue)
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/project-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function shouldGenerateFlat(
return flatValue;
}

export function shouldGenerateSpecFileSuffix(
export function getSpecFileSuffix(
configuration: Required<Configuration>,
appName: string,
specFileSuffixValue: string,
Expand Down

0 comments on commit 85e8452

Please sign in to comment.