Skip to content

Commit

Permalink
Update pluginutils for new micormatch (#2884)
Browse files Browse the repository at this point in the history
* Update micromatch

* Update rollup-pluginutils to update micromatch

* Fix TypeScript issues
  • Loading branch information
lukastaegert committed May 30, 2019
1 parent d4ce506 commit 07b3686
Show file tree
Hide file tree
Showing 8 changed files with 495 additions and 632 deletions.
6 changes: 3 additions & 3 deletions bin/src/run/index.ts
@@ -1,7 +1,7 @@
import { realpathSync } from 'fs';
import relative from 'require-relative';
import { InputOptions, WarningHandler } from '../../../src/rollup/types';
import mergeOptions from '../../../src/utils/mergeOptions';
import { WarningHandler } from '../../../src/rollup/types';
import mergeOptions, { GenericConfigObject } from '../../../src/utils/mergeOptions';
import { getAliasName } from '../../../src/utils/relativeId';
import { handleError } from '../logging';
import batchWarnings from './batchWarnings';
Expand Down Expand Up @@ -93,7 +93,7 @@ export default function runRollup(command: any) {
}
}

function execute(configFile: string, configs: InputOptions[], command: any) {
function execute(configFile: string, configs: GenericConfigObject[], command: any) {
if (command.watch) {
watch(configFile, configs, command, command.silent);
} else {
Expand Down
5 changes: 3 additions & 2 deletions bin/src/run/loadConfigFile.ts
@@ -1,7 +1,8 @@
import path from 'path';
import rollup from 'rollup';
import tc from 'turbocolor';
import { InputOptions, RollupBuild, RollupOutput } from '../../../src/rollup/types';
import { RollupBuild, RollupOutput } from '../../../src/rollup/types';
import { GenericConfigObject } from '../../../src/utils/mergeOptions';
import relativeId from '../../../src/utils/relativeId';
import { handleError, stderr } from '../logging';
import batchWarnings from './batchWarnings';
Expand All @@ -13,7 +14,7 @@ interface NodeModuleWithCompile extends NodeModule {
export default function loadConfigFile(
configFile: string,
commandOptions: any = {}
): Promise<InputOptions[]> {
): Promise<GenericConfigObject[]> {
const silent = commandOptions.silent || false;
const warnings = batchWarnings();

Expand Down
6 changes: 3 additions & 3 deletions bin/src/run/watch.ts
Expand Up @@ -12,7 +12,7 @@ import {
WarningHandler,
WatcherOptions
} from '../../../src/rollup/types';
import mergeOptions from '../../../src/utils/mergeOptions';
import mergeOptions, { GenericConfigObject } from '../../../src/utils/mergeOptions';
import relativeId from '../../../src/utils/relativeId';
import { handleError, stderr } from '../logging';
import alternateScreen from './alternateScreen';
Expand All @@ -36,7 +36,7 @@ interface Watcher {

export default function watch(
configFile: string,
configs: RollupWatchOptions[],
configs: GenericConfigObject[],
command: any,
silent = false
) {
Expand All @@ -57,7 +57,7 @@ export default function watch(
let watcher: Watcher;
let configWatcher: Watcher;

function processConfigs(configs: RollupWatchOptions[]): RollupWatchOptions[] {
function processConfigs(configs: GenericConfigObject[]): RollupWatchOptions[] {
return configs.map(options => {
const merged = mergeOptions({
command,
Expand Down

0 comments on commit 07b3686

Please sign in to comment.