refactor: write file

This commit is contained in:
cha0s 2024-02-10 16:41:17 -06:00
parent ec5e9b83d0
commit 14dca6a8ae

View File

@ -2,13 +2,12 @@ import {
mkdir, mkdir,
readFile, readFile,
stat, stat,
writeFile,
} from 'fs/promises'; } from 'fs/promises';
import {join} from 'path'; import {join} from 'path';
import {createLoop, destroyLoop} from '@avocado/timing/server'; import {createLoop, destroyLoop} from '@avocado/timing/server';
import {D} from '@flecks/core'; import {D} from '@flecks/core';
import {glob} from '@flecks/core/server'; import {glob, writeFile} from '@flecks/core/server';
import createPlayerEntity from '../gen/player-entity'; import createPlayerEntity from '../gen/player-entity';
import createPlayerRoom from '../gen/player-room'; import createPlayerRoom from '../gen/player-room';