From 76cd5401ccd8d93989941fa843c862a5bc21405d Mon Sep 17 00:00:00 2001 From: Alejandro Date: Fri, 10 Jan 2025 22:34:22 +0100 Subject: [PATCH 1/2] fix(models): add missing exports --- packages/models/src/index.ts | 101 ++++++++++++++++++----------------- 1 file changed, 53 insertions(+), 48 deletions(-) diff --git a/packages/models/src/index.ts b/packages/models/src/index.ts index 810d7ca7d..9fe3e7b23 100644 --- a/packages/models/src/index.ts +++ b/packages/models/src/index.ts @@ -1,35 +1,35 @@ export { - type TableCellValue, tableCellValueSchema, + type TableCellValue, } from './lib/implementation/schemas.js'; export { - type SourceFileLocation, sourceFileLocationSchema, + type SourceFileLocation, } from './lib/source.js'; -export { type Audit, auditSchema } from './lib/audit.js'; export { - type AuditDetails, - type AuditOutput, - type AuditOutputs, auditDetailsSchema, auditOutputSchema, auditOutputsSchema, + type AuditDetails, + type AuditOutput, + type AuditOutputs, } from './lib/audit-output.js'; +export { auditSchema, type Audit } from './lib/audit.js'; export { - type CategoryConfig, - type CategoryRef, categoryConfigSchema, categoryRefSchema, + type CategoryConfig, + type CategoryRef, } from './lib/category-config.js'; -export { type Commit, commitSchema } from './lib/commit.js'; -export { type CoreConfig, coreConfigSchema } from './lib/core-config.js'; +export { commitSchema, type Commit } from './lib/commit.js'; +export { coreConfigSchema, type CoreConfig } from './lib/core-config.js'; export { - type Group, - type GroupRef, - type GroupMeta, groupRefSchema, groupSchema, + type Group, + type GroupMeta, + type GroupRef, } from './lib/group.js'; export { CONFIG_FILE_NAME, @@ -47,58 +47,37 @@ export { MAX_TITLE_LENGTH, } from './lib/implementation/limits.js'; export { - type MaterialIcon, materialIconSchema, + type MaterialIcon, } from './lib/implementation/schemas.js'; export { exists } from './lib/implementation/utils.js'; export { - type TableAlignment, - tableAlignmentSchema, - type TableRowPrimitive, - tableRowPrimitiveSchema, - type TableRowObject, - tableRowObjectSchema, - type TableColumnPrimitive, - tableColumnPrimitiveSchema, - type TableColumnObject, - tableColumnObjectSchema, - type Table, - tableSchema, -} from './lib/table.js'; -export { - type Issue, - type IssueSeverity, issueSchema, issueSeveritySchema, + type Issue, + type IssueSeverity, } from './lib/issue.js'; export { - type Format, - type PersistConfig, formatSchema, persistConfigSchema, + type Format, + type PersistConfig, } from './lib/persist-config.js'; export { - type PluginConfig, - type PluginMeta, pluginConfigSchema, pluginMetaSchema, + type PluginConfig, + type PluginMeta, } from './lib/plugin-config.js'; export { - type AuditReport, - type PluginReport, - type Report, auditReportSchema, pluginReportSchema, reportSchema, + type AuditReport, + type PluginReport, + type Report, } from './lib/report.js'; export { - type AuditDiff, - type AuditResult, - type CategoryDiff, - type CategoryResult, - type GroupDiff, - type GroupResult, - type ReportsDiff, auditDiffSchema, auditResultSchema, categoryDiffSchema, @@ -106,13 +85,39 @@ export { groupDiffSchema, groupResultSchema, reportsDiffSchema, + type AuditDiff, + type AuditResult, + type CategoryDiff, + type CategoryResult, + type GroupDiff, + type GroupResult, + type ReportsDiff, } from './lib/reports-diff.js'; export { - type OnProgress, - type RunnerConfig, - type RunnerFunction, onProgressSchema, runnerConfigSchema, runnerFunctionSchema, + type OnProgress, + type RunnerConfig, + type RunnerFunction, } from './lib/runner-config.js'; -export { type UploadConfig, uploadConfigSchema } from './lib/upload-config.js'; +export { + tableAlignmentSchema, + tableColumnObjectSchema, + tableColumnPrimitiveSchema, + tableRowObjectSchema, + tableRowPrimitiveSchema, + tableSchema, + type Table, + type TableAlignment, + type TableColumnObject, + type TableColumnPrimitive, + type TableRowObject, + type TableRowPrimitive, +} from './lib/table.js'; +export { uploadConfigSchema, type UploadConfig } from './lib/upload-config.js'; + +export { + fileNameSchema, + filePathSchema, +} from './lib/implementation/schemas.js'; From c82d04878ab94921161f84c38f447fefb9d66dfc Mon Sep 17 00:00:00 2001 From: Alejandro Date: Fri, 10 Jan 2025 22:36:56 +0100 Subject: [PATCH 2/2] chore(models): reuse export --- packages/models/src/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/models/src/index.ts b/packages/models/src/index.ts index 9fe3e7b23..2764f8fb1 100644 --- a/packages/models/src/index.ts +++ b/packages/models/src/index.ts @@ -47,6 +47,8 @@ export { MAX_TITLE_LENGTH, } from './lib/implementation/limits.js'; export { + fileNameSchema, + filePathSchema, materialIconSchema, type MaterialIcon, } from './lib/implementation/schemas.js'; @@ -116,8 +118,3 @@ export { type TableRowPrimitive, } from './lib/table.js'; export { uploadConfigSchema, type UploadConfig } from './lib/upload-config.js'; - -export { - fileNameSchema, - filePathSchema, -} from './lib/implementation/schemas.js';