Permalink
Browse files

fix(typings): proper import of i18next (#293)

fix the d.ts file to properly import i18next dependency
  • Loading branch information...
zewa666 committed Dec 29, 2018
1 parent a29368b commit 13a9f9d898ce73050fac06bf772faecf7546892d
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/build.ts
@@ -153,7 +153,7 @@ async function generateDts(): Promise<void> {
}

async function fixI18nDefaultImport(typeDefFileName: string) {
const importDeclaration = `import * as i18next from 'i18next';\n`;
const importDeclaration = `import i18next from 'i18next';\n`;
const data = fs.readFileSync(typeDefFileName, 'utf-8');
const fd = fs.openSync(typeDefFileName, 'w+');
fs.writeSync(fd, Buffer.from(importDeclaration, 'utf8'), 0, importDeclaration.length, 0);

0 comments on commit 13a9f9d

Please sign in to comment.