tweak types
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user