Skip to content

Commit

Permalink
used original module casing
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelmas committed Mar 8, 2020
1 parent fe02ec6 commit 487f728
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SourcefileUrlMapPlugin.ts
@@ -1,5 +1,5 @@
import * as Path from 'path'
import * as FS from 'fs'
import * as path from 'path'
import * as fs from 'fs'
import {Component} from 'typedoc/dist/lib/utils/component'
import {ConverterComponent} from 'typedoc/dist/lib/converter/components'
import {Converter} from 'typedoc/dist/lib/converter/converter'
Expand Down Expand Up @@ -59,11 +59,11 @@ export class SourcefileUrlMapPlugin extends ConverterComponent {
private readMappingJson(mapRelativePath: string): void
{
// load json
const mapAbsolutePath = Path.join(process.cwd(), mapRelativePath)
const mapAbsolutePath = path.join(process.cwd(), mapRelativePath)

let json: any
try {
json = JSON.parse(FS.readFileSync(mapAbsolutePath, 'utf8'))
json = JSON.parse(fs.readFileSync(mapAbsolutePath, 'utf8'))
}
catch ( e ) {
throw new Error('error reading --sourcefile-url-map json file: ' + e.message)
Expand Down

0 comments on commit 487f728

Please sign in to comment.