|
1 | 1 | /* eslint-disable no-console */
|
2 | 2 | import { AstroCheck, DiagnosticSeverity, GetDiagnosticsResult } from '@astrojs/language-server';
|
| 3 | +import type { FSWatcher } from 'chokidar'; |
3 | 4 | import glob from 'fast-glob';
|
4 |
| -import * as fs from 'fs'; |
| 5 | +import fsMod, * as fs from 'fs'; |
5 | 6 | import { bold, dim, red, yellow } from 'kleur/colors';
|
6 | 7 | import { createRequire } from 'module';
|
| 8 | +import { join } from 'node:path'; |
7 | 9 | import ora from 'ora';
|
8 | 10 | import { fileURLToPath, pathToFileURL } from 'url';
|
9 |
| -import { Arguments } from 'yargs-parser'; |
| 11 | +import type { Arguments as Flags } from 'yargs-parser'; |
10 | 12 | import type { AstroSettings } from '../../@types/astro';
|
11 | 13 | import type { LogOptions } from '../../core/logger/core.js';
|
12 |
| -import { printHelp } from '../../core/messages.js'; |
13 |
| -import { printDiagnostic } from './print.js'; |
14 |
| -import type { Arguments as Flags } from 'yargs-parser'; |
15 | 14 | import { debug, info } from '../../core/logger/core.js';
|
| 15 | +import { printHelp } from '../../core/messages.js'; |
16 | 16 | import type { ProcessExit, SyncOptions } from '../../core/sync';
|
17 |
| -import fsMod from 'fs'; |
18 |
| -import type { FSWatcher } from 'chokidar'; |
19 |
| -import { join } from 'node:path'; |
| 17 | +import { printDiagnostic } from './print.js'; |
20 | 18 |
|
21 | 19 | type DiagnosticResult = {
|
22 | 20 | errors: number;
|
|
0 commit comments