mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-12 05:27:56 +00:00
Fix to properly create folder
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
8d56fe5df6
commit
e0c13e85b4
@ -111,7 +111,7 @@ import { getToolToken, getWorkspace, getWorkspaceTransactorEndpoint } from './ut
|
||||
|
||||
import { createRestClient } from '@hcengineering/api-client'
|
||||
import { mkdir, writeFile } from 'fs/promises'
|
||||
import { basename } from 'path'
|
||||
import { basename, dirname } from 'path'
|
||||
import { existsSync } from 'fs'
|
||||
|
||||
const colorConstants = {
|
||||
@ -1700,7 +1700,7 @@ export function devTool (
|
||||
method: 'PUT'
|
||||
})
|
||||
if (resp.ok) {
|
||||
const bdir = basename(opt.output)
|
||||
const bdir = dirname(opt.output)
|
||||
if (!existsSync(bdir)) {
|
||||
await mkdir(bdir, { recursive: true })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user