diff --git a/src/commands/patches/copy-patches.ts b/src/commands/patches/copy-patches.ts index d3e1118..b43dcc6 100644 --- a/src/commands/patches/copy-patches.ts +++ b/src/commands/patches/copy-patches.ts @@ -8,7 +8,7 @@ import { copyFile } from 'node:fs/promises' import { dirname, resolve } from 'node:path' import glob from 'tiny-glob' -import { appendToFileSync, mkdirp } from '../../utils' +import { appendToFileSync, ensureDirectory, mkdirp } from '../../utils' import { config } from '../..' import { CURRENT_DIR, ENGINE_DIR, SRC_DIR, TESTS_DIR } from '../../constants' import { IMelonPatch } from './command' @@ -104,6 +104,7 @@ export async function get(): Promise { } }) + await ensureDirectory('./tests') const testFiles = await glob('./tests/**/*', { filesOnly: true, cwd: '.',