0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-01-04 13:50:05 -05:00

refactor(core): move all re-export declaration to the end of the files

This commit is contained in:
Roberto Redradix 2023-09-11 18:42:53 +02:00 committed by Roberto RedRadix
parent 173472aa36
commit f7275f8e30
2 changed files with 8 additions and 8 deletions

View file

@ -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'

View file

@ -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'