Skip to content

Commit cd02de7

Browse files
Fix missing __dirname
1 parent 41c14ae commit cd02de7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/apollo-collaboration-server/src/plugins/plugins.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import fs from 'node:fs'
33
import fsPromises from 'node:fs/promises'
44
import path from 'node:path'
55
import { Writable } from 'node:stream'
6+
import { fileURLToPath } from 'node:url'
67

78
import {
89
ApolloPlugin,
@@ -19,6 +20,8 @@ import sanitize from 'sanitize-filename'
1920
import { APOLLO_PLUGINS } from './plugins.constants.js'
2021
import { PluginsService } from './plugins.service.js'
2122

23+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
24+
2225
@Module({})
2326
export class PluginsModule {
2427
private readonly logger = new Logger(PluginsModule.name)

0 commit comments

Comments
 (0)