chore: bump glob
This commit is contained in:
parent
04bcc4a230
commit
8f5a1707b2
|
@ -45,8 +45,7 @@
|
|||
"@flecks/socket": "^2.0.3",
|
||||
"@humus/app": "^2.0.0",
|
||||
"debug": "4.3.1",
|
||||
"express": "^4.17.1",
|
||||
"glob": "^7.1.6"
|
||||
"express": "^4.17.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@flecks/fleck": "^2.0.3"
|
||||
|
|
|
@ -5,11 +5,10 @@ import {
|
|||
writeFile,
|
||||
} from 'fs/promises';
|
||||
import {join} from 'path';
|
||||
import {promisify} from 'util';
|
||||
|
||||
import {createLoop, destroyLoop} from '@avocado/timing/server';
|
||||
import {D} from '@flecks/core';
|
||||
import glob from 'glob';
|
||||
import {glob} from '@flecks/core/server';
|
||||
|
||||
import createPlayerEntity from '../gen/player-entity';
|
||||
import createPlayerRoom from '../gen/player-room';
|
||||
|
@ -18,8 +17,6 @@ import Player from './player';
|
|||
const debug = D('@humus/universe/server/universe');
|
||||
const debugSilly = debug.extend('silly');
|
||||
|
||||
const pglob = promisify(glob);
|
||||
|
||||
export default class Universe {
|
||||
|
||||
$$flecks;
|
||||
|
@ -134,7 +131,7 @@ export default class Universe {
|
|||
await universe.loadOrCreateResource();
|
||||
const {Room} = flecks.avocado.resource.Resources;
|
||||
await Promise.all(
|
||||
(await pglob('**/*.room.json', {cwd: path}))
|
||||
(await glob('**/*.room.json', {cwd: path}))
|
||||
.map(async (roomUri) => {
|
||||
const qualified = `/${roomUri}`;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue
Block a user