tweak types

This commit is contained in:
nikek
2020-04-02 10:29:52 +02:00
parent d4ac45b628
commit 8c1c8d2f5a
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -14,13 +14,13 @@
* limitations under the License.
*/
import { rollup, watch, RollupWatchOptions, OutputOptions } from 'rollup';
import { rollup, watch, OutputOptions } from 'rollup';
import conf from './rollup.config';
import { Command } from 'commander';
export default async (cmd: Command) => {
if (cmd.watch) {
const watcher = watch(conf as RollupWatchOptions);
const watcher = watch(conf);
watcher.on('event', console.log);
await new Promise(() => {});
} else {
@@ -20,6 +20,7 @@ import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import postcss from 'rollup-plugin-postcss';
import imageFiles from 'rollup-plugin-image-files';
import { RollupWatchOptions } from 'rollup';
export default {
input: 'src/index.ts',
@@ -38,4 +39,4 @@ export default {
imageFiles(),
typescript(),
],
};
} as RollupWatchOptions;