diff --git a/.commitlintrc.js b/.commitlintrc.js index 0eb03e6cb..711e55c16 100644 --- a/.commitlintrc.js +++ b/.commitlintrc.js @@ -31,15 +31,12 @@ module.exports = { '.github', '.husky', 'scripts', - 'models', + 'builtins', 'plugins', 'integration', - 'doc' - ] + 'doc', + ], ], - 'scope-empty': [ - 2, - 'never' - ] + 'scope-empty': [2, 'never'], }, }; diff --git a/src/__tests__/unit/models/time-sync.test.ts b/src/__tests__/unit/builtins/time-sync.test.ts similarity index 99% rename from src/__tests__/unit/models/time-sync.test.ts rename to src/__tests__/unit/builtins/time-sync.test.ts index 00a344885..fa8fd683b 100644 --- a/src/__tests__/unit/models/time-sync.test.ts +++ b/src/__tests__/unit/builtins/time-sync.test.ts @@ -1,4 +1,4 @@ -import {TimeSync} from '../../../models/time-sync'; +import {TimeSync} from '../../../builtins/time-sync'; import {ERRORS} from '../../../util/errors'; import {STRINGS} from '../../../config'; diff --git a/src/models/README.md b/src/builtins/README.md similarity index 100% rename from src/models/README.md rename to src/builtins/README.md diff --git a/src/models/export-csv-raw.ts b/src/builtins/export-csv-raw.ts similarity index 100% rename from src/models/export-csv-raw.ts rename to src/builtins/export-csv-raw.ts diff --git a/src/models/export-csv.ts b/src/builtins/export-csv.ts similarity index 100% rename from src/models/export-csv.ts rename to src/builtins/export-csv.ts diff --git a/src/models/export-log.ts b/src/builtins/export-log.ts similarity index 100% rename from src/models/export-log.ts rename to src/builtins/export-log.ts diff --git a/src/models/export-yaml.ts b/src/builtins/export-yaml.ts similarity index 100% rename from src/models/export-yaml.ts rename to src/builtins/export-yaml.ts diff --git a/src/models/group-by.ts b/src/builtins/group-by.ts similarity index 100% rename from src/models/group-by.ts rename to src/builtins/group-by.ts diff --git a/src/models/index.ts b/src/builtins/index.ts similarity index 100% rename from src/models/index.ts rename to src/builtins/index.ts diff --git a/src/models/time-sync.ts b/src/builtins/time-sync.ts similarity index 100% rename from src/models/time-sync.ts rename to src/builtins/time-sync.ts diff --git a/src/lib/exhaust.ts b/src/lib/exhaust.ts index 905ec0071..c0e02d1d3 100644 --- a/src/lib/exhaust.ts +++ b/src/lib/exhaust.ts @@ -1,10 +1,10 @@ /** * @todo This is temporary solution, will be refactored to support dynamic plugins. */ -import {ExportCSV} from '../models/export-csv'; -import {ExportCSVRaw} from '../models/export-csv-raw'; -import {ExportLog} from '../models/export-log'; -import {ExportYaml} from '../models/export-yaml'; +import {ExportCSV} from '../builtins/export-csv'; +import {ExportCSVRaw} from '../builtins/export-csv-raw'; +import {ExportLog} from '../builtins/export-log'; +import {ExportYaml} from '../builtins/export-yaml'; import {ERRORS} from '../util/errors'; diff --git a/src/lib/initialize.ts b/src/lib/initialize.ts index 1f29a5eaf..5f603ac2a 100644 --- a/src/lib/initialize.ts +++ b/src/lib/initialize.ts @@ -47,7 +47,7 @@ const importAndVerifyModule = async (method: string, path: string) => { */ const handModule = (method: string, path: string) => { if (path === 'builtin') { - path = pathLib.normalize(`${__dirname}/../models`); + path = pathLib.normalize(`${__dirname}/../builtins`); } else { if (path?.startsWith(GITHUB_PATH)) { const parts = path.split('/');