Skip to content

Commit

Permalink
feat: upgrade to consola v3 (prerelease)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 11, 2023
1 parent 363e2ea commit 50e9f8e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"c12": "^1.2.0",
"chalk": "^5.2.0",
"chokidar": "^3.5.3",
"consola": "^2.15.3",
"consola": "^3.0.0-4",
"cookie-es": "^0.5.0",
"defu": "^6.1.2",
"destr": "^1.2.2",
Expand Down
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { existsSync } from "node:fs";
import { resolve } from "pathe";
import { createHooks, createDebugger } from "hookable";
import { createUnimport } from "unimport";
import defu from "defu";
import consola from "consola";
import { defu } from "defu";
import { consola } from "consola";
import type { NitroConfig, Nitro } from "./types";
import { loadOptions } from "./options";
import { scanPlugins } from "./scan";
Expand Down
2 changes: 1 addition & 1 deletion src/rollup/plugins/automock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import consola from "consola";
import { consola } from "consola";

const internalRegex = /^\.|\?|\.[cm]?js$|.ts$|.json$/;

Expand Down
2 changes: 1 addition & 1 deletion src/rollup/plugins/externals-legacy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { existsSync, promises as fsp } from "node:fs";
import { resolve, dirname, normalize, join, isAbsolute } from "pathe";
import consola from "consola";
import { consola } from "consola";
import { nodeFileTrace, NodeFileTraceOptions } from "@vercel/nft";
import type { Plugin } from "rollup";
import { resolvePath, isValidNodeImport, normalizeid } from "mlly";
Expand Down
4 changes: 2 additions & 2 deletions src/types/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Unimport } from "unimport";
import type { UnimportPluginOptions } from "unimport/unplugin";
import type { PluginVisualizerOptions } from "rollup-plugin-visualizer";
import type { NestedHooks, Hookable } from "hookable";
import type { Consola, LogLevel } from "consola";
import type { ConsolaInstance, LogLevel } from "consola";
import type { WatchOptions } from "chokidar";
import type { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
import type { RollupWasmOptions } from "@rollup/plugin-wasm";
Expand All @@ -30,7 +30,7 @@ export interface Nitro {
vfs: Record<string, string>;
hooks: Hookable<NitroHooks>;
unimport?: Unimport;
logger: Consola;
logger: ConsolaInstance;
storage: Storage;
close: () => Promise<void>;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fsp from "node:fs/promises";
import { existsSync, readFileSync } from "node:fs";
import { relative, dirname, resolve } from "pathe";
import jiti from "jiti";
import consola from "consola";
import { consola } from "consola";
import chalk from "chalk";
import { getProperty } from "dot-prop";
import { provider } from "std-env";
Expand Down

0 comments on commit 50e9f8e

Please sign in to comment.