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'