mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-09 08:20:32 -07:00
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import fs from 'fs-extra';
|
|
import { DEFAULT_FIRST_WIKI_FOLDER_PATH } from '../src/constants/paths';
|
|
|
|
// Skip directory creation in test mode - each test scenario creates its own isolated directories
|
|
// This script is only needed for development mode
|
|
const isTest = process.env.NODE_ENV === 'test';
|
|
if (!isTest) {
|
|
try {
|
|
fs.removeSync(DEFAULT_FIRST_WIKI_FOLDER_PATH);
|
|
} catch {
|
|
// ignore
|
|
}
|
|
fs.mkdirpSync(DEFAULT_FIRST_WIKI_FOLDER_PATH);
|
|
}
|