- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
14 lines
459 B
TypeScript
14 lines
459 B
TypeScript
import { dirname, resolve } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
/** @internal */
|
|
export function path(name: string) {
|
|
const __filename = fileURLToPath(
|
|
// import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'
|
|
// @ts-ignore
|
|
import.meta.url,
|
|
)
|
|
const __dirname = dirname(__filename)
|
|
return resolve(__dirname, `./setups/${name}.json`)
|
|
}
|