From f7275f8e308e12f3c061101f59da4d6768fe1bad Mon Sep 17 00:00:00 2001 From: Roberto Redradix Date: Mon, 11 Sep 2023 18:42:53 +0200 Subject: [PATCH] refactor(core): move all re-export declaration to the end of the files --- packages/core/src/lib/index.ts | 4 ++-- packages/core/src/lib/outputters/index.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/core/src/lib/index.ts b/packages/core/src/lib/index.ts index 363e847..d9e7316 100644 --- a/packages/core/src/lib/index.ts +++ b/packages/core/src/lib/index.ts @@ -54,8 +54,6 @@ const processOutput = ({ return writeTextFile(outputPath, textContents) } -export type * from './types' - export default async function penpotExport( userConfig: object, rootProjectPath: string, @@ -109,3 +107,5 @@ export default async function penpotExport( } } } + +export type * from './types' diff --git a/packages/core/src/lib/outputters/index.ts b/packages/core/src/lib/outputters/index.ts index 33f8587..f6e57fe 100644 --- a/packages/core/src/lib/outputters/index.ts +++ b/packages/core/src/lib/outputters/index.ts @@ -1,12 +1,6 @@ import fs from 'node:fs' import path from 'node:path' -export { default as cssOutputter } from './css' -export { default as scssOutputter } from './scss' -export { default as jsonOutputter } from './json' - -export type { OutputterFunction } from './types' - export function writeTextFile(outputPath: string, textContents: string) { const dirname = path.dirname(outputPath) @@ -16,3 +10,9 @@ export function writeTextFile(outputPath: string, textContents: string) { fs.writeFileSync(outputPath, textContents, 'utf-8') } + +export { default as cssOutputter } from './css' +export { default as scssOutputter } from './scss' +export { default as jsonOutputter } from './json' + +export type { OutputterFunction } from './types'