11 lines
257 B
TypeScript
11 lines
257 B
TypeScript
import type { GeneratorOptions, NormalizedGeneratorOptions } from '../schema';
|
|
|
|
export function normalizeOptions(
|
|
options: GeneratorOptions
|
|
): NormalizedGeneratorOptions {
|
|
return {
|
|
...options,
|
|
buildTarget: options.buildTarget || 'build',
|
|
};
|
|
}
|