Skip to content

Commit

Permalink
feat: add outDir option
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt committed Apr 24, 2020
1 parent 2230e37 commit a75ce85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export async function build(_options: Config): Promise<any> {
const result_to_write = formats[format](result, options)
for (const file of result_to_write) {
// TODO: build dir should be configurated
await ensureDir(resolve(process.cwd(), _options.rootDir, 'tokens'))
await writeFile(resolve(process.cwd(), _options.rootDir, 'tokens', file.fileName), file.content)
await ensureDir(resolve(process.cwd(), _options.outDir, 'tokens'))
await writeFile(resolve(process.cwd(), _options.outDir, 'tokens', file.fileName), file.content)
}
}
}
1 change: 1 addition & 0 deletions src/core/project-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Platforms } from './platforms'

export type Config = {
src: string
outDir: string
platforms: Platforms
formats: {
[key: string]: {
Expand Down

0 comments on commit a75ce85

Please sign in to comment.