From 9cc4765793f52a419116f8fe0a093878a6c04ffb Mon Sep 17 00:00:00 2001 From: zerodom30 Date: Tue, 12 Sep 2023 11:06:32 -0400 Subject: [PATCH] chore: removed additional ts setting which are surplus to requirements --- rollup.config.mjs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 7d08a01..ebfe497 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,19 +1,8 @@ -import omit from 'lodash.omit'; import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; -import { readFileSync } from 'fs'; - - -const tsConfig = JSON.parse(readFileSync('tsconfig.json', { encoding: 'utf8' })); - -const customTSConfig = { - ...omit(tsConfig.compilerOptions, ['declaration', 'emitDeclarationOnly', 'declarationDir']), - tsconfig: false, - noEmit: true -}; export default [ { @@ -42,7 +31,7 @@ export default [ resolve({ browser: true, }), - typescript(customTSConfig), + typescript({ noEmitOnError: false }), commonjs(), terser(), babel({