Skip to content

Commit

Permalink
fix: rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Dec 4, 2024
1 parent 058c9cd commit ca48d38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/solutions/app-tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const appTools = (
}
});

api.onWatchFiles(async () => {
api.addWatchFiles(async () => {
const appContext = api.getAppContext();
const config = api.getNormalizedConfig();
const files = await generateWatchFiles(
Expand Down
2 changes: 1 addition & 1 deletion packages/solutions/app-tools/src/utils/restart.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cli } from '@modern-js/plugin-v2/cli';
import { chalk, clearConsole, getFullArgv, logger } from '@modern-js/utils';
import { program } from '@modern-js/utils/commander';
import type { AppToolsHooks } from '../types/hooks';
import type { AppToolsHooks } from '../types/new';

export async function restart(
hooks: AppToolsHooks<'shared'>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type Plugin, createPluginManager } from '@modern-js/plugin-v2';
import { createContext, initPluginAPI } from '@modern-js/plugin-v2/cli';
import { runtimePlugin } from '../../../../runtime/plugin-runtime/src/cli';
import { appTools } from '../../src';
import { handleSetupResult } from '../../src/new/compat/hooks';
import { handleSetupResult } from '../../src/compat/hooks';
import { getFileSystemEntry } from '../../src/plugins/analyze/getFileSystemEntry';
import type { AppNormalizedConfig, AppTools } from '../../src/types';
import type { AppToolsContext } from '../../src/types/new';
Expand Down

0 comments on commit ca48d38

Please sign in to comment.