Skip to content

Commit 0511698

Browse files
ASAS
authored andcommitted
feat(nx-plugin): fix units, update model
1 parent e894482 commit 0511698

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/models/src/lib/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type ArtefactGenerationCommand = z.infer<
1818

1919
export const pluginArtefactOptionsSchema = z.object({
2020
generateArtefacts: artifactGenerationCommand.optional(),
21-
artefactsPaths: z.union([z.string(), z.array(z.string())]),
21+
artefactsPaths: z.union([z.string(), z.array(z.string()).min(1)]),
2222
});
2323

2424
export type PluginArtefactOptions = z.infer<typeof pluginArtefactOptionsSchema>;

packages/models/src/lib/configuration.unit.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('pluginArtefactOptionsSchema', () => {
4444
success: true,
4545
data: {
4646
artefactsPaths: 'dist/report.json',
47-
generateArtefacts: undefined,
4847
},
4948
});
5049
});
@@ -55,7 +54,6 @@ describe('pluginArtefactOptionsSchema', () => {
5554
success: true,
5655
data: {
5756
artefactsPaths: ['dist/report.json', 'dist/summary.json'],
58-
generateArtefacts: undefined,
5957
},
6058
});
6159
});

0 commit comments

Comments
 (0)