diff --git a/CHANGELOG.md b/CHANGELOG.md index 381f0f1..2a5ab5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ ## spec/v0.4.1 (unreleased) -* style: set noConsole as error +* refactor: remove barrel files +* refactor: simplify read version from package.json * chore: replace eslint/prettier by biome * chore: upgrade to node 22 * chore: simplify linting diff --git a/spec/controllers/DashboardsController.ts b/spec/controllers/DashboardsController.ts index fccdb17..b5f5449 100644 --- a/spec/controllers/DashboardsController.ts +++ b/spec/controllers/DashboardsController.ts @@ -12,13 +12,14 @@ import { Tags, } from 'tsoa'; -import { DASHBOARDS, ERR_401, ERR_403 } from '../data/index.js'; +import { DASHBOARDS } from '../data/dashboard.js'; +import { ERR_401, ERR_403 } from '../data/error.js'; import type { ListDashboardsQueryParams, ListDashboardsRes, -} from '../model/index.js'; -import type { ErrorRes } from '../schema/index.js'; -import type { DashboardService } from '../services/index.js'; +} from '../model/dashboard.js'; +import type { ErrorRes } from '../schema/error.js'; +import type { DashboardService } from '../services/DashboardService.js'; @Route('dashboards') @Produces('application/json') diff --git a/spec/controllers/RunnablesController.ts b/spec/controllers/RunnablesController.ts index ab4fa59..b40dbe0 100644 --- a/spec/controllers/RunnablesController.ts +++ b/spec/controllers/RunnablesController.ts @@ -14,24 +14,22 @@ import { Tags, } from 'tsoa'; +import { ERR_401, ERR_403, ERR_404 } from '../data/error.js'; import { - ERR_401, - ERR_403, - ERR_404, RUNNABLES, RUNNABLE_OP_ASYNC_DESC, RUNNABLE_OP_ASYNC_RES, RUNNABLE_OP_SYNC_DESC, RUNNABLE_OP_SYNC_RES, -} from '../data/index.js'; +} from '../data/runnable.js'; import type { ListRunnablesQueryParams, ListRunnablesRes, Runnable, RunnableOperationRes, -} from '../model/index.js'; -import type { ErrorRes } from '../schema/index.js'; -import type { RunnableService } from '../services/index.js'; +} from '../model/runnable.js'; +import type { ErrorRes } from '../schema/error.js'; +import type { RunnableService } from '../services/RunnableService.js'; @Route('runnables') @Produces('application/json') diff --git a/spec/data/dashboard.ts b/spec/data/dashboard.ts index c7dfead..d98129c 100644 --- a/spec/data/dashboard.ts +++ b/spec/data/dashboard.ts @@ -1,4 +1,4 @@ -import type { ListDashboardsRes } from '../model/index.js'; +import type { ListDashboardsRes } from '../model/dashboard.js'; export const DASHBOARDS: ListDashboardsRes = { items: [ diff --git a/spec/data/index.ts b/spec/data/index.ts deleted file mode 100644 index 685c5dc..0000000 --- a/spec/data/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './dashboard.js'; -export * from './error.js'; -export * from './runnable.js'; diff --git a/spec/data/runnable.ts b/spec/data/runnable.ts index ddc3586..0a0b25d 100644 --- a/spec/data/runnable.ts +++ b/spec/data/runnable.ts @@ -2,7 +2,7 @@ import { type ListRunnablesRes, type RunnableOperationRes, RunnableStatus, -} from '../model/index.js'; +} from '../model/runnable.js'; export const RUNNABLE_OP_ASYNC_DESC: string = 'The operation has been executed asynchronously and will eventually succeed'; diff --git a/spec/model/dashboard.ts b/spec/model/dashboard.ts index 6e44fdd..3fccfd6 100644 --- a/spec/model/dashboard.ts +++ b/spec/model/dashboard.ts @@ -1,4 +1,4 @@ -import type { ListQueryParams, ListRes } from '../schema/index.js'; +import type { ListQueryParams, ListRes } from '../schema/list.js'; /** * A collection of metrics diff --git a/spec/model/index.ts b/spec/model/index.ts deleted file mode 100644 index 1736009..0000000 --- a/spec/model/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './dashboard.js'; -export * from './runnnable.js'; diff --git a/spec/model/runnnable.ts b/spec/model/runnable.ts similarity index 98% rename from spec/model/runnnable.ts rename to spec/model/runnable.ts index ef9f5d9..b09fff5 100644 --- a/spec/model/runnnable.ts +++ b/spec/model/runnable.ts @@ -1,4 +1,4 @@ -import type { ListQueryParams, ListRes } from '../schema/index.js'; +import type { ListQueryParams, ListRes } from '../schema/list.js'; export interface ListRunnablesQueryParams extends ListQueryParams { /** diff --git a/spec/schema/index.ts b/spec/schema/index.ts deleted file mode 100644 index 0a6e9f3..0000000 --- a/spec/schema/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './error.js'; -export * from './list.js'; diff --git a/spec/services/DashboardService.ts b/spec/services/DashboardService.ts index 2cdbdf5..50f1a96 100644 --- a/spec/services/DashboardService.ts +++ b/spec/services/DashboardService.ts @@ -1,7 +1,7 @@ import type { ListDashboardsQueryParams, ListDashboardsRes, -} from '../model/index.js'; +} from '../model/dashboard.js'; export interface DashboardService { list(params: ListDashboardsQueryParams): Promise; diff --git a/spec/services/RunnableService.ts b/spec/services/RunnableService.ts index c4d389b..851f860 100644 --- a/spec/services/RunnableService.ts +++ b/spec/services/RunnableService.ts @@ -3,7 +3,7 @@ import type { ListRunnablesRes, Runnable, RunnableOperationRes, -} from '../model/index.js'; +} from '../model/runnable.js'; export interface RunnableService { list(params: ListRunnablesQueryParams): Promise; diff --git a/spec/services/index.ts b/spec/services/index.ts deleted file mode 100644 index 34042c0..0000000 --- a/spec/services/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './DashboardService.js'; -export * from './RunnableService.js';