diff --git a/src/util/songs.ts b/src/util/songs.ts index 58d9d23..d45872e 100644 --- a/src/util/songs.ts +++ b/src/util/songs.ts @@ -1,5 +1,5 @@ import { readdirSync, readFileSync, writeFileSync } from 'fs'; -import * as matter from 'gray-matter'; +import matter from 'gray-matter'; import { join } from 'path'; import { Song, XmlifyableSong } from '../definitions/song'; import { getIdFromFileName } from './generateFileName'; diff --git a/test/songFiles.test.ts b/test/songFiles.test.ts index 765908f..bc34140 100644 --- a/test/songFiles.test.ts +++ b/test/songFiles.test.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'fs'; -import * as matter from 'gray-matter'; +import matter from 'gray-matter'; import { validMetaKeys } from '../src/definitions/song'; import { TAGS } from '../src/definitions/tags'; import { getAllSongPaths, getAllSongs } from '../src/util/songs'; diff --git a/tsconfig.json b/tsconfig.json index 70e55a4..211785c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "target": "ES2017", "sourceMap": true, "inlineSources": true, + "esModuleInterop": true, "outDir": "dist", "rootDir": "src" },