diff --git a/cfg/eslint-rules.js b/cfg/eslint-rules.js index b655213..15995fd 100644 --- a/cfg/eslint-rules.js +++ b/cfg/eslint-rules.js @@ -369,5 +369,6 @@ module.exports = { '@typescript-eslint/restrict-plus-operands': 0, '@typescript-eslint/unbound-method': 0, '@typescript-eslint/no-unsafe-argument': 0, // prevents "legit" use of `any` + 'unicorn/prefer-export-from': 0, // breaks auto-imports in IntelliJ Idea }, } diff --git a/src/index.ts b/src/index.ts index e7ea4a9..536ff4e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,33 @@ -export * from './util/git.util' +import { buildProdCommand } from './cmd/build-prod.command' +import type { BuildInfo } from './util/buildInfo.model' +import { generateBuildInfo } from './util/buildInfo.util' +import { + getLastGitCommitMsg, + gitCommitAll, + gitCurrentCommitSha, + gitCurrentCommitTimestamp, + gitCurrentBranchName, + gitCurrentRepoName, + commitMessageToTitleMessage, + gitIsAhead, + gitHasUncommittedChanges, + gitPush, + gitPull, +} from './util/git.util' -export { buildProdCommand } from './cmd/build-prod.command' -export type { BuildInfo } from './util/buildInfo.model' -export { generateBuildInfo } from './util/buildInfo.util' +export { + generateBuildInfo, + buildProdCommand, + getLastGitCommitMsg, + gitCommitAll, + gitCurrentCommitSha, + gitCurrentCommitTimestamp, + gitCurrentBranchName, + gitCurrentRepoName, + commitMessageToTitleMessage, + gitIsAhead, + gitHasUncommittedChanges, + gitPush, + gitPull, +} +export type { BuildInfo } diff --git a/src/testing/index.ts b/src/testing/index.ts index 93a53df..81d20da 100644 --- a/src/testing/index.ts +++ b/src/testing/index.ts @@ -1,8 +1,19 @@ import * as timekeeper from 'timekeeper' -// eslint-disable-next-line unicorn/prefer-export-from -export { timekeeper } -export { jestOffline } from '../jestOffline.util' -export { expectResults } from './expect.util' -export { mockAllKindsOfThings } from './mockAllKindsOfThings' -export { deepFreeze, silentConsole } from './testing.util' -export { mockTime, mockTimeMillis, MOCK_TS_2018_06_21, resetTime } from './time.util' +import { jestOffline } from '../jestOffline.util' +import { expectResults } from './expect.util' +import { mockAllKindsOfThings } from './mockAllKindsOfThings' +import { deepFreeze, silentConsole } from './testing.util' +import { mockTime, mockTimeMillis, MOCK_TS_2018_06_21, resetTime } from './time.util' + +export { + jestOffline, + deepFreeze, + silentConsole, + mockTime, + mockTimeMillis, + resetTime, + MOCK_TS_2018_06_21, + timekeeper, + mockAllKindsOfThings, + expectResults, +}