Feat: Multiplayer sessions added using CRUD database.
This commit is contained in:
12
node_modules/pkg-dir/index.js
generated
vendored
Normal file
12
node_modules/pkg-dir/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import path from 'node:path';
|
||||
import {findUp, findUpSync} from 'find-up';
|
||||
|
||||
export async function packageDirectory({cwd} = {}) {
|
||||
const filePath = await findUp('package.json', {cwd});
|
||||
return filePath && path.dirname(filePath);
|
||||
}
|
||||
|
||||
export function packageDirectorySync({cwd} = {}) {
|
||||
const filePath = findUpSync('package.json', {cwd});
|
||||
return filePath && path.dirname(filePath);
|
||||
}
|
||||
Reference in New Issue
Block a user