From cc5a78cc2478e084aa843ef953721b303bd22cda Mon Sep 17 00:00:00 2001 From: Stepan Mikhaylyuk Date: Tue, 5 Nov 2019 15:28:13 +0300 Subject: [PATCH] fix(*): fix typings section in package.json (#95) --- gulp/component-package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/component-package.js b/gulp/component-package.js index efd628b..5f30ae1 100644 --- a/gulp/component-package.js +++ b/gulp/component-package.js @@ -16,7 +16,7 @@ function getComponentPackage(file) { || fs.existsSync(path.join(dirname, 'index.ts')); return JSON.stringify({ main: isIndexFileExist ? 'index.js' : `${componentName}.js`, - types: `${componentName}.d.ts` + types: isIndexFileExist ? 'index.d.ts' : `${componentName}.d.ts` }); }